Prevent read from DataSource on bind?

2 posts, 0 answers
  1. Trent
    Trent avatar
    3 posts
    Member since:
    Feb 2018

    Posted 09 Oct 2018 Link to this post

    Is there a way to prevent the datasource from doing a read when I use the setDatasource Method? I have a case where I'm using the same datasource for multiple sheets, and each bind is causing a read. 

     

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1201 posts

    Posted 11 Oct 2018 Link to this post

    Hi Trent,

    In order to prevent the DataSource read action you will need to handle its requestStart event:
    function(e) onRequestStart {
      e.preventDefault();
    }

    Here is a small sample implementing the above suggestion.

    Regards,
    Veselin Tsvetanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top