RadPanorama ScrollBar BUG REPORT !!!

3 posts, 0 answers
  1. Sherlock
    Sherlock avatar
    17 posts
    Member since:
    Oct 2013

    Posted 12 Nov 2013 Link to this post

    I add a RadPanorama on my form.
    Then I open the "Element hierarchy editor"
    If you pay attention to the left column, you can see two FillPrimitive under RadScrollBarElement.

    The bug is because we have two same name here, there is no access to the second FillPrimitive items from code.

    For example to changing the Backcolor and BackColor1 and BackColor2 and BackColor3 of ScrollBar, you can change it from hierarchy, but it is not possible to change it via code.

    I attached a screenshot of what I explained example.

    Also on RadTitleBar, we have same bug.
    I mean there is no access to text via code.
    For example it is not possible to access text visibility on title bar via code.


  2. Dess
    Dess avatar
    2174 posts

    Posted 15 Nov 2013 Link to this post

    Hello Sherlock,

    Thank you for contacting Telerik Support.

    The FillPrimitive sets the overall background properties that are inherited by the other elements. You can find the entire structure in our Control Element Structure help article. FillPrimitives are designed to be used for pressed state of the scroll bar color and for the normal state. The Zindex of the second FillPrimitive is greater than the first one, that is why it is displayed at run time. You can access it via code using the following example:
    FillPrimitive fill = radPanorama1.PanoramaElement.ScrollBar.Children[1] as FillPrimitive;
    if (fill!=null)
        fill.BackColor = Color.Purple;

    As to the question about RadTitleBar, you are allowed to modify the text or its visibility as follows:
    radTitleBar1.Text = "Sample text";
    radTitleBar1.TitleBarElement.TitlePrimitive.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

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

    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. Sherlock
    Sherlock avatar
    17 posts
    Member since:
    Oct 2013

    Posted 16 Nov 2013 Link to this post

    Hello and thanks for your help.

    I thought it should be much easier :)

    Anyway thanks for help and my problem solved with your kindly help :)
Back to Top