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

Radgrid delete column prolem

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kavita
Top achievements
Rank 1
Kavita asked on 28 Jun 2013, 02:03 PM
Hi,
I am having one problem.
There is a radgrid on my aspx page along with the other controls.
When I press enter key in any control like textbox, I get a message asking 'Do you want to delete the record?' which is confirm text of my radgrid delete column. Sometimes it shows me filter options of radgrid if allowFilteringByColumn is set to true.
I need some property like useSubmitBehaviour for radgrid.
Can you help me?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 01 Jul 2013, 07:51 AM
Hi,

Unfortunately I couldn't replicate the issue. I guess this happens  because the filter button/delete button of the first RadGrid column turns out to be the first button rendered in the form the grid resides in. That is why it is set as the form's default (submit) button. In order to work around this, you can declare an invisible inactive button and set it to be the default one.

ASPX:
<form id="form1" defaultbutton="Button2" runat="server">
<asp:Button ID="Button2" runat="server" Text="" style="display: none;" OnClientClick="return false;" />

Thanks,
Princy.
Tags
General Discussions
Asked by
Kavita
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or