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

check/uncheck radlistboxitems when disabled

2 Answers 67 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 22 Sep 2010, 04:53 AM
Hi there , 

I am not sure if its a feature or an issue, but it appears as though I cannot uncheck a checked item in the radlistbox when the radlisbox is disabled 

e.g. 

var list = $find('<%=RadListBoxRisk1.CLientID %>')
alert(list.get_enabled() ) // displays false
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays true
}

if I change the code to this .. it works 

var list = $find('<%=RadListBoxRiskEffects.CLientID %>')
list.set_enabled(true)
alert(list.get_enabled() ) // displays true
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays false
}
list.set_enabled(false)

thanks 

Mark

2 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 27 Sep 2010, 08:36 AM
Hi mark,

Which version of RadListBox do you use? There used to be such bug, however, you can find the problem fixed in the latest version of RadListBox. I suggest that you give it a try.

Regards,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mark
Top achievements
Rank 1
answered on 27 Sep 2010, 10:39 PM
That explains a thing or two,

I am not using the latest version. will try that and see 

thanks 
Tags
ListBox
Asked by
mark
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
mark
Top achievements
Rank 1
Share this question
or