radComboBox with asp:checkbox in RadGrid column

3 posts, 0 answers
  1. Dave
    Dave avatar
    6 posts
    Member since:
    Sep 2010

    Posted 20 Nov 2012 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dave
    Dave avatar
    6 posts
    Member since:
    Sep 2010

    Posted 21 Nov 2012 Link to this post

    Hmmm ... guess i wasnt aware that you could "nest" <ItemTemplate>'s
    Thanks Shinu, I'll give it a go!
    regards
    Dave

Back to Top