This is a migrated thread and some comments may be shown as answers.

[Solved] Using MVC URL Routing with Grid

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brad Violand
Top achievements
Rank 1
Brad Violand asked on 20 May 2010, 06:59 PM
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?

 

        function onRowSelected(e) {  
            var bundleID = e.row.cells[0].innerHTML;  
            window.open('../Bundle/' + bundleID, 'BundleDetails');  
        } 

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 21 May 2010, 07:58 AM
Hello Brad Violand,

Perhaps you should try this:

window.open('../Bundle/' + bundleID + '/BundleDetails');


Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Brad Violand
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or