jQuery EasyUI Forum
May 19, 2013, 05:25:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: combobox edit formatting  (Read 1945 times)
devnull
Jr. Member
**
Posts: 78


View Profile
« on: March 17, 2012, 11:01:18 PM »

Hi;

on pressing a "Add New" button, I want to change the combobox by removing the drop arrow, making it editable but also, preventing the drop down search after text is keyed into the box.

I have tried using a long delay, which has the desired effect of preventing the drop down appearing, but the problem is the value of the combobox does not get the value of the textbox.

How can I prevent the drop down appearing but allow the combobox to get the entered value ??

Code:
$('.fkey').combobox({hasDownArrow:false,editable:true,delay:60000,width:'152'});
Logged

## Licensed User ##
stworthy
Administrator
Hero Member
*****
Posts: 645


View Profile Email
« Reply #1 on: March 18, 2012, 06:39:18 PM »

When the drop down panel display, try hide it immediately:

$('.fkey').combobox({
  hasDownArrow:false,
  onShowPanel:function(){
    $(this).combobox('hidePanel');
  }
});
Logged
devnull
Jr. Member
**
Posts: 78


View Profile
« Reply #2 on: March 18, 2012, 07:57:08 PM »

Brilliant !!

Thanks so much

Pete
Logged

## Licensed User ##
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!