Hi All,
I tried auto ssuggestion/completion in Ext using combobox. But its not coming/working for me. I am using IE6 and Mozilla 3.2. Both have the same effects. The first Option is alone selected. Even if i have lot of values starting by same character.
HTML Code:
Ext JS Code: - Ext.onReady(function(){
-
-
Ext.namespace('Ext.pmndata');
-
-
Ext.pmndata.pmn=[
-
['sample1', 'sample1'],
-
['sample2', 'sample2'],
-
['sample3', 'sample3']];
-
-
-
var store1 = new Ext.data.SimpleStore({
-
fields: ['pmn'],
-
data : Ext.pmndata.pmn
-
});
-
-
combo1 = new Ext.form.ComboBox({
-
store: store1,
-
displayField:'pmn',
-
id: 'pmnField',
-
mode: 'local',
-
emptyText:'Select a pmn...',
-
width:128,
-
selectOnFocus:true,
-
typeAhead: true,
-
triggerAction: 'all',
-
minChars : 1,
-
renderTo: pmnHolder
-
});
-
-
});
Any suggestions would be helpful. Thanks in Advance.
Thanks and Regards
Ramanan Kalirajan
4 2427 acoder 16,027
Recognized Expert Moderator MVP
Hi Acoder,
I have developed the code by referring this only. But I face an issue when the real data is loaded from the backend. Until it is working good. But after the db data is loaded. It's not working as expected.
Thanks and Regards
Ramanan Kalirajan
gits 5,390
Recognized Expert Moderator Expert
basicly it should work ... but i suspect an issue with using, or better not using a distinct value field compared to the display field ... so could you try that?
Got the problem yaar... Fixed it. The actual problem was a space is appended with the data from DB. I removed the space now it is working perfect. Thanks for your time and suggestion. Thanks a lot.
Thanks and Regards
Ramanan Kalirajan
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: JZ |
last post by:
Is there any way to fill wxComboBox with a dictionary, not a list?
All normal combobox widgets in HTML or Flash return id, not label. I would
like to display 'A', 'B' and return 'a' or 'b' similar to html:
<select>
<option value='a'>A</option>
<option value='b'>B</option>
</select>
|
by: Sandeep Arya |
last post by:
Hello
I am developing an application using PyQT.
My application scenario is:: "At any instance one socket is open in my
application. Now if user wants to execute some command on another machine/IP
address, then i need to make another socket and execute task."
My query is. Is this possible that my main thread and my newly born thread
|
by: jean |
last post by:
hi:
i am developing a custom combobox for my company's needs that is made
up of a textbox, listbox, button. i am using c#. everything is fine
except for one issue.
in a normal combobox, when the dropdown is visible and the user clicks
anywhere else, the dropdown gets hidden. i am trying to replicate
this behavior and have tried using the Leave and LostFocus events. i
have had marginal success when my dropdown is visible and i...
|
by: nevin |
last post by:
Hello all,
I've looked on the net and can't seem to find what I need so I must be
searching badly or have (another) 'non-problem'.
I am simply trying to move the values of a hastable or sorted list into a
combobox control. I'm willing to lose the key item of the collection I just
need the values.
Surely i don't need to enumerate the entire collection adn add the values
one by one into the combobox?
|
by: Andy Bates |
last post by:
I've got what at first appears to be a really simple problem.
I have a dropdown combobox with a list of names in, the user can enter text
into the edit portion or drop the combobox and select a name.
What I need to do is to drop the combobox when the user types and find the
nearest entry to what the user entered (so if they typed A, Andy may be the
nearest entry, the list should scroll, but not select, unless the user uses
arrow down...
| |
by: pagates |
last post by:
Hello All,
I seem to have found a problem using a ComboBox. If you bind a ComboBox to
an ArrayList of classes, setting the DisplayMember to one field in the class
and the ValueMember to another, and the ComboBox is sorted, then the bounded
indices are incorrect.
It appears that the ComboBox is sorted on ValueMember, but the associated
DisplayMember does not come along for the ride.
|
by: amber |
last post by:
I'm having an issue with a combobox that is making no sense to me at all.
I have a form with several comboboxes/textboxes.
The values in these boxes are based on a datarowview, which is based on a
listbox.selecteditem.
When a different item is selected in the listbox, all the fields are
repopulated with the correct data.
I have 1 combobox which is acting weird.
|
by: John |
last post by:
Does anyone have some sample code for building a combobox that will
automatically list the remaining folders while you type? I'm looking for
functionality similar to the "Look in:" combobox in the Search Companion
panel in Windows Explorer. If you type "C:\" it will open the drop down and
fill it in with all of the directories on C:\. Then as you type letters it
will re-fill the drop down with only the folders that match your typing.
...
|
by: ashwanikumarsharma |
last post by:
check this page:
http://staging.gyst.com/
Here if you write something in first textbox the auto suggestion box is flying down to the page in IE8 only while is working fine in all other browsers. Please let me know if someone have any solution for this.
Thanks in advance.
Ashwani Sharma
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |