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

    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?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 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.
    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top