Webgrid 10 is not properly supporting older client-side function

3 replies. Last post: March 22, 2016 1:41 AM by Erwin Sanders
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Sachin JainMember

Hi,
We recently started using Webgrid 10. We have a webpage in which from clientside we collect  cell text on basis of checked checkbox column. The sample code is used from some intersoft support thread. Now, this method is not working properly and sometimes missed some checked rows.

Used method is like this

function GetSelectedItemIds() {
var grid = ISGetObject("WebGrid1");
var rows = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE).getElementsByTagName("tr");
var selectedItems = "";
var count = 0;
for (var i = 0; i < rows.length; i++) {
if (rows[i].type == "Record") {
if (grid.GetRowByElement(rows[i]).GetCell(0).CellElement.childNodes[0].checked) {
selectedItems += grid.GetRowByElement(rows[i]).GetCells().GetNamedItem("CustomerName").Text + "#";
count +=1;
}
}
}
document.getElementById("hdnSelectedCustomer").value = selectedItems;
alert(count );
}

please see that whether this method needs some modification !
regards
Sachin

All times are GMT -5. The time now is 12:01 PM.
Previous Next