The below code is not working in the updated version.
this.controller.GetGrid().getData().getItems();
Please help me with the updated version
Hi Prabakaran,
You can now access the items in the dataset directly without calling the getItems() method in the new version.
Example:
var dataset = this.controller.GetGrid().getData();
for (var i = 0; i < dataset.length; i++) {
The GetGrid() method of the controller should give you the active grid. Can you try this code?
var length = this.controller.GetGrid().getData().length;
// Sheila
I am assuming that you want to get the date format of an element (probably a textbox element?) If so, you must get the textbox element and access its DateFormat attribute.
This is for H5 Script
Thanks, Sheila!! I will check.
Hi Sheila,
I didn't get ActiveGrid Length in the below code in new version >=2.0. Is anything I need change?
this.controller.ActiveGrid.getData().getLength()
Please help me with the updated version.