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

combobox find value in datalist using javascript

1 Answer 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
hani
Top achievements
Rank 1
hani asked on 05 Jul 2010, 03:14 PM
hello,

i want to help to find combobox  selected value in datalist(1), and the datalist(1) in datalist(2) using javascript and i want change the enable this combox when i check the checkbox in same location the combobox using javascript

thanks,

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jul 2010, 07:28 AM
Hello Hani,

One suggestion would be accessing the checkbox from code behind and attaching the onclick event by passing the combobox id.

  • Access the DataListItem in ItemCreated event of DataList.
  • Get reference to checkbox (using FindControl method) and RadComboBox in the DataListItem.
  • Attach 'onclick', event to checkbox by passing the corresponding RadCombobBox ClientID as parameter.
  • In the 'onclick' event handler, get the client object of RadComboBox by using $find() method and passed ClientID.
  • Now use the client api to configure the RadComboBox as required.


Hope this suggestion helps,
Shinu.
Tags
ComboBox
Asked by
hani
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or