Can someone tell me why this doesn't work?
What is supposed to happen is that all selected grid items get sent to my radWindow as a querystring. What happens is that cell is returned as "undefined" and no matter how I tweak it (declare var cell at top) etc it still returns nothing. Also, this is attached to an asp button using OnClientClick="return GetSelectedIDs();" and I use the return false; to crush the postback.
For the record, the radWindow opens fine but has a querystring PosIDs=undefined.
Sam
| function GetSelectedIDs() { |
| var cell; |
| var grid = $find("rgEmpTable"); |
| var MasterTable = grid.get_masterTableView(); |
| var selectedRows = MasterTable.get_selectedItems(); |
| for (var i = 0; i < selectedRows.length; i++) { |
| var row = selectedRows[i]; |
| var cell = MasterTable.getCellByColumnUniqueName(row, "empid") |
| } |
| var oWnd = radopen("SubmitResume.aspx?PosIDs=" +cell, "SubmitResume"); |
| oWnd.center(); |
| return false; |
| } |
What is supposed to happen is that all selected grid items get sent to my radWindow as a querystring. What happens is that cell is returned as "undefined" and no matter how I tweak it (declare var cell at top) etc it still returns nothing. Also, this is attached to an asp button using OnClientClick="return GetSelectedIDs();" and I use the return false; to crush the postback.
For the record, the radWindow opens fine but has a querystring PosIDs=undefined.
Sam