Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
igtbl_getCellByID problem
posted

I am using a web grid where the columns are not defined until it is bound to a dataset. I am trying to total a column on the client side after a filter is close. I use the AfterFilterClosed event to fire off the totaling function I am building. The AfterFilterClosed event only passes the gridname as a parameter. The column I am trying to total is different then the column I would like to sum. I can't seem to get the cell object created. I have looked through the knowledge base, etc. and nothing seems to work. I have tried the following:

var cell = igtbl_getCellById("UltraGrid1_rc_1_1_4");

var cellval = cell.getValue();

This does work for me:

var rows = igtbl_getGridByID(gridname).rows;

Then I can get the total number of rows by using rows.length

I can't seem to create an individual cell object and get the value in the cell.

I am sure it is an easy fix but I jest can't seem to pinpoint it. Any suggestions would be appreciated. Granted I am making the switch from WinGrid to WebGrid and I do see some similarities but not all the ones I need.

Thanks,
Steve

Parents Reply Children
No Data