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

Cancel Enter Key when in Edit Mode in RadGrid

0 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sravanthi
Top achievements
Rank 1
Sravanthi asked on 25 May 2012, 10:30 PM
I have a TemplateColumn inside a Radgrid as follows. I populate the grid using NeedDataSource.
 
               <telerik:GridTemplateColumn UniqueName="name1" SortExpression="Id" HeaderText="Product#" DataField="Number" >
                        <ItemTemplate>
                                <asp:Literal runat="server" ID="ltId" Text='<%# Eval("Product.Id") %>'></asp:Literal>
                        </ItemTemplate>
                        <EditItemTemplate>                        
                            <telerik:RadTextBox runat="server" ID="txtProductNumber" Text='<%# Eval("Product.Id") %>'
                                Width="120px" OnTextChanged="ProductNumber_TextChanged" AutoPostBack="true" >
                            </telerik:RadTextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

When  I enter text in the textbox and hit enter,  it is calling the default button on the page. How can I make it call the  "OnTextChanged" event for the textxbox Instead?

Thanks for the Help in advance!!
Sri

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Sravanthi
Top achievements
Rank 1
Share this question
or