EasyUI Forum
June 30, 2024, 02:38:30 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 13397 times)
devnull
Sr. Member
****
Posts: 431


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: 3581


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
Sr. Member
****
Posts: 431


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

Brilliant !!

Thanks so much

Pete
Logged

-- Licensed User --
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #3 on: December 01, 2014, 06:39:59 AM »

Hi;

This method of using a combobox as a text box appears to have stopped working in 4.1.

Code:
$('.fkey').combobox({
  hasDownArrow:false,
  onShowPanel:function(){
    $(this).combobox('hidePanel');
  }
});

The combobox value is no longer sent with the form submission, it worked great up until this version ?
Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2268


View Profile Email
« Reply #4 on: December 01, 2014, 05:26:13 PM »

Please download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip, or use the textbox component instead.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!