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

Can add button image be used for other controls?

2 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 16 Aug 2010, 04:10 PM
Hi

I would like to know if the add button that appears in the radgrid can be used in other parts of a web page? For instance when you edit a row in the radGrid or Add a new record, I would like to be able to have an add button next to some of the drop downs that may appear in the details section of the radGrid. I would like to use the add button of the current skin

Thanks
drizzo

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Aug 2010, 02:34 PM
Hi drizzo,

Here is how to do it. Basically, you need to (partially) reuse the RadGrid HTML tags:

<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<telerik:RadGrid ID="RadGrid1" runat="server" />
 
<p>This is a RadGrid Add button:</p>
 
<span class="RadGrid RadGrid_Default" style="border:0">
    <input type="button" value=" " class="rgAdd" />
</span>
 
</form>
</body>
</html>


Best wishes,
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
0
Dan
Top achievements
Rank 1
answered on 18 Aug 2010, 08:55 PM
Thanks a bunch. I will give it a try

Dan
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Dan
Top achievements
Rank 1
Share this question
or