Fill Dropdown inside grid edit and insert with data-table from c#

1 posts, 0 answers
  1. Kareem
    Kareem avatar
    4 posts
    Member since:
    Aug 2014

    Posted 15 Dec 2017 Link to this post

    Hi All, 

     

    i have a grid view and i want to have 2 question first how can i fill the drop down with data table from the c# 2nd how can i do it cascading from the c# too i will make it onselected item change but can i find the secound dropdown menu to auto fill with the new dropdown list 

     

     

    ps <br> is not there its just added by code format :)

     

       <telerik:RadGrid ID="staffmanagement" runat="server" OnNeedDataSource="staffmanagement_NeedDataSource" Skin="Bootstrap" AutoGenerateColumns="false" OnInsertCommand="staffmanagement_InsertCommand" OnUpdateCommand="staffmanagement_UpdateCommand" OnDeleteCommand="staffmanagement_DeleteCommand" AllowPaging="True" ><br>                <MasterTableView CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemSettings-ShowRefreshButton="false" DataKeyNames="ID"><br>               <Columns><br><br>                    <telerik:GridTemplateColumn HeaderText="Department" UniqueName="DepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="Department" runat="server" Text='<%# Eval("strorg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn><br></p><p>      <telerik:GridTemplateColumn HeaderText="supDepartment" UniqueName="supDepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="supDepartment" runat="server" Text='<%# Eval("strsuporg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn></p><p></p><p></p><p>                        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" UniqueName="edit" /><br>                        <telerik:GridButtonColumn ConfirmText="Delete this Staff" ConfirmDialogType="RadWindow" ConfirmTitle="Delete"  ButtonType="FontIconButton" CommandName="Delete" ColumnGroupName="APlate" HeaderStyle-HorizontalAlign="Center" UniqueName="delete" /><br><br><br><br><br>               </Columns><br>                    </MasterTableView><br><br>            </telerik:RadGrid>
Back to Top