Hi Li,
Thanks for the update.
We have an option to bind grid with dynamic data source and with the help of this we can able to bind different data source to the grid. The grid takes the same data source if you doing paging, sorting, etc.,
Please refer the below documentation link and online sample link to know more about the Dynamic data binding.
Documentation link:
http://help.syncfusion.com/UG/User%20Interface/ASP.NET%20MVC/Grid/Documents/databinding.htm
Online Sample link(Dynamic data binding):
Could you please let me know what is your exact requirement on posting model to the grid on every post back and provide more information on postback model to the grid so that we could able to sort out the problem which you are facing and provide you a better solutions quickly?
Please let us know if you have any concerns.
Regards,
Bala Murugan A.S
Hi,
I have already read the sample and my solution is like that. However, supposed we have a much more complex form. The datasource is retrieved using these inputs in the code behind. Here is the scenario:
When I turn to the second page or I do inline editing, how can I postback those inputs? "QueryParam" seems to work, but in our application, the data model is so complicated, I would like to postback a view model rather than a long list of query parameters.
I hope you understand my question now.
Thanks,
Li
Pretty good. I tried that one too, and it worked. I think you should include this sample into documentation, and that is a good example.
Hi Chandra,
Thank you for your interest in Syncfusion products.
As per your requirement we have modified the above sample which works in MVC 4 (VS2012) in 10.4.0.71 version and it is attached below. Please refer to it.
Please let us know if you have any concerns.
Regards,
Rakesh D
I am also facing the same issue , for example when we click on page number 10 in grid , the data is pulling from back end based on page number and Page size and grid is refreshing and selecting (ie highlighting ) the page number 1 , please any one can help to provide working sample code to resolve this issue.
suresh,
To validate the reported scenario “Grid returns to the first page while server-side pagination”, we need further details. Please share the below information which will be helpful for us to provide a better solution as early as possible.