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

Telerik UI realtime update capability

5 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
verlsnake
Top achievements
Rank 1
verlsnake asked on 24 Jul 2009, 12:36 PM
One main concern of mine is: Is it possible to refresh only those parts of the UI the underlying data of which has changed ? For instance cells in a DataGrid for which the data has changed ...

If refreshing the UI - e.g. a DataGrid - means always refreshing the WHOLE DataGrid, that can become pretty inefficient, I guess ...


I could listen to data changes in the client-side myself and then I would want to tell the UI to adapt to those changes; but in a focused manner, not always using a whole widget refresh ...

Unfortunately, the capability to let the UI react to data changes efficiently in realtime is crucial for me; so I need to know if it's practically possible or not (yet) with the Telerik Components ...

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Jul 2009, 12:47 PM
Hi verlsnake,

This is not supported out-of-the-box by our controls, however you can implement your own client tracking mechanism which serves the same purpose. Here is how this is done for edited RadGrid items on this online demo of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

Review the information/code snippets from the sample for more details.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
verlsnake
Top achievements
Rank 1
answered on 24 Jul 2009, 02:06 PM
Hello Sebastian !

I'm currently taking a bird's eye view because I'm not into any framework's (code) internals ...

I have, however, pointed out the following line of code:
- $find("<%= RadGrid1.MasterTableView.ClientID %>").updateItem(editedRow);
- Method which updates the edited table row passed as an argument or the row corresponding   to the index passed as an argument. If you have several items switched in edit mode, you   can update all of them with subsequent calls to this method. The updated data will be   taken from the edit form editors.


Questions/Observations:
- Does this method always go to the server ?
- I would like to have a method which updates a DataGrid cell due to changes in its   underlying data; the above method seems to use updated data taken from the edit form   editors ...
0
Sebastian
Telerik team
answered on 28 Jul 2009, 03:27 PM
Hello verlsnake,

Onto your questions:
  1. Indeed the updateItem method performs a request to the server in order to update the data for the edited row.
  2. In case you use inline editing for the grid, the same client method should pass the new values from the inline column editors to perform the update operation.

Kind regards,

Sebastian

the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
verlsnake
Top achievements
Rank 1
answered on 29 Jul 2009, 12:04 PM
Sebastian, I'm still in doubt; please picture the following:
- I have a data reservoir on the client-side; this reservoir can be fed with data in   realtime; those data can come out of the slip stream; .NET does not need to be involved   in filling this client-side data reservoir.
- Then I want to feed data from this client-side data reservoir into Telerik UI widgetry;   in other words: I want to bind Telerik Controls to data residing in this client-side   data reservoir.
- Is it possible to update Telerik Controls due to changes occurring in the client-side   data reservoir ? Or do ALL client-side methods operating on/updating Telerik Control Data   have to go to the server-side ?

I am grateful for clarification !


Cheers and Tschüss

Kai
0
Sebastian
Telerik team
answered on 29 Jul 2009, 12:56 PM
Hello verlsnake,

In case you would like to bind the grid on the client, consider taking advantage of its client-side binding feature presented on these demos:

http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

and discussed in more details in this documentation topic:
http://www.telerik.com/help/aspnet-ajax/client-side-binding.html

The important thing that I should highlight about your data reservoir is:

Keep in mind that the data source passed as an argument to the set_dataSource method should have JSON signature which can be serialized by a web service or a page method.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
verlsnake
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
verlsnake
Top achievements
Rank 1
Share this question
or