DropDownList dont fire keypress event with enter

4 posts, 0 answers
  1. MARIANO
    MARIANO avatar
    9 posts
    Member since:
    Sep 2011

    Posted 11 May 2012 Link to this post

    i want to write a name in DropDownList with DropDownStyle=DropDown and fire event keypress o keyup o keydown please help
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 15 May 2012 Link to this post

    Hi Mariano,

    Thank you for contacting Telerik support.

    By default these events fire when the user presses a key. For this reason, I would like to kindly ask you to provide me with a sample project which demonstrates your scenario. Additionally, please share with me more details regarding what are you trying to achieve.

    I am looking forward your reply.

    All the best,
    Peter
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Arjun
    Arjun avatar
    1 posts
    Member since:
    Jan 2015

    Posted 22 Jan 2015 in reply to Peter Link to this post

    list = $("<ul/>").appendTo(element).mouseover( function(event) {
    if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
               active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
       $(target(event)).addClass(CLASSES.ACTIVE);            
           }

    }).click(function(event) {
    $(target(event)).addClass(CLASSES.ACTIVE);
    select();
    // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
    input.focus();
    checkAutoComplete();
    return false;
    }).mousedown(function() {
    config.mouseDownOnSelect = true;
    }).mouseup(function() {
    config.mouseDownOnSelect = false;
    }).keydown(function(event) {
    if (event.keyCode == 13) {
    alert("hi");
    }
    $(target(event)).addClass(CLASSES.ACTIVE);
    select();
    // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
    input.focus();
    checkAutoComplete();
    return false;
    });                                  

    key down event is not triggering









                   
























  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 26 Jan 2015 Link to this post

    Hello Arjun,

    This forum concerns Telerik UI for WinForms, while judging by your code, it seems you are using some other technology. I would suggest that you address your question to the appropriate forum in order to get adequate response. The list of the forums is available here: http://www.telerik.com/forums.

    If you have having troubles finding the right forum for you, just let me know which product you are using and I will help you find it.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top