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

[Solved] Setting the target URL on filter/sort

0 Answers 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff
Top achievements
Rank 1
Jeff asked on 15 Jan 2013, 05:37 PM
Hello,

We are using the old MVC Extensions in a web portal for our client, and are having some issues with the Grid.  I've got a principal view (called Registration.cshtml) that has three nested <div> elements, each acting as a tabbed sub-view.  Our Telerik grid lives on one of these sub-views (called CourseRegistrationTab.cshtml).

When the page loads in the browser, at ~/Portal/Registration, the grid works just fine.  But if I attempt to enable anything like sorting or filtering on the grid, the behavior is incorrect.  For example, if I filter on course name to start with "Intro" and click to filter, the browser is redirected to:

~/Portal/CourseRegistrationTab?CourseOfferingGrid-filter=CourseName~startswith~'Intro'

So... this works and data is correct, but all I get is the straight HTML of my sub-view, with no surrounding page or styling.  What I am looking for, therefore, is the way I can set the grid to instead direct the browser back to:

~/Portal/Registration?CourseOfferingGrid-filter=CourseName~startswith~'Intro'

Any pointers on this would be GREATLY appreacited!

Thanks,
Jeff
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Share this question
or