PageView multiple icons/indicators in tab

3 posts, 0 answers
  1. Adam P
    Adam P avatar
    27 posts
    Member since:
    Jan 2014

    Posted 16 Aug 2014 Link to this post

    I have a RadPageView control in ViewMode = Strip (so it appears like a TabControl)

    I would like to somehow have multiple Images for the RadPageViewPage - one that represents the actual document icon, and another that is only shown when there are unsaved changes. 

    Just as an example, take a look at the following screenshot of Visual Studio:

    Is this possible?  Any ideas how I can accomplish that? 

    I don't have any problem getting one Image to show up (using the RadPageViewPage.Image property) but how would I go about getting the second one to appear?

    Thank you!
  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4173 posts

    Posted 20 Aug 2014 Link to this post

    Hello Adam,

    Thank you for writing.

    It is possible to assign an image to the RadPageViewPage, which is displayed before the tab title by default. In addition, you can show the close button for each page and use it as a second image. However, in order to avoid closing the tab, you can stop the mouse handling. When the image is not necessary to be displayed, you can set the RadPageViewStripItem.ButtonsPanel.CloseButton.Image property to null:
    //show close buttons for each tab
    this.radPageView1.ViewElement.ShowItemCloseButton = true;
    RadPageViewStripElement stripView = this.radPageView1.ViewElement as RadPageViewStripElement;
    if (stripView != null)
        RadPageViewStripItem item = stripView.Items.First() as RadPageViewStripItem;
        item.Image = Properties.Resources.telerik_icon;
        item.ButtonsPanel.CloseButton.Image = Properties.Resources.transparent;
        //avoid closing the tab when clicking the button
        item.ButtonsPanel.CloseButton.ShouldHandleMouseInput = false;               

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

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Adam P
    Adam P avatar
    27 posts
    Member since:
    Jan 2014

    Posted 09 Sep 2014 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Thank you, I'm going to get this implemented tomorrow!
Back to Top