What I wanted is to use dataSchema for newly creted rows with some fields to be prepopulated (those are fixed values by design - so I would make it readonly)
http://jsfiddle.net/kquztfr9/8/
dataSchema:{
foo:null,
bar:"im the default",
third:null,
forth:null
}
This renders 4 columns which is fine. However the default value for bar
is not rendered. Moreover if I fill all the columns in the row with for example A B C D, data will look like this (click button in the fiddle)
{
3: "d",
bar: "im the default",
foo: "a",
forth: "c",
third: "b"
}
which is rather nonsense to me.
I would expect that
- value for bar will be rendered
- idx 3 did not show in the data
- Since I have declared my data schema to have 4 columns, it should be 4 - now it is 5
What am I doing wrong here?