Mvc helper and datasource event

2 posts, 0 answers
  1. loi
    loi avatar
    25 posts
    Member since:
    Feb 2010

    Posted 15 Jul 2013 Link to this post

    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?
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2211 posts

    Posted 17 Jul 2013 Link to this post

    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.
    .DataSource(dataSource => dataSource
       .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!


    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top