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

Arrow sign to show which tab is opened

2 Answers 85 Views
PageView
This is a migrated thread and some comments may be shown as answers.
saud
Top achievements
Rank 1
saud asked on 06 Aug 2019, 05:36 AM

Hi,

I am using pageview in Explorer Bar and Stack Mode and i want to have an arrow sign on tabs which shows the selected tab. please see the attached image for further clarification.

 

Regards

Saud

2 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 08 Aug 2019, 08:03 AM
Hello, Saud,

According to the provided picture I can see that you have RadPageView in ExplorerBar mode. Please refer to the following example which demonstrates how to show the arrow sign in the ExplorerBar mode depending on whether the page is selected/expanded or not. The attached gif file illustrates the achieved result.

public partial class Form1 : RadForm
 {
     public Form1()
     {
         InitializeComponent();
 
         foreach (var page in radPageView1.Pages)
         {
             page.Item.Image = Image.FromFile("../../Right.png");
         }
 
         RadPageViewExplorerBarElement element = this.radPageView1.ViewElement as RadPageViewExplorerBarElement;
 
         element.ExpandedChanged += Form1_ExpandedChanged;
      }
 
      private void Form1_ExpandedChanged(object sender, RadPageViewExpandedChangedEventArgs e)
      {
           if (e.Expanded)
           {
                e.Item.Image = Image.FromFile("../../Down.png");
           }
           else
           {
                e.Item.Image = Image.FromFile("../../Right.png");
           }
      }
}

If you have RadPageView in Stack mode, you can use a similar approach.

I hope this helps. Should you have any other questions, I will be glad to help.

Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
saud
Top achievements
Rank 1
answered on 08 Aug 2019, 01:07 PM

Thanks Nadya

It worked!!

 

Regards,

Saud

Tags
PageView
Asked by
saud
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
saud
Top achievements
Rank 1
Share this question
or