I'm using a Grid from Kendo UI to display a bunch of data and now I want to add InCell editing.
Since JavaScript isn't my strongest point, I can't see a solution to my following problem:
The Grid is defined as:
.Editable(e => e.Mode(GridEditMode.InCell))
.Selectable(e => e.Mode(GridSelectionMode.Single).Type(GridSelectionType.Cell))
.Events(events => events.Save("subfileSaved")
With the batch mode of the datasource set to false.
Now in my subfileSaved(e) function, I get the changed values in e.values. According to Firebug, the value of e.values is Object { Fields[2].Content="11CLS1511"}.
Question: How can I best extract both the 2 from the Fields[2].Content as well as getting the 11CLS1511?
Edit: e.values.Fields[2].Content doesn't work, see 
2fromFields[2].Content?. I suspectFieldsis an array here where2is the index andContentis the property of the object in that index. - NaveenBhatvar tmp = e.values.Fields[2].Content, but then I get aTypeError: e.values.Fields is undefined. (And I also don't know beforehand, if my function will get a 2, 5 or whatever number below 20). Maybe it is just a simple error on my side, which will result in much forehead slapping ;-) - MilConDoinfirebugor any other console, if you are able to seeObject { Fields[2].Content="11CLS1511"}fore.values, then you wouldn't be getting this error. For safer side you can write like this -var tmp = e.values.Fields ? e.values.Fields[2] ? e.values.Fields[2].Content : null : null- NaveenBhat