on 06-23-2011 10:04 AM
Hi,
In my iGrid,I have 5 static columns as BatchNo.,Drop DateTime,Date Time,Drop Qty,Moisture
and several columns which are dynamically created.
I want to hide the Date Time which is my third column on certain condition.I am using
document.iGrid.getGridObject().setColumnWidth(3,0);
but it is not working.
Just to check I also tried using document.iGrid.getGridObject().setColumnWidths(0);,but this is also not working.
What can be the problem.
I am also using
document.iGrid.getGridObject().setColumnHeadings(NEWVALUE); to set the column headings.
Thanks,
Anuj
Hi Anuj,
Hope you r doing gud.
for setColumnWidths function you have to set widths for all the columns
example : if you have 5 columns and you want to hid 3rd one then
document.iGrid.getGridObject().setColumnHeadings("Col1,Col2,Col3,Col4,Col5");
document.iGrid.getGridObject().setColumnWidths("10,10,0,10,10");
Thanks
Anshul
Edited by: Anshul Sahu on Jun 23, 2011 11:12 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try to use
document.iGrid.getGridObject().setColumnHeading(1,"Col1")
document.iGrid.getGridObject().setColumnWidth(1,20)
here 1 is index of column
and to hide 3rd column you can use
document.iGrid.getGridObject().setColumnWidth(3,0)
document.iGrid.updateGrid(true);
thanks
Anshul
Edited by: Anshul Sahu on Jun 23, 2011 11:28 AM
Edited by: Anshul Sahu on Jun 23, 2011 11:29 AM
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.