Expander column style

9 posts, 0 answers
  1. Russ
    Russ avatar
    25 posts
    Member since:
    Oct 2008

    Posted 26 Jul 2010 Link to this post

    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.
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 27 Jul 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Russ
    Russ avatar
    25 posts
    Member since:
    Oct 2008

    Posted 03 Aug 2010 Link to this post

    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.
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 04 Aug 2010 Link to this post

    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
  6. Russ
    Russ avatar
    25 posts
    Member since:
    Oct 2008

    Posted 03 Sep 2010 Link to this post

    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.
  7. Cheau-Long
    Cheau-Long avatar
    27 posts
    Member since:
    Jan 2011

    Posted 24 Jan 2011 Link to this post

    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!
  8. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Jan 2011 Link to this post

    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>>
  9. Alan
    Alan avatar
    2 posts
    Member since:
    Apr 2011

    Posted 14 Apr 2011 Link to this post

    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
  10. Alan
    Alan avatar
    2 posts
    Member since:
    Apr 2011

    Posted 14 Apr 2011 Link to this post

    I found it in the SIlverlight Forums. Works Great Thanks

    HierarchyExpandButtonStyle

     

     

    ="{StaticResource PlusMinusButtonStyle}"

     

Back to Top
UI for WPF is Visual Studio 2017 Ready