We have a webdatagrid.We are trying to add multiple rows to the grid on the client side by means of the client side method :
function
callCostCenterSuccess(res) {
var sArray = res.split("||")
var grid = $find('BaseCostCenterHGrid');
for (var i = 0; i < sArray.length; i++) {
var ccAttributes = sArray[i].split("~");
if (ccAttributes.length > 1) {
var newValues = new Array(ccAttributes[0], ccAttributes[1], ccAttributes[2]);
grid.get_gridView().get_rows().add(newValues);
}
CloseDialog(dialogCostCenter);
We are calling the client side add method in a for loop.
What we see is that the entire loop gets executed but only the last row gets added to the grid.
Is there any way we can get over this problem?
Dave,
Can we get any help here?
So is there a way to get around this.
We cant get away with the webhierarchicalgrid as we need the grouping feature.
But at the same time we need to do client side multiple row addition as well.
I was trying to do it the way you advised me.
But for that to be done we need to have EnableClientRendering = true.
Please tell me how we can go about this.
EnableClientRendering is not supported in the WebHierarchicalDataGrid.
Further development is halted because of this.
Please get back as soon as possible.
-regards,
Divya
We have to add the rows to grid on client side for a webhierarchicalgrid also.
But i dont see an enableclientrendering property there.So what is the equivalent of enableclientrendering for a webhieararchicalgrid.
-best,