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

Add CalendarExtender dynamically

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neelima
Top achievements
Rank 1
Neelima asked on 29 Oct 2010, 09:40 PM
Hi
How do I add CalendarExtender dynamically to a GridBoundColumn in EditMode?

Thank you
Neelima
<telerik:RadGrid ID="RadGrid1" runat="server"
     AllowSorting="True"  ShowGroupPanel="True" 
     AutoGenerateColumns="False"
          Skin="Sunset" AllowPaging="True">
<MasterTableView EditMode="InPlace" DataKeyNames="Trip_ID" GroupLoadMode="Client">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
  
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
      
        <telerik:GridEditCommandColumn ButtonType="ImageButton">
        </telerik:GridEditCommandColumn>
          
            
          
       <telerik:GridBoundColumn HeaderText="Date" UniqueName="BoundDate"  DataField="Start_Dt"></telerik:GridBoundColumn
  
   </Columns>
  
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
        <GroupingSettings ShowUnGroupButton="True"  />
        <ClientSettings AllowDragToGroup="True" allowcolumnsreorder="True" 
            columnsreordermethod="Reorder" reordercolumnsonclient="True"  AllowGroupExpandCollapse="True" >
             <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                       </ClientSettings>
          
  
    </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 03 Nov 2010, 04:24 PM
Hello Neelima,

You should use the ItemCreated event in order to dynamically add controls into the RadGrid EditForm.
Refer to the following help topic:
http://www.telerik.com/help/aspnet-ajax/grddistinguisheditinsertmodeonitemcreateditemdatabound.html

Regards,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Neelima
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or