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

checkboxes=true using itemtemplate check all/none not working

9 Answers 172 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Scott Hannon
Top achievements
Rank 1
Scott Hannon asked on 16 Nov 2012, 07:30 PM
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

9 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Nov 2012, 05:55 AM
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.
0
Kalina
Telerik team
answered on 19 Nov 2012, 07:11 AM
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.
0
Scott Hannon
Top achievements
Rank 1
answered on 19 Nov 2012, 02:04 PM
Thanks for the update.
Scott
0
Kalina
Telerik team
answered on 22 Nov 2012, 08:26 AM
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.
0
Rev
Top achievements
Rank 1
answered on 29 Apr 2013, 10:16 AM
Hi ,

I have the same problem now.

Is the bug got cleared? Any solution for this now ?
0
Scott Hannon
Top achievements
Rank 1
answered on 29 Apr 2013, 12:38 PM
Rev,
As far as I can tell, it was fixed in all the next major releases.
Scott
0
Rev
Top achievements
Rank 1
answered on 30 Apr 2013, 06:12 AM
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>
0
Scott Hannon
Top achievements
Rank 1
answered on 30 Apr 2013, 01:59 PM
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>
0
Rev
Top achievements
Rank 1
answered on 06 May 2013, 08:43 AM
Hi Scott,

Telerik Version that I am using is 2011.2.915.40
Problem may be b'coz of version.
Tags
ComboBox
Asked by
Scott Hannon
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kalina
Telerik team
Scott Hannon
Top achievements
Rank 1
Rev
Top achievements
Rank 1
Share this question
or