How do you bind a custom function to the "requestEnd" event of a dataSource with MVC notation?

2 posts, 0 answers
  1. JOHNY
    JOHNY avatar
    9 posts
    Member since:
    Oct 2012

    Posted 06 Nov 2013 Link to this post

    How do you bind a custom function to the "requestEnd" event of a dataSource with MVC notation? 

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2272 posts

    Posted 07 Nov 2013 Link to this post

    Hello Johny,


    To achieve this you should either pass the name of the JavaScript function that will be invoked
    E.g.
    .DataSource(dataSource => dataSource
        ...
        .Events(e => e.RequestEnd("onRequestEnd"))

    function onRequestEnd(e) { ... }
    OR
    use an inline handler
    E.g
    .Events(e => e.RequestEnd(@<text>
              function(){ ... }
          </text>))


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