Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > Style Problem on top left of RadGridView. I'm using styles and templates, cant locate the bugger

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

Feed from this thread
  • Stephen Pascoe avatar

    Posted on Jul 27, 2010 (permalink)

    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.
    Attached files

    Reply

  • Yavor Georgiev Yavor Georgiev avatar

    Posted on Jul 27, 2010 (permalink)

    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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.
  • Posted on Jul 27, 2010 (permalink)

    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!

    Reply

  • Stephen Pascoe avatar

    Posted on Jul 27, 2010 (permalink)

    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.

    Reply

  • Yavor Georgiev Yavor Georgiev avatar

    Posted on Jul 28, 2010 (permalink)

    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

    Reply

  • Stephen Pascoe avatar

    Posted on Aug 1, 2010 (permalink)

    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?"

    Reply

  • Stephen Pascoe avatar

    Posted on Aug 2, 2010 (permalink)

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

    Reply

  • Stephen Pascoe avatar

    Posted on Aug 4, 2010 (permalink)

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

    Reply

  • Posted on Aug 4, 2010 (permalink)

    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

    Reply

  • Answer Kalin Milanov Kalin Milanov admin's avatar

    Posted on Aug 4, 2010 (permalink)

    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

    Reply

  • Posted on Aug 4, 2010 (permalink)

    Thanks for the reply...

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

    Reply

  • Stephen Pascoe avatar

    Posted on Aug 4, 2010 (permalink)

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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > GridView > Style Problem on top left of RadGridView. I'm using styles and templates, cant locate the bugger
Related resources for "Style Problem on top left of RadGridView. I'm using styles and templates, cant locate the bugger"

Silverlight Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]