Hi Morten,
The easiest way is to use the same HTML code (or similar one) as the one that is used internally by RadGrid. Please inspect the command item HTML output and take what you need from there. The internal HTML output of the command item is wrapped by a table cell with a
rgCommandCell CSS class. All the HTML code that you have to review is wrapped inside a <table> :
<table border="0" style="width: 100%;" class="
rgCommandTable">
......
</table>
By default, the command row uses the so called sprite buttons:
http://www.telerik.com/help/aspnet-ajax/css-sprites.html
Here is how to mimic such a button inside the RadGrid CommandItemTemplate:
<asp:Button CssClass="rgAdd" Text=" " />
The CSS class and the single-spaced Text property matter the most.
Kind regards,
Dimo
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