I need to know the performance implications of using "Server" method vs "Ajax" method.I had to change all code to point to the Server method because using the tabstrip control does not work with Ajax Data.
Please find below my code.
columns.Bound(p => p.Status);
columns.Bound(p => p.Name);
columns.Bound(p => p.Available);
columns.Bound(p => p.Balance);
.DataSource(dataSource => dataSource
.Read(read => read.Action(
5 Answers, 1 is accepted
Why you want to use Server instead of Ajax ?
Basically Ajax is using Ajax requests when you page/sort/group/filter also Ajax request when you add/update/delete records. In Server mode each operation is doing a GET or POST request to the server and it refreshes the whole page. However when using server binding you have better search indexing (like google etc) you can give url-s which represent the current Grid set.
Check the demos and you will see the difference.
When using Ajax you have better performance (less server loading) for sure!
When I use Ajax, the Model parameter in a custom pop-up editor template is not the selected value. It's a default value, or null. I can still bind to Linq expressions in the helper on the editor template where that is possible. However, if I use Server, Model is the selected value.
In other words, for both Ajax and Server, I may use, for example, m => m.Name where applicable. Only with Server may I use @Model.Name anywhere on the view.
Why is that? Is there a remedy?
From the provided information we cannot state for sure what is the reason for the behavior. I would suggest to open a separate forum thread or a support ticket, because the issue is not directly related to the current one, and provide a sample code, so we could inspect it on our end. Thank you for the cooperation.Regards,
No need. I found my explanation here:
Thanks for the update. I am glad the issue is resolved.Regards,