Hello, in my hierarchical radgrid, my GridButtonColumn doesn't work at first click.
But works fine at second click on Button.
This is the code:
<telerik:GridButtonColumn
UniqueName="BtnCol"
ButtonType="ImageButton"
ImageUrl="Images/Generic/Icons/info.gif"
CommandName="ShowDetails">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>
---
function ShowDetails(ID1, ID2, rowIndex) {
var grid = $find("<%= RG1.ClientID %>");
var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);
window.radopen("UserControl/PAGE.aspx?ID1=" + ID1+ "&ID2=" + ID2, "ModalWin");
return false;
}
Where is the problem? A JS CallBack?
Thanks!
But works fine at second click on Button.
This is the code:
<telerik:GridButtonColumn
UniqueName="BtnCol"
ButtonType="ImageButton"
ImageUrl="Images/Generic/Icons/info.gif"
CommandName="ShowDetails">
<HeaderStyle Width="30px"></HeaderStyle>
</telerik:GridButtonColumn>
---
function ShowDetails(ID1, ID2, rowIndex) {
var grid = $find("<%= RG1.ClientID %>");
var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);
window.radopen("UserControl/PAGE.aspx?ID1=" + ID1+ "&ID2=" + ID2, "ModalWin");
return false;
}
Where is the problem? A JS CallBack?
Thanks!