KendoReact Grid WebSocket Binding Demo

2 posts, 0 answers
  1. ShootingStar
    ShootingStar avatar
    5 posts
    Member since:
    Dec 2011

    Posted 25 Mar 2020 Link to this post

    Hello,

     

    In Kendo UI for jQuery document, there is a section for WebSocket binding.

    However, I couldn't find the WebSocket binding example in KendoReact document.

    Can you tell me where it is?

     

    regards,

     

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 26 Mar 2020 Link to this post

    Hello, Donam,

    Currently, we do not have a demo with WebSockets for KendoReact.

    The main reason is that the KendoReact Grid follows the React best practices and does not have internal data manipulation as the Kendo UI Grid has with the data source. This makes the KendoReact Grid easily connected to any data as long as it is in JSON array, as it has no specific requirements for the services, it only expects data array and emits an event when something changes.

    This is why we have very little integration demos with such services, as the Grid itself has no requirements on how to interact with them. The developer has to connect to the WebSocket and pass the data to the Grid and push notifications when something in the Grid changes on the onItemChange or onDataStateChange events.

    I used the same WebSocket and connected the KendoReact Grid with it. I did not add the full integration as this will be specific to the WebSocket implementation. The demo is proof of concept that this is possible:

    https://stackblitz.com/edit/react-pht9wb?file=app/main.jsx

    I hope this information was helpful.

    We stay ready to assist if further questions arise.

    Regards,
    Stefan
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top