Disabled items can be selected by using keyboard.

7 posts, 0 answers
  1. Niklas
    Niklas avatar
    7 posts
    Member since:
    Apr 2009

    Posted 01 Sep 2010 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Sep 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jim Fitzgerald
    Jim Fitzgerald avatar
    2 posts
    Member since:
    Nov 2009

    Posted 12 Jul 2011 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 15 Jul 2011 Link to this post

    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!

  6. Jim Fitzgerald
    Jim Fitzgerald avatar
    2 posts
    Member since:
    Nov 2009

    Posted 15 Jul 2011 Link to this post

    Peter,

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

    Jimmy
  7. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 03 Nov 2011 Link to this post

    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?
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 07 Nov 2011 Link to this post

    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.

Back to Top
UI for WinForms is Visual Studio 2017 Ready