Login Register

FilteringSelect

How to change the color of single options of a FilteringSelect

I'm a newbee to dojo and build up a little app...
but now I'm on a point where i can't find help.
I had an PHP-Array and built up a FilteringSelect with this. The Point is to colorize single options in red.

here is the code:

...
$dozentenliste = get_dozentenliste($semid, $datum, $kolleg);
?>

Combobox and FilteringSelect broken on Firefox 2

Hello!,

Combobox and FilterginSelect in dojo v1.1.1 are broken on FF2 but also works on FF3 and IE.

In FF2 produces a solid gray line which only turns into a combobox when clicked.

The tests included in the release has the same behavior:
dojo-release-1.1.1/dijit/tests/form/test_FilteringSelect.html
dojo-release-1.1.1/dijit/tests/form/test_ComboBox.html

Anyone knows how to solve it?

Thanks!,
-Jose.

Filtering Select how do I set the default value

I have a filtering select field which requires it's initial value to be set. This value is based on data which is loaded initially. I'm trying to use the setValue and setDisplayedValue options with out much luck. I'm sure there's a simple way to set the value of a filter select when the page loads. What am I missing.

Thanks,
Salman

FilteringSelect with PageSize auto-populates

Hello all,

When using FilteringSelect with the pageSize attribute in Dojo 1.1.1, it creates "More choices"/"Less choices" in the list of options to allow users to scroll through all the options:

<div dojoType="dojo.data.ItemFileReadStore" jsId="stateStore"
     url="states.txt">
</div>
<input dojoType="dijit.form.FilteringSelect" pageSize="10" class="tundra"
     store="stateStore" searchAttr="name" name="addState" id="addState" autocomplete="false" />


Issue:

How to open programmatically a FilteringSelect

Hello,

I would like to open a FilteringSelect by clicking on a button (ie drop down the list as if I used the down key in the input field).
For instance something like dijit.byId('myFS').dropdown().

How can I do this ?

Thank you

How do I populate value from DWR to the FilteringSelect List?

Hi,

I have retrieve value via dwr and I am not sure how to load into the FilteringSelect type. The following is my code:

function getAllAccountLs() {
AccountManager.getAllAccountsNameList(populateDataAcctList);
}

function populateDataAcctList(account) {
dwr.util.removeAllOptions("acctCat");
dwr.util.addOptions("acctCat",account,"name"); --> this is where it returns a set of Array
}

Based on the code above, it will only populate to the normal select type but not the filteringSelect type. Please help!

Thanks & Regards,
Kay Nny

How to programmatically create a filteringSelect and its associated data store

The two functions below are two different attempts to programmatically create a filteringSelect and its associated data store. I believe I am not properly creating the data store. The first method...


function createPicklist(elemId, fldLabel, fldCount) {
showMsg("creating picklist for:\nnelemId:" + elemId + "\nlabel:" + fldLabel + "\ni:" + i);
// This function creates a filteringSelect element for the specified field from the database

// get the body element
var doc = document;
var htmlElement = doc.documentElement;

FilteringSelect changing text of the options

Hi,

I have a FilteringSelect for which I want to change the text of its options.

<select autocomplete="true" dojotype="dijit.form.FilteringSelect" id="myDropdown" value="">
<option value="option1">Option1</option>
<option value="option2">Option2</option>
<option value="option3">Option3</option>
</select>

So, once you change the language to let's say Chinese, I want to load the Option1 with Option1 in chinese.
I couldn't find any function which I can just use.

Any ideas? Thanks in advance.

Dynamically adding items to FilteringSelect

Hello all,

I have a FilteringSelect which I have created from markup like so

<select dojoType="dijit.form.FilteringSelect" id="cmb1">
        <option value="1">aaa</option>
        <option value="2">bbb</option>
        <option value="3">ccc</option>
</select>

and now I want to add an Item dynamically to this list on the click of a button. I have tried the following.

var combo = dijit.byId("cmb1");
combo.store.newItem({text:"ddd", value:"4"}, null);

but I get the error "combo.store.newItem is not a function" in firebug.

Make DropDownList lists infors in Chinese

I'm a Chinese student studying dojo.
I am making a CaseCadingDropDown , means once I have chosen CityA , all the towns of CityA will be ready in another FilteringSelect.
Well , I can do it in English now , but I don't know how to show Chinese.

We know that the JSON can't send Chinese or Japanese directly , I should change the chararters into UTF8 style.

Well , the client can get the infor of charaters from the server , but the infor is still UTF8 style!

So far as I know , the ItemFileReadStore can't get JSON with UTF8 style.
So , what shall I do?

Syndicate content