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

RadPageView stripmode 's selected page index

1 Answer 279 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 27 Apr 2011, 01:55 PM
Hi,
                I am using the strip mode in this if i select a page then i need to get the index of that page selected .How can i do this can anyone please explain it......



Thanks
Divya

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 27 Apr 2011, 02:51 PM
Hello,

You can select a page, and then use IndexOf of the Pages collection in the SelectedPageChanged event to get the index of the page

private void Form1_Load(object sender, EventArgs e)
{
    this.radPageView1.SelectedPageChanged += new EventHandler(radPageView1_SelectedPageChanged);
    this.radPageView1.SelectedPage = this.radPageViewPage3;
}
void radPageView1_SelectedPageChanged(object sender, EventArgs e)
{
    MessageBox.Show("Page Index " + this.radPageView1.Pages.IndexOf(this.radPageView1.SelectedPage).ToString());
}

Hope that helps
Richard
Tags
PageView
Asked by
Divya
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or