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

Convert/Expand Default Command Bar to CommandItemTemplate

3 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon Kennerly
Top achievements
Rank 1
Jon Kennerly asked on 13 Jul 2010, 09:20 PM
The default command template on the RadGrid works well for me with the Sunset skin. However, I do need to add to it. I'm looking for code that gets me the default Sunset skinned Command Bar as a CommandItemTemplate. Below is my grid with the command settings I need. Attached is a screen shot.

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
    Width="100%" Skin="Sunset"
    AutoGenerateColumns="false" AllowPaging="true" AllowSorting="True"
    MasterTableView-ShowHeadersWhenNoRecords="true"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="true"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    ShowStatusBar="true" ShowFooter="true"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
...
</telerik:RadGrid>

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 Jul 2010, 02:06 PM
Hi Jon,

In order to show the command item, you should set CommandItemDisplay property of GridTableView. Please refer to the following help article and let me know if other questions or problems arise:
http://www.telerik.com/help/aspnet-ajax/grdcommanditemtemplate.html

All the best,
Pavlina
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
0
Jon Kennerly
Top achievements
Rank 1
answered on 21 Jul 2010, 07:49 PM
This doesn't specifically answer my question. I'm looking for the markup that will produce the same look and feel of the default command bar as per the 'Sunset' skin, including icons and background gradient. That styling works for me, but I need to add some additional textual elements as well.

See the attached image in the original post please.

Thank again.
0
Accepted
Pavlina
Telerik team
answered on 23 Jul 2010, 12:34 PM
Hi Jon,

Please refer to this help article for more information on how to modify an existing RadGrid skin. You may also consider utilizing the Visual Style Builder for ASP.NET tool to modify existing skins.

Regards,
Pavlina
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
Tags
Grid
Asked by
Jon Kennerly
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jon Kennerly
Top achievements
Rank 1
Share this question
or