More in this section

Forums / Developing with Sitefinity / RenderSelectedPageOnly and OnNeedDataSource

RenderSelectedPageOnly and OnNeedDataSource

2 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    15 Oct 2007
    Link to this post
    I have a radgrid on a multipage in a Intrasite module. The OnNeedDataSource doesn't seem to fire when the multipage shows the pageview with the datagrid. Therefore in order to populate the grid the following has to be used on every page_load:

    grid1_NeedDataSource(Me.grid1, New Telerik.WebControls.GridNeedDataSourceEventArgs(GridRebindReason.InitialLoad))
    Me.grid1.Rebind()

    Any thoughts on how to make this more efficient would be appreciated.

    Sincerely,

    Ben
  2. Yasen
    Yasen avatar
    121 posts
    Registered:
    18 May 2013
    19 Oct 2007
    Link to this post
    Hello bnye,

    I tried to reproduce this issue, I created a user control with a RadTabStrip, RadMultipage and RadGrid in one of the page views. However, everything is working fine in my case. I haven't set a dataSource for the grid and use the NeedDataSource event to populate the grid. The event is fired if I set AutoPostBack to true for the tab strip.

    Can you please be more specific about how exactly to reproduce this behavior (when the event is not fired).

    Kind regards,
    Yasen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered