PanelManager Page Index


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
Is there a way to access the Index of a PanelManager page?  I notice they each have an index when you view them in the page collection.  Is there a way to access that in code?  All I can find is TabIndex which is not what I want.  I would like to be able to do something like the following....

lstPanels.DisplayMember = "PageDescription"
lstPanels.ValueMember = "PageIndex"   '<---This would be the index property of the page

For Each panel as PanelManagerPage in PanelManager.PageCollection
   lstPanels.Items.Add(panel)
Next

Then on the SelectedIndexChanged event of lstPanels I would just have to do something like this....

PanelManager.SetActivePage(lstPanels.SelectedValue)

So, I just need to know how I can access this 'PageIndex' property I'm wanting to use.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The index of the page is determined by the order they appear in the PageCollection on the PanelManager.  You can manage this through the form designer.  You can then reference a page by object reference or by index.  You can also set the active page by index or reference.  See below.

Accessing Options
Me.PanelManager1.CurrentPageIndex
Me.PanelManager1.CurrentPage

Page Setting Options
Me.PanelManager1.SetActivePage(Index)
Me.PanelManager1.SetActivePage(PanelPageReference)

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search