c# - Enabling Server Filtering, Sorting, Paging breaks SignalR Client Updates for MVC Kendo UI Grid -



c# - Enabling Server Filtering, Sorting, Paging breaks SignalR Client Updates for MVC Kendo UI Grid -

i created application using teleirk mvc wrapper kendo ui grid signalr datasouce.

an update of grid transmitted , reflected on clients running application (with client side filtering, sorting, paging). datasource using rather big (which caused performance issues filtering, sorting, paging operations). re-configured grid utilize server filtering, sorting, paging did fixed performance issue , drastically improved usability of application.

after reconfigured move actions server-side noticed alter making not beingness reflected on client machines. switched , forth between client-side , server-side filtering, sorting, , paging verify that alter cause of issue sure.

has experiences before themselves? , can provide me steps/advice on how prepare this?

thank you

telerik provided me solution. here thread answer:

[http://www.telerik.com/forums/enabling-server-filtering-sorting-paging-breaks-signalr-client-updates-for-mvc-kendo-ui-grid#hsk5fb_tqe-jnm98lzzruq][1]

if using datasourcerequest , datasourceresult within signalr hub class need ensure methods homecoming same type:

public datasourceresult read(datasourcerequest request) { var result = _dataservice.read().asqueryable().todatasourceresult(request); homecoming result; } public void update(producttitlepartsbysku item) { _dataservice.update(item); clients.others.update(item); }

in scenario clients.others.update phone call returns item - should be:

clients.others.update(new datasourceresult { info = new[] { item } });

you must ensure set .data options etc in grid view:

.schema(schema => schema .data("data") .total("total") .aggregates("aggregates") .model(model => { model.id(m => m.idcolumn); model.field(m => m.idcolumn).editable(false); }) )

this ensures grid knows has bind info property of datasourceresult

c# kendo-ui telerik telerik-grid telerik-mvc

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -