This is a migrated thread and some comments may be shown as answers.
Grid inside control creates wrong URLs
1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 15 Nov 2010, 05:05 PM
A grid inside a control is not working, it creates the wrong URLs, none of which work.

Here is the setup:

In the Global.asax file, the mvc routing is set up, as normally done:

  // NORMAL MVC  

  routes.MapRoute(

 

    "Default", // Route name  

    "{controller}/{action}/{id}", // URL with parameters 
    new { controller = "Home", action = "Index", id = string.Empty }); // Parameter defaults


Placed directly in a page, a Telerik MVC grid is working correctly:
Page:              http://localhost/Device/List
Grid button urls:  http://localhost/Device/List?page=2

Placed inside a control in a page, a Telerik MVC grid is not doing its urls correctly, none of its buttons are working: 

Entry Page:        http://localhost/Device/Details/
Grid Button urls:  http://localhost/Device/Messages/

Here, "Messages" is clearly wrong.

However, we have to get the url right, in order to be able to show anything.
What would you suggest be done?

 

 

1 Answer, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 17 Nov 2010, 01:31 PM
For now, I have inserted a MapRoute before the generic one, to reroute Messages to Details.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Share this question
or