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

Is there a complete method somewhere?

3 Answers 55 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Veteran
Steve asked on 07 Aug 2012, 01:57 PM
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

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 10 Aug 2012, 06:36 AM
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!
0
Steve
Top achievements
Rank 2
Veteran
answered on 10 Aug 2012, 11:58 AM
Ahhh, see there's the difficulty :)

There is no grid, its a table who's rows are MVVM bound to hide or show
0
Petur Subev
Telerik team
answered on 15 Aug 2012, 09:05 AM
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!
Tags
MVVM
Asked by
Steve
Top achievements
Rank 2
Veteran
Answers by
Petur Subev
Telerik team
Steve
Top achievements
Rank 2
Veteran
Share this question
or