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

Clickable PageView Header

1 Answer 180 Views
PageView
This is a migrated thread and some comments may be shown as answers.
konrad
Top achievements
Rank 1
konrad asked on 29 Aug 2013, 07:26 AM
Hi,

I am using RadPageView control configured like in pageview.png.
I would like to add some functionality to Header element like:
1. On mouse over cursor should change to hand.
2. You should be able to click and do some action.
3. When moving between pages text should not be changed.

In summary, the header would turn into a button.

I was able only to change the text by:
((Telerik.WinControls.UI.RadPageViewLabelElement)(this.radPageView1.GetChildAt(0).GetChildAt(1))).Text = "Test";

But events such as MouseOver, MouseLeave, etc. do not work.



1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Sep 2013, 01:28 PM
Hello Dominik,

Thank you for contacting Telerik Support.

By design RadPageView does not support mouse event handling for its Header. This behaviour is intentionally. Currently, there is no possible workaround I can propose. If we have other similar requests, this will be considered as a feature request and will be addressed in future.

As to the last question about header text changing when selecting a new page, it can be prevented by subscribing to tje RadPageView.SelectedPageChanged event and setting theRadPageView.ViewElement.Header.Text with the initial value.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PageView
Asked by
konrad
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or