RadTreeListView RowStyle ControlTemplate Issue

5 posts, 0 answers
  1. Vikas
    Vikas avatar
    3 posts
    Member since:
    Mar 2011

    Posted 16 May 2011 Link to this post

    Hi,

    I am using a RadTreeListView and would like to change template of the row. I have two requirements.
    1) Change expander to plusminus
    2) Change control template of the rows

    I am able to do item 1, by changing presentation mode in HierarchyExpandButtonStyle. It works fine until I try to create a control template for TreeListViewRow. I dont have to change anything to completely mess up the expander button. Even before making any changing to the control template of the rows, as soon as I scroll up and down, each row has a minus sign regardless of whether it is a parent item or not.

    Again, to reproduce, please follow these steps.
    1) Add the following styles to RadTreeListView.....a) HierarchyExpandButtonStyle  b) HeaderRowStyle   and c) RowStyle
    2) You dont have to change anything in any of the styles except the Hierarchy one. Just edit current control template of the RowStyle.
    3) Scroll up and down a couple time and you should see the expander button all over the place.

    I want to edit the row template to do the following. If there is another quick way to do these please let me know
    1) Hide PART_IndicatorPresenter
    2) Hide PART_IndentPresenter
    3) Prevent user from selecting a cell and hence not showing a black border around it. Selection of the whole row is permitted.

    Please help!
    Thank you for your time.
    Vikas

    
    
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 17 May 2011 Link to this post

    Hi Vikas,

     
    Straight to the questions:


    1.May you please take a look at the following forum thread and let me know how this works for you.
    2.You may hide the indicators in RadTreeListView through setting RowIndicatorVisibility property to Collapsed. In order to answer to the rest of your questions I recommend you to review the following online help articles: 

                                               "Styling the Indent Cells in RadGridView"
                                             "Override the Default RadGridView Styles"


    If you need any further assistance do not hesitate to contact us!


    Kind regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vikas
    Vikas avatar
    3 posts
    Member since:
    Mar 2011

    Posted 17 May 2011 Link to this post

    Hi Vanya,

    Thanks for your prompt response.
    I was able to remove RowIndicator by using RowIndicatorVisibility.  But now I have a unknown container/Border on the leftmost column. When I put my cursor on it, the arrow changes like it is a splitter, but i can't move it.


    I would also like to know if there is a way to remove the border around a cell when it is selected (without templating the row). I dont want users to select a cell, but only the whole row. Please see the 3 sides border below





    For other issues I tried to see if the solution you provided to me helps. I could reproduce the same problem that I described in my question, in your solution, without changing anything.  Here are the steps to reproduce.
    1) Run the solution
    2) Make your window really small so that vertical scrollbar appears
    3) Now expand all the nodes and click randomly on more than one child nodes
    4) Then scroll up and down multiple times.
    5) you should see an arrow appear next to one of the child items which do not have any childern.

    For me it appeared at "Cherry" once and "Carrot" another time.


    Thanks
    Vikas
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 19 May 2011 Link to this post

    Hi Vikas,

     

    The Border form the first attachment is actually the FrozenColumnSplitter of RadGridView. You may remove it by setting CanUserFreezeColumns property to False. Keep in mind that in this way you will loose the ability to freeze columns in RadGridView. The border from a GridViewCell appears when you click the cell. In this state the Border element named Background_Current appeared and you may remove it as was described in the previously referenced article "Override the Default RadGridView Styles". Regarding the rest of the inquiries you have I recommend you to submit a new support ticket where you can attach small repro application which we can use for local testing. 



    Kind regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Vikas
    Vikas avatar
    3 posts
    Member since:
    Mar 2011

    Posted 20 May 2011 Link to this post

    Vanya,

    Both of my issues are resolved.
    Thanks a lot for your help!

    Thanks
    Vikas
Back to Top
UI for WPF is Visual Studio 2017 Ready