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

[Solved] In-place editing with popup

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shanthala Somashekar
Top achievements
Rank 1
Shanthala Somashekar asked on 16 Sep 2009, 02:42 PM
I have a telerik grid control and use in-place editing. Since telerik does not support checkboxlist columns, I want to popup a small window with a checkboxlist and a close button when the user clicks on a cell that requires the user to select multiple items. When the close button on the popup is hit, I want to populate the cell with a comma separated list of choices selected. Is this possible and is there an example that I can look into for doing this?

Thanks
Shanthala

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Sep 2009, 06:18 AM
Hello Shanthala,

Inorder to display a CheckBoxLIst for a column while editing, you can use a GridTemplateColumn, wherein you can add a CheckBoxList to its EditItemTemplate and update the cell accordingly. Here's a sample:
aspx:
<telerik:GridTemplateColumn> 
    <ItemTemplate> 
        <asp:Label ID="Label1" runat="server"></asp:Label> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <asp:CheckBoxList ID="CheckBoxList1" runat="server"
            <asp:ListItem Text="Text1" Selected="True"></asp:ListItem> 
            <asp:ListItem Text="Text2"></asp:ListItem> 
            <asp:ListItem Text="Text3"></asp:ListItem> 
            <asp:ListItem Text="Text4"></asp:ListItem> 
            <asp:ListItem Text="Text5"></asp:ListItem> 
        </asp:CheckBoxList> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

If you want to display the checkboxlist in a popup window, then you can refer to the following online demo which explains on how to popup a window on clicking a hyperlink and update records in the grid. You can probably use the same logic and alter it according to your requirement:
Window Editing

Thanks
Princy.


Tags
Grid
Asked by
Shanthala Somashekar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or