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

Odd behavior with checkboxes = true

1 Answer 37 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 09 Jul 2014, 05:06 PM
I am seeing some odd behavior with the combobox.
I have them on a page and if you drop down and check on of the entries it shows the value in the box.  I then close the box then open it again and select another from the list it shows 2 selected but then when the dropdown goes away the text area now shows the same of the first one I had selected.  I then click the box again and select all from the drop down list, it says all selected but when the drop down collapses the box displays the same value of what was originally selected.  IIt does not seem to be an issue if you select more than one in the very beginning

This is the box on the screen
<tr>
    <td style="vertical-align: top">Conversion:
    </td>
    <td>
        <telerik:RadComboBox runat="server" ID="ConversionType" Width="100%" DataTextField="ConversionDescription" DataValueField="ConversionTypeID" OnClientLoad="onLoad"
            Skin="Sunset" EmptyMessage="Select Conversion" MaxHeight="200px" CheckBoxes="True" ShowToggleImage="False"  EnableCheckAllItemsCheckBox="true"
            ShowDropDownOnTextboxClick="False" MarkFirstMatch="True"/>
    </td>
</tr>

This is the javascript for the OnCLientLoad
function onLoad(sender) {
            var div = sender.get_element();
 
            $telerik.$(div).mousedown(function (e) {
                if (sender.get_dropDownVisible()) {
                    sender.hideDropDown();
                }
                else {
                    sender.showDropDown();
                }
            });          
        }



 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jul 2014, 04:48 AM
Hi Frank,

The provided code is working fine at my end. Such an issue is not expected. The default behavior of the control is that it will show the checked items text on the RadComboBox. Please have a look into this online demo and try to replicate the issue there.

Thanks,
Shinu.
Tags
ComboBox
Asked by
Frank
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or