Hello,
i need a solution for activating a specific tab after an action was executed.
Currently i was trying to get the PageControl like this:
C#protected override void OnActivated()
{
base.OnActivated();
if (View is DetailView detailView)
{
((WebLayoutManager)detailView.LayoutManager).PageControlCreated += OnPageControlCreated;
}
}
ASPxPageControl pageControl;
private void OnPageControlCreated(object sender, PageControlCreatedEventArgs e)
{
if (View is DetailView detailView && e.Model.Id == "TabbedGroup")
{
pageControl = e.PageControl;
((WebLayoutManager)detailView.LayoutManager).PageControlCreated -= OnPageControlCreated;
}
}
This works fine.
After my action i want to do this:
C#pageControl.ActiveTabIndex = 3;
Internally the the Index is changed, but visual there is no change.
Any solutions?
Hello,
As this question is more related to ASPxPageControl, I am passing this thread to our ASP team for the most precise answer. If you face any difficulties with integrating a solution into a XAF application, let me know.
Thanks,
Andrey