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

Add New Record RadGrid

1 Answer 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Corina
Top achievements
Rank 1
Corina asked on 31 Oct 2011, 01:28 PM
Hi

I've used the AddNewRecord functionality before and it worked great with a simple 1 GridBoundColumn input appearing. And the Insert/Cancel buttons appearing in the GridEditCommandColumn.

However I'm struggling with using the functionality where the columns are mixed between a GridTemplateColumn and GridBoundColumn. When I click the Add button an input textbox appears under the bound column but not under the template one?

I need it to be the other way around. Does anyone know how to control this? I've tried attaching ColumnEditorID to the template column and not the bound one, but this doesn't make a difference.

Thanks in advance,

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Oct 2011, 01:36 PM
Hello Corina,

In order to show the controls in GridTemplateColumn on clicking AddNewRecord, you should explicitly specify the controls in EditItemTemplate as shown below.
aspx:
<EditItemTemplate>
  <telerik:RadTextBox Width="50%" ID="password"  runat="server"  MaxLength="10"  Text='<%# Bind("LastName") %>'>
  </telerik:RadTextBox>
</EditItemTemplate>

Thanks,
Shinu.
Tags
Grid
Asked by
Corina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or