I'm trying to use the jscript function igtbl_getRowById(...) and keep getting a jscript error - object expected... It's as if the calling code can't find the script files... This is using ver 9.2 and it was installed using all the default choices the installer offered.
Any help would be appreciated - It's probally something simple that I'm overlooking...
Jimm
Was the grid added to the page dynamically and no other grid was present on the page already to download the js? If so you need to explicitly load the js files for the grid.
If the grid was on the page previously and not added dynamically something else is going on and I'd need more of the actual script line you are using or a sample that demonstrates the issue.
The grid was not added dynamically - it was scripted on the page as opposed to drag-and-dropping it onto the page. The confusing thing is that the grid works just fine, and I assume the're a fair amount of jscript in used just managing the DataGrid but when I try to write a function it fails...
The script that's failing is really quite simple - it's basically a test for some later use...
function Results_DoubleClick( gridName, cellId ) {
var row = igtbl_getRowById( cellId);
var cl = row.getCellFromKey("Irn");
.........
Get the text in the cell and write it to
a cookie
}
If you need it I can past the whole page here or send it to you otherwise.
You are using the new WebDataGrid not the UltraWebGrid.
function WebDataGrid1_Grid_DoubleClick(sender, eventArgs) { if (eventArgs.get_type() == "cell") { var cell = eventArgs.get_item().get_row().get_cellByColumnKey("Irn") var cellText = cell.get_text(); }}
CSOM (Client side object model) is a little different for the new one as opposed to the old asp.net controls.