3.2.0

Load Grid(Alex question for you)

Hi Alex...

I have a problem with grid loading. I am loading data with dataset from vb.net. after calculating modified data i am not able to reassign data to grid. I tried various approuches. but every time i failed. Please help me.

dSet is array of data

First approuch :

obj.setDataProperty("text",function(i,j){return dSet[i][j]});
obj.setRowProperty("values",dSet);
obj.refresh();

Secound approuch :

obj.clearRowModel();
obj.setColumnCount(20);
obj.setRowCount(dSet.length);
obj.setCellText(dSet);
obj.refresh();

Third approuch :

obj.setRowCount(dSet.length);
obj.setProperty("selection/index",0);
aw_cells= dSet;
obj.refresh();

Fourth approuch :

obj.setCellData(dSet);
obj.refresh();

Fifth approuch :

getCalGridData(dSet);
obj.refresh();

I didnt find solution by these approuches. Please help
Satyendra Kumar Panasa
September 19,
First, you should verify that your data is returned correctly as javascript array, try

alert(dSet[0][0]);

then

obj.clearCellModel();
obj.setCellData(dSet);
obj.refresh();

or, if you want to reset the row order and/or row count -

obj.clearCellModel();
obj.clearRowModel();
obj.setCellData(dSet);
obj.setRowCount(dSet.length);
obj.refresh();

Alex (ActiveWidgets)
September 19,
Hi alex..
Sorry to say..This is not working. Every thing is fine. I try to print the value of dSet[0][0] and dSet.length. Both are working fine. But when obj.setCellData(dSet) statement occurs error is firing in browser.
Please Help me to get solution. My project is stopped because of this issue.
Satyendra Kumar Panasa
September 20,

This topic is archived.

See also:


Back to support forum