Clickable PageView Header

2 posts, 0 answers
  1. Dominik
    Dominik avatar
    59 posts
    Member since:
    Dec 2012

    Posted 29 Aug 2013 Link to this post

    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.



  2. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 02 Sep 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top