Is there a complete method somewhere?

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 07 Aug 2012 Link to this post

    Essentially I want to have an "Empty Data Template" so after my custom binder runs for every row in my table I want to then check the visible count, and perform an action.

    So is there an event that fires, or....?

    Steve
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 10 Aug 2012 Link to this post

    Hello Steve,

    If paging is enabled you can use the empty message which is displayed when there are no records in the Grid. If it does not suit your need you can use the dataBound event of the Grid and check the length of the records displayed. 
    var numberOfRecords = this.dataSource.view().length;


    Kind regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 10 Aug 2012 Link to this post

    Ahhh, see there's the difficulty :)

    There is no grid, its a table who's rows are MVVM bound to hide or show
  5. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 15 Aug 2012 Link to this post

    Hi Steve,

    There are events of the dataSource called requestEnd and sync which are available in the latest internal build. Basically the requestEnd is triggered when the dataSource finishes its request.

    I hope this helps.

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready