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

Insert / Edit Item Templates

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 19 Apr 2011, 07:42 PM
In my RadGrid I have a template column in which I want a text box for the Edit Item Template, and a drop down list for the Insert Item template.  I know this seems a bit odd - but I'm just wondering if it's possible?  I've spent too much time trying to get it to work.  No matter what I do, the Edit Item template overrides the Insert Item Template.

<telerik:GridTemplateColumn
                  DataField="DocDesc"
                  FilterControlAltText="Filter column column" HeaderText="Document Name"
                  UniqueName="DocList">
                    <EditItemTemplate>
                    <asp:TextBox ID="DocDescTextBox" enabled = "false" runat="server" Text='<%# Bind("DocDesc") %>'></asp:TextBox>                      
                         
                     </EditItemTemplate>
                       
                       
                    <ItemTemplate>
                 <asp:Label ID="DocDescLabel" runat="server" Text='<%# Eval("DocDesc") %>'></asp:Label>
      
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadComboBox ID="RadDocList" Enabled="true" runat="server"
                                  DataSourceID="sqlGetDocList"
                                  DataTextField="DocDesc"
                                  DataValueField="DocNum">
                        </telerik:RadComboBox>
                    </InsertItemTemplate>
             
              </telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 21 Apr 2011, 12:38 PM
Hi Samantha,

I noticed that you have opened a duplicate post on the same matter. Please, refer to the other support ticket post for additional information. To avoid duplicate posts, I suggest you continue the communication there. Also I am sending you a simple example, based on your code, however everything works as expected please check it out and let me know what differs in your case.

All the best,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Samantha
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or