client side event OnRowDataBound & NeedDataSource

4 posts, 0 answers
  1. Christian
    Christian avatar
    64 posts
    Member since:
    Apr 2008

    Posted 27 Feb 2015 Link to this post

    A simple question, is the client event OnRowDataBound meant to fire when using server side binding with NeedDataSource?

    For me it does not fire when using server side binding, only client side binding but I need the OnRowDataBound to work on server side binding when partially moving to client side coding and I cant think of a reason it shouldn't fire.

    Cheers,
    Christian
  2. Christian
    Christian avatar
    64 posts
    Member since:
    Apr 2008

    Posted 27 Feb 2015 Link to this post

    Just to add, the client event OnRowSelected fires using server side binding, but not OnRowDataBound as previously stated.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Christian
    Christian avatar
    64 posts
    Member since:
    Apr 2008

    Posted 27 Feb 2015 Link to this post

    Just to add, the client event OnRowSelected fires when using server side binding, but OnRowDataBound does not as previously stated.
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 04 Mar 2015 Link to this post

    Hello Christian,

    Indeed the OnRowDataBound event fires only when client-side binding is used. If you want to apply some changes to the rows using JavaScript and the grid uses server-side binding you can subscribe to the OnRowCreated event. Another option for you would be to subscribe to the OnItemDataBound server-side event and move the logic on the server(if possible).

    Regards,
    Angel Petrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top