Login Register

select

Commas in dijit.form.FilteringSelect value clause cause unexpected results

If a FilteringSelect dijit contains a comma in the value clause, things don't work as expected. Consider the following code:

<select value="comma, test" dojoType="dijit.form.FilteringSelect">
    <option value="value one">one</option>
    <option value="comma, test">two</option>
    <option value="value three">three</option>
</select>

You'd expect that the option with the label "two" would be selected. In Firefox 3, nothing gets selected, but Firebug reports no errors. In IE 6, an error is thrown: '0.oper' is null or not an object.

FilteringSelect - Select contents on mouseclick in the select does not work

When entering a filteringSelect via a keyboard command the contents of the select are selected. One can than immediately start typing over the 'old' value. When clicking with the mouse in a filteringSelect the cursor is placed at the clicked position. The contents of the select are not selected.

How can I change this behavior so that clicking with the mouse select all the contents?

I have tried the following without any success;
select id="test1" dojoType="dijit.form.FilteringSelect" required="true" trim="true" autocomplete="true" onFocus="dijit.byId(this.id).select();"

dojo.dnd onSelect event or topic

Hey!
Is there a way to get a notification when a node gets selected?
I want to deselect all nodes from different sources when a node is selected because it makes the user think he can select nodes from different sources and drag them all at once.
A topic like /dnd/drop would be totally sufficient.

Is there a way to implement an own topic without patching the dojo source itself? I already build my own source which probihits copying. As I understand the docs I have to write my own Selector then?

Selecting an accordion pane from and accordion container

The docs seem to indicate that you should be able to pass an object to an accordion container.
It seems it should work like tis:
var ac =dijit.byId("accordion"); //get the container
var spane= dijit.byId("SymptomsPane"): //get the particular pane
ac.selectChild(spane); //and select it

This doesn't work in FF3. Nothing happens.
The following error message in the log:
TypeError: newWidget.setSelected is not a function message=newWidget.setSelected is not a function

You would also hope that
ac.selectChild(4);

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);
?>

Address auto fill in a form

I am trying to build a auto fill address form, I have a db that convert to json with all the countries, then I want the next <select> box load the json from the php file mydb.php?action=1&id=MyCountryId.

I have the idea working with onchange and load it up from php/xml, but how I do it with dojo/json

<div dojoType="dojo.data.ItemFileReadStore" jsId="stateStore<?php echo $micro ?>" url="getcity.php"></div>
<input dojoType="dijit.form.FilteringSelect" store="stateStore<?php echo $micro ?>
" name="country" value="<?php echo $micro ?>">

Thanks,
Shlomo

Simple select fields

Hello,

Is there a very simple select? Which is themed and allows a user to select something, but does not include the ability to edit the entry in the text box? I've looked at the Combo and Filtered select but both have additional features that are not required..

John

Some suggestions

1
It's better for DOJO to make a widget just like "CaseCadingDropDown" in MicroSoft-Asp.net's AjaxToolkit.
We know , we always have to make two "" or more when we want to make "Country-Town-Street-PostCode" select .
So why don't we just make a widigt called "CaseCadingDropDown" like MicroSoft called ?
I think this widigit will be very helpful , I have found so many questions about "How to make FilterSelect dynamic" in this forum.

2
The "ItemFileReadSotre" must be extended.
Right now , I use "FilterSelect" and "ItemFileReadSotre" to make my "CaseCadingDropDown" ,

How to get Selected row form the grid?

Hi Everyone
Dear friends a'm newbee to dojo and i have two questions

1. How can i get data from selected row in the grid. i need to pass it (data) to custom editor
2. I have a column "Expired Date" in the row. I new to check it and if date is expired i need to make whole row in bold.

maybe someone can help me?

in anyway thank you for you time.

Syndicate content