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

Mvc helper and datasource event

1 Answer 301 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
loi
Top achievements
Rank 1
loi asked on 15 Jul 2013, 06:34 PM
Hi,
I couldn't find any example of how to attach datasource events such as requestStart, requestEnd, or error using the Mvc Grid Helper.  Can it be done?

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 17 Jul 2013, 06:32 AM
Hi Loi,


Yes it could be done. The dataSource events binding should be added in the dataSource configuration of the Grid as demonstrated in the following demo.
E.g.
.DataSource(dataSource => dataSource
   .Ajax()
   .Events(e => e.RequestStart("requestStart").RequestEnd("requestEnd").Error("error"))
   ...
)

I hope that this was the information that you were looking for. Have a great day!

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
loi
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or