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

Disabled items can be selected by using keyboard.

6 Answers 106 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
Niklas
Top achievements
Rank 1
Niklas asked on 01 Sep 2010, 10:41 AM
Hi,

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

Sort by
0
Peter
Telerik team
answered on 03 Sep 2010, 03:05 PM
Hello Niklas,

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,

Peter
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
Jim Fitzgerald
Top achievements
Rank 1
answered on 12 Jul 2011, 04:24 PM
Peter,

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
0
Peter
Telerik team
answered on 15 Jul 2011, 02:24 PM
Hello 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!

0
Jim Fitzgerald
Top achievements
Rank 1
answered on 15 Jul 2011, 02:34 PM
Peter,

Thank you for the follow up and link to the PITS item.

Jimmy
0
Francois
Top achievements
Rank 1
answered on 03 Nov 2011, 08:37 PM
Hi,

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?
0
Stefan
Telerik team
answered on 07 Nov 2011, 09:59 AM
Hi Francois,

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.

Tags
ListControl
Asked by
Niklas
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jim Fitzgerald
Top achievements
Rank 1
Francois
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or