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

DropDownList dont fire keypress event with enter

3 Answers 337 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
MARIANO
Top achievements
Rank 1
MARIANO asked on 11 May 2012, 08:07 PM
i want to write a name in DropDownList with DropDownStyle=DropDown and fire event keypress o keyup o keydown please help

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 May 2012, 12:31 PM
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 >>
0
Arjun
Top achievements
Rank 1
answered on 23 Jan 2015, 04:36 AM
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









               
























0
Stefan
Telerik team
answered on 26 Jan 2015, 07:58 AM
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.

 
Tags
DropDownList
Asked by
MARIANO
Top achievements
Rank 1
Answers by
Peter
Telerik team
Arjun
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or