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

Replace "Insert" button with a custom button

5 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 30 Aug 2010, 10:48 AM
Hi,

Is it possible to link a custom button on a user control to a grid's "Insert" button?

I'm basically trying to replace the build-in "Insert" button with my own custom button.

Thanks.

R

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 Aug 2010, 11:08 AM
Hi Ryno,

Please refer to the online resources below for more information about how to achieve your goal:
http://www.telerik.com/help/aspnet-ajax/grdcommanditemtemplate.html
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx

Kind 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
0
Johan
Top achievements
Rank 1
answered on 30 Aug 2010, 12:11 PM
Thanks for the quick reply.

The solution you have posted in not exactly what I'm trying to achieve though.

In fact, my custom button will be on another user control and not in the header section of the Grid.
0
Johan
Top achievements
Rank 1
answered on 30 Aug 2010, 01:43 PM
Thanks for the quick reply.

The solution you have posted in not exactly what I'm trying to achieve though.

In fact, my custom button will be on another user control and not in the header section of the Grid.
0
Johan
Top achievements
Rank 1
answered on 30 Aug 2010, 02:02 PM
Thanks for the quick reply.

The solution you have posted in not exactly what I'm trying to achieve though.

In fact, my custom button will be on another user control and not in the header section of the Grid.
0
Pavlina
Telerik team
answered on 01 Sep 2010, 11:09 AM
Hi Ryno,

You can achieve your goal, by getting reference to UserControl and then the embedded custom button by using FindControl() method.

I also suggest that you review the help article below:
Custom edit forms

Kind 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
Johan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Johan
Top achievements
Rank 1
Share this question
or