Click here to Skip to main content
15,922,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir,
I am working on gridview Edit operation. I am selecting Edit operation from a Drop Down list inside the gird view.

In this dropdown have many option. I want to perform selected option.

XML
<telerik:RadGrid ID="grdBankAccounts" CssClass="table" runat="server"
                        AllowPaging="True" Width="100%"   AutoGenerateColumns="False"
                        BorderStyle="Solid" BorderWidth="2px" AllowSorting="True"
                        GridLines="None"  >

        <PagerStyle Mode="NumericPages" />
        <MasterTableView TableLayout= "Auto">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <Columns>

                <telerik:GridBoundColumn DataField="AccountID" HeaderText="Account ID"
                     HeaderStyle-CssClass="grid_header" ItemStyle-CssClass="grid_item" DataType="System.Int32" Visible="False" >
                    <HeaderStyle CssClass="grid_header"></HeaderStyle>
                    <ItemStyle CssClass="grid_item"></ItemStyle>
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField=" AccountName" HeaderText="Bank Name"
                     HeaderStyle-CssClass="grid_header" ItemStyle-CssClass="grid_item">
                    <HeaderStyle CssClass="grid_header"></HeaderStyle>
                    <ItemStyle CssClass="grid_item"></ItemStyle>
                </telerik:GridBoundColumn>

XML
<ItemTemplate>
                    <div>

                     <asp:DropDownList ID="cboGridTransaction" Width="100%" runat="server">
                     <asp:ListItem>Show Transactions</asp:ListItem>
                     <asp:ListItem>Depost</asp:ListItem>                                        
                     <asp:ListItem>Edit</asp:ListItem>
                     <asp:ListItem>Delete Account</asp:ListItem>
                     </asp:DropDownList>

                     </div>


                     </ItemTemplate>
</Columns>
        </MasterTableView>
</telerik:RadGrid>	
Posted
Comments
Christian Graus 23-Aug-12 7:23am    
You need to mark what third party library you're using in your tags. Why have a drop down instead of using the built in framework that uses buttons ?

1 solution

For questions on them, try here: Telerik Forum[^]

Also look at these:
Telerik - Documentation[^]
Telerik - Online Demos[^]

There sample demo's already have few examples on edit feature of grid. Look at them.
 
Share this answer
 
Comments
Prasad_Kulkarni 23-Aug-12 7:52am    
Glad to see you back :)
+5
Sandeep Mewara 23-Aug-12 8:00am    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900