Hi
We have a page that we are updating the RadGrid control from telerik RadGrid classic to telerik RadGrid ASP.Net Ajax control kit.
This page has 2 grids registered to it.
The first grid binds the data on the server and returns a set of results. We then select items on this grid and pass the selected items to the second grid on the page to highlight to the user what items there are selecting against one of our containers.
Previously our code done the following (Updated with the latest Telerik client side api reference calls)
ShowRow is not an object.
Could you please point me in the right direction as to what ShowRow has now been replaced with or an alternative solution to what I am trying to achieve?
Regards,
Jonathan
We have a page that we are updating the RadGrid control from telerik RadGrid classic to telerik RadGrid ASP.Net Ajax control kit.
This page has 2 grids registered to it.
The first grid binds the data on the server and returns a set of results. We then select items on this grid and pass the selected items to the second grid on the page to highlight to the user what items there are selecting against one of our containers.
Previously our code done the following (Updated with the latest Telerik client side api reference calls)
function AddToList(index) { var grid = $find('<%=grd.ClientID%>'); var Tick = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('IMG')[0]; var PlusMinus = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('IMG')[1]; var hid = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('INPUT')[10]; if (!IsRevoked(PlusMinus) && !IsStatic(PlusMinus)) { hid.value = "true"; grid.MasterTableView.get_dataItems()[index].get_element().style.backgroundColor = "#E2EFE1"; Tick.style.display = "block"; PlusMinus.src = "../icons/tree/GreyMinus.gif"; ShowRow(index); } }Our problem lies in the ShowRow(index) call at the end of the method:
function ShowRow(index) { var ChkBox = GetPickerGrid().MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('INPUT')[1]; ChkBox.checked = true; GetPickerGrid().MasterTableView.ShowRow(index); }
ShowRow is not an object.
Could you please point me in the right direction as to what ShowRow has now been replaced with or an alternative solution to what I am trying to achieve?
Regards,
Jonathan