Style Problem on top left of RadGridView. I'm using styles and templates, cant locate the bugger

12 posts, 1 answers
  1. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 27 Jul 2010 Link to this post

    I quite literally would rather endure pulling teeth than waste another hour on this crap. (already spent 8 hours. almost half my coding time so far on this project!!)
    Here's the deal...

    I have been trying everything to style the attached SL4 radgridview to be a simple two tone brown colour grid.
    I've tried dragging dummy controls on the screen, adding them as templates / styles etc.. as per telerik documentation...i have hundreds of ControlBackground's and other style attributes now in my app.xaml and so far all i've been able to achieve is what is in the screen.

    What am i missing to kill the grey strip on the left and the black gradient on the top left to the left of the Season column (these are both visible because i am grouping on the Season column).


    I just cant believe it is this difficult to style a datagrid. I've been using silverlight since 1.0 and this is just ridiculous guys!

    Now that i've given you heaps prove me wrong and show me how easy it is to fix this. Please.

  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts
    Member since:
    Sep 2012

    Posted 27 Jul 2010 Link to this post

    Hello Stephen Pascoe,

     The grey strip you wish to remove is a GridViewIndentCell object. You need to create a global implicit style that sets its background and border brush. The black gradient to the left of the Season column is a GridViewHeaderIndentCell object, which you also need to style. And just in case you wish to restyle the cell with the grouped column's name in the 'Grouped by' panel, that object is a GridViewGroupPanelCell, which, of course, also needs a style.

     I'm sorry it has been so inconvenient for you to restyle our RadGridView control. Please don't hesitate to contact us anytime you need assistance.

    Regards,
    Yavor Georgiev
    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. Download a free trial of UI for WPF
  4. iWebs
    iWebs avatar
    3 posts
    Member since:
    Nov 2007

    Posted 27 Jul 2010 Link to this post

    Kind of annoying that there are hundreds of styles needed to just put some color on a grid.

    How about a sample project that uses most of the styles to assist with this beast. What Steve is doing is really not that advanced, yet there are gazillions of individual styles referenced to get a simple 2 color grid.

    Something is needed anyway!

  5. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 27 Jul 2010 Link to this post

    So i have dragged on to the art board GridViewIndentCell  and GridViewHeaderIndentCell objects.
    I then clicked from the top menu Object, then Edit Style -> create a copy.

    I then added it to the Application (app.xaml) where all the other styles are.

    I then remove the two controls from the artboard as i dont need them anymore (because i've created my styles).



    Now, how or where do i go to reference these styles in my actual gridview control?

    ...yes a sample project or 5 would be helpful.

  6. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts
    Member since:
    Sep 2012

    Posted 28 Jul 2010 Link to this post

    Hi Stephen Pascoe,

     By the end of the week we'll post a post on our company blog with a sample project restyling the whole RadGridView control.

    Regards,
    Yavor Georgiev
    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

  7. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 01 Aug 2010 Link to this post

    Havent seen any blog posts yet. Could you please have a go at answering my issue?

    "i have dragged on to the art board GridViewIndentCell  and GridViewHeaderIndentCell objects. Then clicked from the top menu Object, then Edit Style -> create a copy.
    Then added it to the Application (app.xaml) where all the other styles are.
    Then removed the two controls from the artboard as i dont need them anymore (because i've created my styles).

    Now, how or where do i go to reference these styles in my actual gridview control?"

  8. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 02 Aug 2010 Link to this post

    Hey there, just hoping to get a response back soon. Got this app due next week.

  9. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 04 Aug 2010 Link to this post

    Really starting to need this info now. Please get back to me.

  10. iWebs
    iWebs avatar
    3 posts
    Member since:
    Nov 2007

    Posted 04 Aug 2010 Link to this post

    You said " By the end of the week we'll post a post on our company blog with a sample project restyling the whole RadGridView control."

    I cannot find this blog. Can you please advise where it is?

    Regards: http://www.interactivewebs.com - DotNetNuke Modules

  11. Answer
    Kalin Milanov
    Admin
    Kalin Milanov avatar
    447 posts
    Member since:
    Sep 2012

    Posted 04 Aug 2010 Link to this post

    Hi iWebs,

    There are four elements responsible for indentation of the grid. 

    - Header Indent (the green one)
    - Indent (red one)
    - FooterIndent (yellow one)
    - GroupFooterIndent (blue one)

    The styles and templates for those are defined in the App.xaml and are applied as implicit styles as you initially tried to do. 

    I hope you will find the sample useful.

    Sincerely yours,
    Kalin Milanov
    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

  12. iWebs
    iWebs avatar
    3 posts
    Member since:
    Nov 2007

    Posted 04 Aug 2010 Link to this post

    Thanks for the reply...

    Regards: http://www.interactivewebs.com  - DotNetNuke Modules

  13. Stephen Pascoe
    Stephen Pascoe avatar
    10 posts
    Member since:
    Jul 2009

    Posted 04 Aug 2010 Link to this post

    Thank you for getting back to us. That project has been a big help and i'm all set now. Thanks again

Back to Top
Download a free trial of UI for WPF