how change the RadListView Page From CodeBehind (server-side)

3 posts, 1 answers
  1. Majid Darab
    Majid Darab avatar
    110 posts
    Member since:
    Sep 2012

    Posted 18 May 2011 Link to this post

    hi my dear friends :
    i have a RadDataPager inside A RadListView...
    also i have A RadComboBox That is in Ralationship with RadListView.Mean By SelectedIndexChanged Of It , RadListView Is Refreshed(DataBinded).
    my Problem is when u change the RadListView Page at item #1 of RadComboBox and change the Item Of RadComboBox To Item#2 , so we still have the previous selected page!
    how can i change the page of RadListView to 1 in SelectedIndexChanged Of RadComboBox?

    thanks for reading and helping me
  2. Answer
    Gimmik
    Gimmik avatar
    170 posts
    Member since:
    May 2011

    Posted 19 May 2011 Link to this post

    Hi Majid,

    Changing the page server side couldn't be easier. If you assume your RadListView ID is "RadListView1" then you code should look like this:

    RadListView1.CurrentPageIndex = 0;

    Hope this helps!
    -Gimmik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Majid Darab
    Majid Darab avatar
    110 posts
    Member since:
    Sep 2012

    Posted 19 May 2011 Link to this post

    thanks you dear Gimmik
Back to Top