This question is locked. New answers and comments are not allowed.
Hello,
We're running into problems with the way the Telerik grid reproduces the existing querystring in its sorting & pagination links, and would greatly appreciate some help.
In our application's search results page, for example if the user has selected multiple buildings, they are serialized in the URL as ?BuildingList=10&BuildingList=12... and the controller receives its Model with IEnumberable<int> BuildingList = {10, 12}. Which works great and the world is full of sunshine and puppies.
But then the grid links reproduce that url as ?BuildingList=10%2C12...&page=2, and the default ModelBinder seems to completely fail to understand that, leaving BuildingList = null in the Model, so the controller displays nothing, and the user is left feeling miserable and empty inside.
So, is there a way to either
- tell Telerik Grid not to condense the parameters, or
- make MVC understand that style of parameter (without doing our own parsing of the querystring)
Or are we missing something else entirely?
Thanks tremendously,
Nolan
We're running into problems with the way the Telerik grid reproduces the existing querystring in its sorting & pagination links, and would greatly appreciate some help.
In our application's search results page, for example if the user has selected multiple buildings, they are serialized in the URL as ?BuildingList=10&BuildingList=12... and the controller receives its Model with IEnumberable<int> BuildingList = {10, 12}. Which works great and the world is full of sunshine and puppies.
But then the grid links reproduce that url as ?BuildingList=10%2C12...&page=2, and the default ModelBinder seems to completely fail to understand that, leaving BuildingList = null in the Model, so the controller displays nothing, and the user is left feeling miserable and empty inside.
So, is there a way to either
- tell Telerik Grid not to condense the parameters, or
- make MVC understand that style of parameter (without doing our own parsing of the querystring)
Or are we missing something else entirely?
Thanks tremendously,
Nolan