I am using a RadGrid w/ GridClientSelectColumn inside a RadWindow w/ ContentTemplate. If I place this RadGrid outside of the RadWindow - the ._selectAllRows event works as expected. But inside the ContentTemplate - it is not finding the reference to the RadGrid - instead throwing this error:
This is the checkbox code that is automatically rendered in the header to allow you to select all:
<input id="wSaveOptions_C_gUnbilledOrders_ctl01_ctl09_ctl01_ClientSelectColumnSelectCheckBox" type="checkbox" name="wSaveOptions$C$gUnbilledOrders$ctl01$ctl09$ctl01$ClientSelectColumnSelectCheckBox" onclick="$find("wSaveOptions_C_gUnbilledOrders")._selectAllRows("wSaveOptions_C_gUnbilledOrders_ctl00", "", event);" />
Oddly, if I write my own routine to deal with it, it works fine:
which is rendered as
Am I doing something wrong? Can I not have a SelectColumn RadGrid in a RadWindow ContentTemplate?
Using the latest normal release Q3-2012
This is the checkbox code that is automatically rendered in the header to allow you to select all:
<input id="wSaveOptions_C_gUnbilledOrders_ctl01_ctl09_ctl01_ClientSelectColumnSelectCheckBox" type="checkbox" name="wSaveOptions$C$gUnbilledOrders$ctl01$ctl09$ctl01$ClientSelectColumnSelectCheckBox" onclick="$find("wSaveOptions_C_gUnbilledOrders")._selectAllRows("wSaveOptions_C_gUnbilledOrders_ctl00", "", event);" />
Oddly, if I write my own routine to deal with it, it works fine:
function
selectAll()
{
var
masterTable = $find(
'<%= gUnbilledOrders.ClientID%>'
).get_masterTableView();
masterTable.selectAllItems();
}
function
clearAll()
{
var
masterTable = $find(
'<%= gUnbilledOrders.ClientID%>'
).get_masterTableView();
masterTable.clearSelectedItems();
}
which is rendered as
function
selectAll()
{
var
masterTable = $find(
'wSaveOptions_C_gUnbilledOrders'
).get_masterTableView();
masterTable.selectAllItems();
}
function
clearAll()
{
var
masterTable = $find(
'wSaveOptions_C_gUnbilledOrders'
).get_masterTableView();
masterTable.clearSelectedItems();
}
Am I doing something wrong? Can I not have a SelectColumn RadGrid in a RadWindow ContentTemplate?
Using the latest normal release Q3-2012