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

Issues relative to rad outlook style grid.

1 Answer 50 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Thunaivan asked on 22 Feb 2009, 05:00 AM
Hi telerik team,

I have a telerik RadGrid with Outlook style. in which i have few issues.

1)Is there possibity to place a link or button on top of header row like (customized controls)Add ,edit,refresh,e.t.c
which can be approach using commanditemtemplate.
Here due to <GroupByExpressions> i m unable to insert customized controls which i approached using commanditemtemplate .
in common grid and hierarchical grid.
(Refer the second image to understand ,In image right side to status dropdown i want to keep one more button  )

2)can u look the below links.i want outlook grid look in that format.
the main problem for me is grouping. when i expand status it should show header and
rows,  again if i expand particular row means relative to that detailed table should get display(including with header).

but i was getting output in the below image format.

3)if i select particular row in outlook grid. it is selecting checkbox in particular row and header column
checkbox meanwhile . how to arrest header column checkbox not get checked if i select particular row.

Thanks for any help.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 25 Feb 2009, 11:16 AM
Hi Thunaivan,

To achieve the desired functionality I suggest that you use a GridTemplateColumn which displays each cell in the column in accordance with a specified template. This lets you provide custom controls in the column. You can view and set the templates for this column type using the Edit Templates command on the RadGrid.
More information about GridTemplateColumn is available in the following links.
Column types
Customizing with GridTemplateColumn

About your second question:

To represents Outlook-style grouping implemented with Telerik RadGrid you have to:

        Use the set of properties, which control group-by behavior and appearance (like RadGrid.ShowGroupHeader)

        Control the style of GroupHeaderItem, which visually divides the rows by groups 
        Set the style of GroupPanel and its Items, which display the currently grouped fields and can change the sorting-order of the grouped columns

Note that grouping is not supported with simple data-binding (calling DataBind()).
For more information please refer to the following live demo.

About your last question:

To accomplish this task you have to modified the grid group header item - the checkbox is added inside the ItemCreated and ItemDataBound event handlers. The duplicate call to CreateHeaderControls() method is because the controls in the group headers should be recreated when the grid is databound as well as on any other postback.
Alternatively, a checkbox column toggling a server-side item selection might be added. An example of such column may be found here.

Additional information is available in the following article.
Selecting all items in a group with a checkbox in the group header item

I hope this helps.

Kind regards,


 the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question