Maybe someone can help me with this one. I have a grid for which I am trying to create a pop-up window with RadWindowManager opening a page which will allow entry for certain invoice and billing information that will get written to all selected records. I want to pass the selected record datakey IDs to the window's page as a query string. Everything is working great, window opens, see what I want, except for actually getting the selected detail table records. Below is the the client side script I've cobbled together from several differrent examples:
This works great to get selected records in the master table (which I disabled record selecting in the master), but isn't helping at all for the selected detail records. I am calling the snippet above from a custom command item template button, shown below:
Any suggestions? Thanks.
function GetSelectedIDs() { |
var grid = $find("RadGrid1"); |
var MasterTable = grid.get_masterTableView(); |
var selectedRows = MasterTable.get_selectedItems(); |
var selIDs = new Array(selectedRows.length); |
for (var i = 0; i < selectedRows.length; i++) { |
var row = selectedRows[i]; |
selIDs[i] = MasterTable.getCellByColumnUniqueName(row, "ID").innerHTML |
} |
var oWnd = radopen("BilledUpdate.aspx?PosIDs=" + selIDs.join(","), "BilledUpdate"); |
oWnd.center(); |
return false; |
} |
This works great to get selected records in the master table (which I disabled record selecting in the master), but isn't helping at all for the selected detail records. I am calling the snippet above from a custom command item template button, shown below:
<CommandItemTemplate> |
<asp:LinkButton ID="cmdBillSelect" runat="server" OnClientClick="GetSelectedIDs();" CommandName="BillSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Bill Selected</asp:LinkButton> |
<asp:LinkButton ID="cmdNonBillable" runat="server" CommandName="NonBillable"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Mark Non-Billable</asp:LinkButton> |
</CommandItemTemplate> |
Any suggestions? Thanks.