This is regarding the RadDropDownList:
When I diseble a RadListDataItem by setting Enabled to false i can select it by keborard upp and down arrows but it cannot be selected by mouse. I do not want the user to be able to select a disabled item using the keboard (it should be ignored and go to next enabled item)...
I hawe tryed to create this behavior using the SelectedIndexChanging Event whitout any success.
Any suggestions are welcome
//Niklas
6 Answers, 1 is accepted
Thanks for the information.
We will fix this in a future release. As a workaround you can use SelectedIndexChanging event and cancel it if user tries to select the Disabled item. Please excuse us for the inconvenience.
A bit off topic: please ask the purchase holder to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/account/faqs.aspx.
Best wishes,
the Telerik team
We came across this same issue, did this fix make it into a release as indicated? If not, is there a tracking # we can use to follow it, i didn't see it in PITS.
Also, do you have any additional suggestions for a workaround? Canceling the event that you mentioned stops the selected item from advancing completely as opposed to skipping over it etc...
Thanks,
Jim
Thank you for the question.
It seems that there was a technical issue with the PITS item which prevented our users from seeing it public. The issue is now addressed and you can see the PITS item here. We will try to address the issue for Q2 2011 SP1 scheduled for the beginning of September.
Greetings,
Peter
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Thank you for the follow up and link to the PITS item.
Jimmy
I'm using the latest version and I can still select the item with the keyboard and the mousewheel. The sames happens if VisualItem.Visibility = ElementVisibility.Collapsed.
Huh?
Thank you for writing.
The correct way to skip an item is to set the Enabled property of the RadListDataItem to false. In this case navigation with the keyboard will skip this item.
Indeed, the disabled item still can be selected from the drop down list editable area with the mouse wheel. I have reopened the PITS item and I have notified our dev team regarding this case. We will do our best to provide a fix for this in the upcoming release.
A possible work around is mentioned in the following thread: http://www.telerik.com/community/forums/winforms/dropdownlist-and-listcontrol/dropdownlist-and-item-visibility-broken.aspx.
Best wishes,
Stefan
the Telerik team
Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.