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

[Solved] combo with checkbox to add clear linkbutton

1 Answer 94 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Suresh Kannan
Top achievements
Rank 1
Suresh Kannan asked on 12 Nov 2009, 06:05 AM
Hi,

  I m using RadCombo with checkbox, displaying items with checkbox. everything is fine, but 

Clarification 1:

I like to add one link is called "clear" in the first item of the combo when the items is checked. if i click the link 'clear' wants to uncheck all the items in the particular combo.

Clarification 2:

i have bind some items on the combo box, finally i hav added one item is called "Custom Price", once i check this want to enter the custom price on it. like textbox has to be introduced for data entry.

Please let me know the solutions.....

Thanks & Regards,
Psk



1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Nov 2009, 07:07 AM
Hi Suresh Kannan,

Checkout the code library which illustrates how to check all the checkboxes in radcombobox. Alter the logic for clearing all the checkboxes.
Code Library

Also you can set the AllowCustomText property to True in order to allow user to type in the textbox. If you want to accomplish this from client side, the try the code shown below.
JavaScript:
 
<script type="text/javascript"
    function customText() { 
        var combo = $find('<%= RadComboBox1.ClientID %>'); 
        combo.trackChanges(); 
        //combo.set_allowCustomText(true); 
        combo._inputDomElement.readOnly = false
        combo.commitChanges(); 
    } 
</script> 

Regards,
Shinu.
Tags
ComboBox
Asked by
Suresh Kannan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or