How to style columnheader of gridview

6 posts, 0 answers
  1. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 24 Aug 2012 Link to this post

    Hi,

    i have created style for RadGrid , but when i try to group by, at the column header i am seeing black background at column header.
    Please check this link for screenshot.
    http://s13.postimage.org/6xo35qyc7/groupby.png

    ""i tried to attach a screenshot but i didn't find the attachment option here""

    Thanks in advance,
    Srinivas.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 24 Aug 2012 Link to this post

    Hi,

    I guess you are addressing the GridViewHeaderIndentCell element. Here is a help article for styling the indent cells of RadGridView. Please, refer to it and let us know whether you need any additional help on this.

    All the best,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 24 Aug 2012 Link to this post

    Hi Ivan Ivanov,

    Thanks for reply, my problem is solved.  i have need one more help related to RadGridview cell.

    please check the attached image.
    http://s13.postimage.org/6xo35qyc7/groupby.png

    Can you please tell me how can i create style for this part.

    Thanks again.
    Srinivas.
  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 24 Aug 2012 Link to this post

    Hello,

    I cannot find an image attached and the link leads to the same image, as in the previous post. Maybe you have missed to modify it?

    All the best,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 24 Aug 2012 Link to this post

    Hi Ivan Ivanov 

    Sorry it's my fault. please check this Link.

    http://s13.postimage.org/e1a79youv/Cell.png

    Thanks Again,
    Srinivas.
  6. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1217 posts

    Posted 24 Aug 2012 Link to this post

    Hello,

    You want to style Column's edit element, am I right? You can use the EditorStyle property like this:

    <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}"
                                                Header="Stadium"
                                                DataFormatString="{}{0:N0}">
                        <telerik:GridViewDataColumn.EditorStyle>
                            <Style TargetType="TextBox">
                                <Setter Property="Background" Value="Red" />
                            </Style>
                        </telerik:GridViewDataColumn.EditorStyle>
                    </telerik:GridViewDataColumn>


    All the best,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top