Multiple DataBound events - Same grid

4 posts, 0 answers
  1. michel
    michel avatar
    11 posts
    Member since:
    Apr 2013

    Posted 05 Aug 2013 Link to this post

    .Events(e => e
                .DataBound("alert('hi 1 ')")
                .DataBound("alert('hi 2')")

    Is it normal that we cant use the fluent eventbuilder with multiple events (same event type) ?

    Kind regards,
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 06 Aug 2013 Link to this post


    As per your code it will only fire "alert hi 2".
    Because Firstly you have assigned "alert hi 1" then you have overwrite this with "alert hi 2". so it will fired only "alert hi 2".

    Jayesh Goyani
  3. jeff
    jeff avatar
    2 posts
    Member since:
    Oct 2015

    Posted 16 Apr Link to this post

    So how can multiple events be assigned to DataBound and fire using the example

    .Events(e => e
                .DataBound("alert('hi 1 ')")
                .DataBound("alert('hi 2')")

  4. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 20 Apr Link to this post

    Hello jeff,

    Multiple DataBound events for same grid is not supported scenario. I would suggest to use one event handler and implement some conditional statement to check and execute the desired code. 

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