Login Register

ComboBox

Non editable ComboBox

How to make ComboBox non editable?
Is there a way to set dijit.form.ComboBox non-editable?

Next button in FilteringSelect

Hello,

I've a combobox wired on a QueryReadStore, I've adapted the example at http://archive.dojotoolkit.org/nightly/checkout/dojox/data/tests/QueryRe... to implement my server side store.

My problem is when there is exactly the same total number of elements in the store that the number specified in combobox tag pageSize attribute.

Ex. :
10 elements in the store and combo defined like this :

In this case, the combobox display the next button but there is no results on the second page.

Changing ComboBox Options Style/Font

For a standard HTML select I can do this:

style="font-family:Courier New; font-size:14pt;"

But for the Dijit ComboBox, it has no effect on the options; instead, it only
affects the style of the type-ahead area of the combo.

Any suggestions?

Thanks!

Bold tags in a ComboBox list?

I am trying to find a way to display html in a combo box. The list data is being returned from the server via QueryReadStore. I am trying to take two pieces of data and make one of them bold, but doing this:

return item.i[attribute] + ', bar ';

When the list is rendred it show up like this:

City , <b> bar </b>
City2, <b> bar </b>
City3, <b> bar </b>

where i am trying to just BOLD bar.
like this:
City , bar
City2 , bar
City3 , bar

Get the id of current selected item in ComboBox

How can i get the selected item's id(not the displayed text value but the key) of a diji.form.ComboBox?
I searched in the web and this forum for about 1 days, but neither have the solution.
My data store for the ComboBox is as follows:
{identifier:"name",
items: [
{name:"China", label:"Ch"},
{name:"USA", label:"US"}
]}
and I want to get the label "Ch" or "US". However, when using the getValue(), i always get the "China" and "USA".

Option value and Combobox...

Hi to all,
I would Use the Dojo Widget Combobox for my code :

************************************************************
[select name="marca" dojoType="dijit.form.ComboBox" autocomplete="false" onChange="setVal1"]
[OPTION VALUE="APRILIA"]APRILIA[/OPTION]
[OPTION VALUE="BENELLI"]BENELLI[/OPTION]

[OPTION VALUE="BIMOTA"]BIMOTA[/OPTION]
[OPTION VALUE="BMWITALIAMOTO"]BMW ITALIA MOTO[/OPTION]
[OPTION VALUE="BUELL"]BUELL[/OPTION]
[OPTION VALUE="CAGIVA"]CAGIVA[/OPTION]
[/select]
***************************************************************

Programmatic ComboButtons

Hello,

I have been trying to programmatically create ComboButtons (containing drop-down items) to put in a toolbar without any success. I've searched the web far and near and have been unable to come up with any answers as to if it's possible and how to get these ComboButtons to work correctly.

Can anyone give me an example as to how this is done?

Thanks much!

Combobox and MySql

Hi,
I want to make a combobox which display the contenent from MYSQL I was searching for goods examples but I can't found anything, any one can help me.

My approach is using php but can't found samples...

Camilo

FilteringSelect problem with IE7

ComboBox widgets in IE7 is not working. They do not respond at all - no drop-down, no response when clicking the down-arrow icon. There is a small jscript error: "i is undefined" - but no other indication of the problem.

Any help ?

thanx,

kurund

ComboBox created by script don't preserve style and class attributes

Hi,

i observed a different behavior in creating a combobox by using

and

with

var options = new dojo.data.ItemFileWriteStore({data: {identifier: 'name', items:[]}});
options.newItem({name: 'foo'});
options.newItem({name: 'bar'});

var comboBox = new dijit.form.ComboBox(
        {store: options},
        dojo.byId("mycombobox")
);

in the body onload script.

Syndicate content