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

RadTreeListView RowStyle ControlTemplate Issue

4 Answers 359 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 16 May 2011, 10:14 PM
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


4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 17 May 2011, 07:52 AM
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
0
Vikas
Top achievements
Rank 1
answered on 17 May 2011, 03:50 PM
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
0
Vanya Pavlova
Telerik team
answered on 19 May 2011, 10:45 AM
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
0
Vikas
Top achievements
Rank 1
answered on 20 May 2011, 10:30 PM
Vanya,

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

Thanks
Vikas
Tags
TreeListView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Vikas
Top achievements
Rank 1
Share this question
or