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

Expander column style

8 Answers 216 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Russ
Top achievements
Rank 1
Russ asked on 26 Jul 2010, 07:32 PM
I've started using the new TreeListView (thanks for this, btw).  I'm trying to figure out how to apply a style to the expander column / cells (is that the correct name?) that has been created.  Is there a sample of this somewhere?  Or a quick piece of code I could use?  I just want to set the background color slightly differently on these cells.

Thanks,
Russell.

8 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 27 Jul 2010, 07:52 AM
Hello Russ,

It is great to hear that you like our new control-RadTreeLisView.
I would like to recommend you to edit the template of the RadTreeListViewRow-it is simple-drag a TreeListViewRow from Assets-Library in MS Blend-right click on it "Edit Template" -> "Edit a Copy" and from there you can modify whatever you want.Please read carefully the template of the TreeListViewRow give it a try to make desired changes. If you have any difficulties do not hesitate to contact us for any further assistance.

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
Russ
Top achievements
Rank 1
answered on 03 Aug 2010, 07:33 PM
Well, I finally loaded Blend on my machine, and am trying to edit a copy of the template,

I started of by having issues simlar to the ones in this thread (designer exception) with my actual project, so built a test project from scratch.  Now, besides finding myself very unskilled at Blend, I'm having trouble identifyng what each of the parts of the template are related to. 

Is there a definition of these templates somewhere?  I still can't seem to identify the "Expand" column I was referring to.  Is there a specific piece of the template related to that?

Thanks,
Russ.
0
Vanya Pavlova
Telerik team
answered on 04 Aug 2010, 09:35 AM
Hi Russ,

 I have prepared a sample for you that demonstrates how to restyle the whole TreeListViewRow.
Please let me know if you need any additional information.

All the best,
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
Russ
Top achievements
Rank 1
answered on 03 Sep 2010, 09:11 PM
I took a while to respond, but I had to give up on this tack, my blend skills are just too weak, I'm a programmer not a designer. I ended up just applying a style to the entire row via the RowStyleSelector.  Thanks for trying to coach me through it anyways.

Russ.
0
Cheau-Long
Top achievements
Rank 1
answered on 24 Jan 2011, 07:03 PM
I found this discussion thread and have a similar question. How can I change the expander style of TreeViewList, so it can be "+", "-" instead of arrows? Thanks!
0
Vanya Pavlova
Telerik team
answered on 25 Jan 2011, 05:41 PM
Hi Russ,

 
A possible approach is to edit the template of TreeListViewRow and set the PresentationMode property of GridViewToggleButton to PlusMinus. We have had some issues related to HierarchyExpandButtonStyle in RadTreeListView and with our latest internal build you will be able to change this PresentationMode property with a simple style.

Please find attached a sample project that demonstrates the reproach above.
  

All the best,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Alan
Top achievements
Rank 1
answered on 14 Apr 2011, 11:11 PM
In this last post you stated that with the latest internal build you could change the PresentationMode property with a simple style. Since that was a couple of months ago, is the current latest version updated to be able to do this with a simple style? If so where would I go about applying it?

I am assuming simple style means something like this

<

 

 

Style x:Key="PlusMinusButtonStyle" TargetType="telerik:GridViewToggleButton">

 

 

 

 

    <Setter Property="PresentationMode" Value="PlusMinus" />

 

 

 

 

</Style>

 


Thanks
0
Alan
Top achievements
Rank 1
answered on 15 Apr 2011, 01:48 AM
I found it in the SIlverlight Forums. Works Great Thanks

HierarchyExpandButtonStyle

 

 

="{StaticResource PlusMinusButtonStyle}"

 

Tags
TreeListView
Asked by
Russ
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Russ
Top achievements
Rank 1
Cheau-Long
Top achievements
Rank 1
Alan
Top achievements
Rank 1
Share this question
or