Display relatime data

9 posts, 0 answers
  1. Christian
    Christian avatar
    3 posts
    Member since:
    Jun 2014

    Posted 21 Jul 2014 Link to this post

    Hello,

    like the title reveals, I need to display data, that is updated irregularly, but at least once every few seconds.

    Is it possible to bind the Chart to a SignalR hub, like it is for the grid? (http://demos.telerik.com/aspnet-mvc/grid/signalr)
    Which other approaches promise good and efficient results? Polling of WebAPI? A separat SignalR function and adding data to chart on client side?

    Thank you in advance.
  2. Christian
    Christian avatar
    3 posts
    Member since:
    Jun 2014

    Posted 21 Jul 2014 in reply to Christian Link to this post

    I am sorry for the writing error within the title of this tread.
    It would be nice, if an admin could correct it.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 23 Jul 2014 Link to this post

    Hi,

    I'd recommend SignalR as it is a better solution in terms of performance and efficiency.

    There seems to be an issue with the current version of the Chart MVC wrappers with regards to the SignalR data source configuration.
    It will actually work for reading data, but the update/delete/create methods are not configurable.

    We're looking into this and we'll try to provide support for live updates in the short term.

    For the moment I've prepared a JS version as a proof of concept.

    Apologies for the caused inconvenience.

    Regards,
    T. Tsonev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. deleteme
    deleteme avatar
    3 posts
    Member since:
    Jul 2014

    Posted 27 Jul 2014 in reply to T. Tsonev Link to this post

    Hello, Tsvetomir (am I right, is it your name?)

    In your sample the transition of the chart is turned off, therefore the series update without animation and chart re-drawing. But if the transition is turned on, all the chart re-draws, when the data is updated, not only serie. So, is it possible to combine real-time chart series update with animation of these series, but not the whole chart? For example, I have a bar chart with a datasource, that updates via signalr and the only bar serie. Perhaps, the current value of the serie is 10 poins. Now, the datasource update its value to 15. I want the bar of the serie smoothly come longer from 10 to 15, not from 0 to 15. So, is it possible? Sorry for my English, it's not my mother tongue :)
  6. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 28 Jul 2014 Link to this post

    Hello,

    Such incremental updates are not available right now, but this is something that we definitely consider.
    There are some technical issues that we need to address first, but we're already working on them.

    Apologies for the caused inconvenience.

    Regards,
    T. Tsonev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. deleteme
    deleteme avatar
    3 posts
    Member since:
    Jul 2014

    Posted 28 Jul 2014 in reply to T. Tsonev Link to this post

    It will be great! Thank you for answer!
  8. Robert
    Robert avatar
    3 posts
    Member since:
    Jun 2013

    Posted 11 Aug 2015 in reply to T. Tsonev Link to this post

    Status on this?

    T. Tsonev said:Hi,

    I'd recommend SignalR as it is a better solution in terms of performance and efficiency.

    There seems to be an issue with the current version of the Chart MVC wrappers with regards to the SignalR data source configuration.
    It will actually work for reading data, but the update/delete/create methods are not configurable.

    We're looking into this and we'll try to provide support for live updates in the short term.

    For the moment I've prepared a JS version as a proof of concept.

    Apologies for the caused inconvenience.

    Regards,
    T. Tsonev
    Telerik

     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 14 Aug 2015 Link to this post

    Hi,

    I've made an up-to-date example for a SignalR bound Chart available on GitHub.

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  10. Robert
    Robert avatar
    3 posts
    Member since:
    Jun 2013

    Posted 14 Aug 2015 in reply to T. Tsonev Link to this post

    Indeed this is great!

     Thank you

Back to Top
UI for ASP.NET MVC is VS 2017 Ready