checkboxes=true using itemtemplate check all/none not working

10 posts, 0 answers
  1. Scott Hannon
    Scott Hannon avatar
    18 posts
    Member since:
    Dec 2008

    Posted 16 Nov 2012 Link to this post

    Trying to use a radcombobox with the built in checkboxes=true functionality with EnableCheckAllItems = True. Check all/none not working when using my own ItemTemplate: is this functionality not supported?
    <telerik:RadComboBox ID="ddlReports" runat="server" Width="95%" DataSourceID="DSAvailReports"
                                DataTextField="ReportName" DataValueField="Value" CheckBoxes="True" EnableCheckAllItemsCheckBox="True"
                                ValidationGroup="assign">
                                <ItemTemplate>
                                    <div class="ddlItem">
                                        <%#Eval("ReportName") %><br />
                                        <asp:Label ID="Label2" runat="server" Text="Category (If Available): " Width="160px"></asp:Label>
                                        <telerik:RadComboBox ID="ddlCategory" runat="server" Width="190px">
                                        </telerik:RadComboBox>
                                        <br />
                                        <asp:Label ID="Label3" runat="server" Text="Physician Grp (If Available): " Width="160px"></asp:Label>
                                        <telerik:RadComboBox ID="ddlPhysGrp" runat="server"  Width="190px">
                                        </telerik:RadComboBox>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadComboBox>
    Thx
    Scott
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Nov 2012 Link to this post

    Hi,

    I was able to observe the same behavior in the version 2012.3.1016 and it was working as expected in the version 2012, 1, 215, 35. I suppose this has been reported as the breaking change in the new release.

    Thanks,
    Princy.
  3. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 19 Nov 2012 Link to this post

    Hi Scott Hannon,

    The behavior that you describe is a bug and currently we are working on fixing it.

    Regards,
    Kalina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  4. Scott Hannon
    Scott Hannon avatar
    18 posts
    Member since:
    Dec 2008

    Posted 19 Nov 2012 Link to this post

    Thanks for the update.
    Scott
  5. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 22 Nov 2012 Link to this post

    Hello Scott Hannon,

    We provided a fix for this issue in our latest internal build - you can log in at our site and download it.
    Please let us know if there is something else that we can help you with.

    Kind regards,
    Kalina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Rev
    Rev avatar
    6 posts
    Member since:
    Apr 2013

    Posted 29 Apr 2013 Link to this post

    Hi ,

    I have the same problem now.

    Is the bug got cleared? Any solution for this now ?
  7. Scott Hannon
    Scott Hannon avatar
    18 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2013 Link to this post

    Rev,
    As far as I can tell, it was fixed in all the next major releases.
    Scott
  8. Rev
    Rev avatar
    6 posts
    Member since:
    Apr 2013

    Posted 30 Apr 2013 Link to this post

    Hi Scott,

    This is my code. Check All Checkbox is visible
    but when I select the Check all checkBox ,items are not getting selected. please help
    <telerik:RadComboBox ID="RadComboBox_Students" runat="server"
      
    EmptyMessage="Select Employee(s)" DropDownWidth="450px"
      
    Height="150px" 
      
    AutoPostBack="true" Width="170px" CheckBoxes="true" 
      
    EnableCheckAllItemsCheckBox = "true" >
      
    <HeaderTemplate>
      
    <table >
      
    <tr
      
    <td style="width: 24%;">Student ID
      
    </td>
      
    <td style="width: 33%;">Name
      
    </td>
      
    <td style="width: 33%;">Department
      
    </td>
      
    </tr>
      
    </table>
      
    </HeaderTemplate>
      
    <ItemTemplate>
      
    <table
      
    <tr>
      
    <td>
      
    <asp:CheckBox ID="CheckBox_Students" runat="server" Visible="true" />
      
    </td>
      
    <td >
      
    <asp:Label ID="Label_StudentID_Ref" runat="server" Text='<%# Eval("Employee_UserID_Ref") %>'></asp:Label
      
    </td>
      
    <td >
      
    <%# Eval("Student_Last_Name")%>,
      
    <%# Eval("Student_First_Name")%>
      
    </td>
      
    <td >
      
    <%# Eval("Department_Name") %>
      
    </td>
      
    </tr>
      
    </table>
      
    </ItemTemplate>
      
    </telerik:RadComboBox>
  9. Scott Hannon
    Scott Hannon avatar
    18 posts
    Member since:
    Dec 2008

    Posted 30 Apr 2013 Link to this post

    Rev,
    You don't need to add your own checkboxes in the template. I remarked it out. You may want to open another forum post to get someone to tell you what CSS style changes to get the checkboxes to the left of your items. what version of the Telerik library are you using? I created a project and this worked fine after remarking the custom checkbox code,

    <telerik:RadComboBox ID="RadComboBox_Students" runat="server"
                    EmptyMessage="Select Employee(s)" DropDownWidth="450px"
                    Height="150px"
                    AutoPostBack="true" Width="170px" CheckBoxes="true"
                    EnableCheckAllItemsCheckBox="true">
                  <HeaderTemplate>
                        <table>
                            <tr>
                                <td style="width: 24%;">Student ID
                                </td>
                                <td style="width: 33%;">Name
                                </td>
                                <td style="width: 33%;">Department
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table>
                            <tr>
                                <%-- <td>
                                    <asp:CheckBox ID="CheckBox_Students" runat="server" Visible="true" />
                                </td>--%>
                                <td>
                                    <asp:Label ID="Label_StudentID_Ref" runat="server" Text='<%# Eval("Employee_UserID_Ref") %>'></asp:Label>
                                </td>
                                <td>
                                    <%# Eval("Student_Last_Name")%>,
                                    <%# Eval("Student_First_Name")%>
                                </td>
                                <td>
                                    <%# Eval("Department_Name") %>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>
  10. Rev
    Rev avatar
    6 posts
    Member since:
    Apr 2013

    Posted 06 May 2013 Link to this post

    Hi Scott,

    Telerik Version that I am using is 2011.2.915.40
    Problem may be b'coz of version.
Back to Top