I looked at one of your samples here and made a minor modification to change what I needed to grab out of the RadGrid.
The project is built around the RowClick event on the client side, but I need to be able to open the RadWindow from a GridButtonColumn or similar using similar javascript. The problem is I don't know how to modify it to make it work so I can use it like I want.
Here is the script I am using currently:
And when I run and click the imagebutton I am using in the gridbuttoncolumn I get a jscript error of undefined.
Thanks!
The project is built around the RowClick event on the client side, but I need to be able to open the RadWindow from a GridButtonColumn or similar using similar javascript. The problem is I don't know how to modify it to make it work so I can use it like I want.
Here is the script I am using currently:
| <script type="text/javascript"> |
| function RowClick(sender, eventArgs) |
| { |
| var MasterTableView = eventArgs.get_tableView(); |
| var cell = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "item"); |
| var cell2 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "OrdNumb"); |
| var cell3 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "POS"); |
| var cell4 = MasterTableView.getCellByColumnUniqueName(MasterTableView.get_dataItems()[eventArgs.get_itemIndexHierarchical()], "HdrBuyFromBP"); |
| var oWnd = radopen("Details.aspx?item=" + cell.innerHTML + "&Order_No=" + cell2.innerHTML + "&POS=" + cell3.innerHTML + "&BP=" + cell4.innerHTML ); |
| } |
| </script> |
And when I run and click the imagebutton I am using in the gridbuttoncolumn I get a jscript error of undefined.
Thanks!