This question is locked. New answers and comments are not allowed.
Hello All,
I'm new to programming with MVC and have implemented the Telerik grid and it works great. I'd like to be able to select a row from the grid and have it open a new window with the details about that row using URL routing. For instance, a row would have a Bundle ID and that would be used to populate the URL for the details window: /Bundle/Detail/<ProductID>. I've got the select function down, and using JavaScript can get a window to open - but how do I pull the selected ID from the grid out and append it to the URL? I've tried the following to no avail. Any ideas?
I'm new to programming with MVC and have implemented the Telerik grid and it works great. I'd like to be able to select a row from the grid and have it open a new window with the details about that row using URL routing. For instance, a row would have a Bundle ID and that would be used to populate the URL for the details window: /Bundle/Detail/<ProductID>. I've got the select function down, and using JavaScript can get a window to open - but how do I pull the selected ID from the grid out and append it to the URL? I've tried the following to no avail. Any ideas?
| function onRowSelected(e) { |
| var bundleID = e.row.cells[0].innerHTML; |
| window.open('../Bundle/' + bundleID, 'BundleDetails'); |
| } |