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

Grouping: customizing the look

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tomasz M.Lipiński
Top achievements
Rank 1
Tomasz M.Lipiński asked on 28 Nov 2011, 12:15 PM
Hi,

The look of grouping (in the data area of a grid) consists of three elements:
  • the group header
  • the cell to the left of the group header, containing icons for expanding / collapsing; let's name it "the control cell"
  • cells the the left of data rows; let's name them "filling cells"

I'm using the Simple skin and Q1 2010 version of the controls.
All these elements have initially the same, darkgray background. The control cell (and its column) is quite wide. I would like to change two aspects of their look:

  • the back color of all of them
  • the width of the control cell and the filling cells

I tried to use GroupHeaderItemStyle. Changing its BackColor changed the back color of the header and the filling cells - but the control cell remained untouched. Changing its Width changed nothing.
I tried to modify Grid.Simple.css file. I've succeeded in changing the back color of all the required elements. But I cannot make the column with the control and filling cells narrower. The MasterTableView is rendered with the "colgroup" element wich contains 20px width of this column. This is the key - is it possible to me to change this value?

Regards
Tomasz

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 01 Dec 2011, 10:55 AM
Hello Tomasz,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.

I hope it helps.

Greetings,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Tomasz M.Lipiński
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or