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

Kendo grid's "Server" vs "Ajax" method?

5 Answers 209 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Izak Joubert
Top achievements
Rank 1
Izak Joubert asked on 17 Aug 2012, 08:50 PM

Hi,

 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.

Thanks

@(Html.Kendo().Grid(Model)

.Name(

"EscrowsGrid")

.Columns(columns =>

{

columns.Bound(p => p.Status);

columns.Bound(p => p.Name);

columns.Bound(p => p.Available);

columns.Bound(p => p.Balance);

})

.Sortable()

.Scrollable()

.Groupable()

.DataSource(dataSource => dataSource

 .Server()

.Read(read => read.Action(

 

"EscrowData","Escrows"))

5 Answers, 1 is accepted

Sort by
0
Pechka
Top achievements
Rank 1
answered on 22 Aug 2012, 04:19 PM
Hi mate,

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!

Regards
0
Kevin
Top achievements
Rank 1
answered on 24 Jul 2015, 08:10 PM

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?

0
Dimiter Madjarov
Telerik team
answered on 29 Jul 2015, 08:24 AM

Hello Kevin,

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,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin
Top achievements
Rank 1
answered on 03 Aug 2015, 02:28 PM

No need. I found my explanation here:

 

http://www.telerik.com/forums/model-not-initialized-in-grid-popup-editor-‚Äč

0
Dimiter Madjarov
Telerik team
answered on 04 Aug 2015, 08:04 AM

Hello Kevin,

Thanks for the update. I am glad the issue is resolved.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Izak Joubert
Top achievements
Rank 1
Answers by
Pechka
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Dimiter Madjarov
Telerik team
Share this question
or