Hi,
I have the scenario where i want to clear just the data rows in the grid & not the header information.
So, for that, i am using grid.clearAll(false) method. But, when i invoke this API, the userData set on the grid is also cleared.
Is there any way by which we we can clear just the data rows & not the other information like header, userData etc?
If not, is there any way by which we can get the full set of userData & then we can set it back to the grid object?
Regards,
Vibhav Agrawal
Hi,
Is there any way by which we we can clear just the data rows & not the other information like header, userData etc?
Userdata is deleted with a row. The UserData object contains all userdata of the grid:
var ud = grid.UserData;
I want to get the userData which is grid specific & not row specific.
Bcoz, in my scenario, i want to clear all the rows of the grid so that they can be populated with the latest data. So, i would like to clear the row specific userData, but require the userData which was set as grid level.
So, once i get the userData by ‘grid.UserData’, it will contain whole userData. So, need to get just grid specific userData from this map.
Also, once i get this userData, i will have to add this grid specific userData back into the userData for the re-populated table, which will now have the userdata for the new rows populated.
So, could you please let me know how can i get the grid specific userData & then add it into the new userData?
Regards,
Vibhav Agrawal
If not, is there any way by which we can get the full set of userData
var data = grid.UserData["gridglobaluserdata"];
...
grid.UserData["gridglobaluserdata"] = data;