Insert / Edit Item Templates

2 posts, 0 answers
  1. Samantha
    Samantha avatar
    21 posts
    Member since:
    Apr 2009

    Posted 19 Apr 2011 Link to this post

    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>
  2. Radoslav
    Admin
    Radoslav avatar
    1564 posts

    Posted 21 Apr 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top