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

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

1 Answer 1208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JOHNY
Top achievements
Rank 1
JOHNY asked on 06 Nov 2013, 05:23 PM
How do you bind a custom function to the "requestEnd" event of a dataSource with MVC notation? 

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 07 Nov 2013, 09:22 AM
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!
Tags
Grid
Asked by
JOHNY
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or