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

radComboBox with asp:checkbox in RadGrid column

2 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 20 Nov 2012, 05:13 PM

Hi All,

I currently have a RadComboBox with an asp:Checkbox working as needed.  (Code behind is responsible for adding checkboxes and their "labels".   (See aspx Code below)

 

I now need to figure out how to implement this in a column in a RadGrid, and seem to be running into real challenges.   ANY help on this would be much appreciated!


<telerik:RadComboBox
    runat="server"  
    Width="235px"
    ID="ddUsersSelector"
    HighlightTemplatedItems="true"
    ClientIDMode="Static"
    EnableVirtualScrolling="True"
    Skin="Default"
    ToolTip="Select Users"
    MaxHeight="200px">
    <ItemTemplate>
        <asp:CheckBox
            runat="server"
            dependency = "adduser"
            ID="UserCheckBox"
            OnClick="CheckBoxClick(this)"
            Text=""
            ClientIDMode="Static" />
    </ItemTemplate>
    <CollapseAnimation Type="OutQuint" Duration="200" />
</telerik:RadComboBox>

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Nov 2012, 04:09 AM
Hi,

One suggestion is that you can place the combobox in a TemplateColumn as shown below.
aspx:
<telerik:GridTemplateColumn>
  <ItemTemplate>
   <telerik:RadComboBox runat="server" Width="235px" ID="ddUsersSelector" HighlightTemplatedItems="true" ClientIDMode="Static" EnableVirtualScrolling="True" Skin="Default" ToolTip="Select Users" MaxHeight="200px">
     <ItemTemplate>
        <asp:CheckBox runat="server" dependency = "adduser" ID="UserCheckBox" OnClick="CheckBoxClick(this)" Text="" ClientIDMode="Static" />
    </ItemTemplate>
    <CollapseAnimation Type="OutQuint" Duration="200" />
  </telerik:RadComboBox>
 </ItemTemplate>
</telerik:GridTemplateColumn>
Also check the following help documentation which explains more  about column types.
Column Types

Thanks,
Shinu.
0
Dave
Top achievements
Rank 1
answered on 21 Nov 2012, 03:50 PM
Hmmm ... guess i wasnt aware that you could "nest" <ItemTemplate>'s
Thanks Shinu, I'll give it a go!
regards
Dave

Tags
Grid
Asked by
Dave
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dave
Top achievements
Rank 1
Share this question
or