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

[Solved] RadGrid: How do yiou set the defaultbutton for the auto insert template?

3 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mary
Top achievements
Rank 1
mary asked on 04 Jun 2008, 08:26 AM
Is there a way to set the default button for the page to be the insert button when focus is in the insert panel so that when enter/return is selected the postback on the insert button occurs automatically?  Like the DefaultButton property for an asp panel control

Thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2008, 10:29 AM
Hi,

Try setting the CommandItemDisplay property in the aspx.

ASPX:
<MasterTableView CommandItemDisplay="top"  DataSourceID="SqlDataSource1" > 

Command item

Thanks
Shinu.
0
mary
Top achievements
Rank 1
answered on 04 Jun 2008, 10:56 AM
That just displays the command item at the top.
When the user has selected Add New Record and entered details on the template i want the default button to be the Insert button so that when they hit enter the postback on the insert button auto fires
0
Princy
Top achievements
Rank 2
answered on 04 Jun 2008, 11:36 AM
Hi,

Go through the following help article.
How to fire command events from code

Princy.
Tags
Grid
Asked by
mary
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
mary
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or