Keytips are not working for Radpageviewpage

1 Answer 65 Views
PageView
Suresh
Top achievements
Rank 1
Suresh asked on 12 Jun 2023, 10:09 AM

Hi Team,

I have tried setting the keytips for radpageviewpage using the property,

radpageviewpage.item.keytip="C"

But while running the application, I don't see any keytips enabled after pressing on Alt key. Only tooltips (letters are underlined) are working to access the pages by holding the Alt key + Letter that has underline.

 

Here I am attaching my sample code, please find attachment.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 13 Jun 2023, 01:00 PM

Hi Suresh,

The KeyTips functionality is only available for the RadRibbonBar control. That is why it is not working for RadPageView. What you can use instead is Key ShortCuts. Applying the RadShortCut object to the Shortcuts collection of the element, you can trigger its Click event. In the event handler, you can set the SelectedPage property of the RadPageView.

this.Configure.Item.Shortcuts.Add(new Telerik.WinControls.RadShortcut(System.Windows.Forms.Keys.Alt,Keys.C));
this.Configure.Item.Click += Item_Click;

private void Item_Click(object sender, System.EventArgs e)
{
    this.radPageView1.SelectedPage = this.Configure;
}

You can check the attached project. Keep in mind that you need to add references to all required Telerik assemblies. When you run the project hold the Alt and click the "C" key. You can observe how the first page is selected. You can use the same approach for the other pages.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Suresh
Top achievements
Rank 1
commented on 15 Jun 2023, 05:05 AM

Hi Dinko,

As already mentioned that for tooltips, we need to underline a letter so that user will know which letter to press along with Alt key. But my aim is not to show tooltips as it looks odd if we have like 10 radpageviewpages in a radpageview. 

The solution you have proposed is fine but user cannot know which letter to press along with Alt key if there is no underline. So, it looks like similar kind of using the "usemnemonics"  for radpageviewpage item. 

Please provide any other approach if you have.

Regards & Thanks,

Suresh

Dinko | Tech Support Engineer
Telerik team
commented on 19 Jun 2023, 12:17 PM

Using "&" ampersand sign is the way to show the underscore under the letter which you want to be used as a shortcut as you have done in your application. When I run the application I see the underscore of each item:

This way the user can see which letter to press to navigate to the desired page by pressing and holding the Alt key and choosing the specific key. So I am not sure that I fully understand why this approach is not working for. You can elaborate more on why this is not working for you or give me an example.

As the KeyTips are available only for the RadRibbonBar, the Key ShortCuts is the way to have a similar navigation logic.

 

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