dijit.form

Value of dojox.CheckedMultiSelect not being posted with dojo.xhrPost

落花浮王杯 提交于 2020-02-02 11:50:06
问题 When I post a form using dojo.xhrPost , I get all the fields in my form POSTed except for the value of my dojox.CheckedMultiSelect, no matter what options are selected. The declaration of my CheckedMultiSelect: <div dojoType="dojo.data.ItemFileReadStore" jsId="processTypeList" url="json/processtypelist.json.php"></div> <label for="processTypeSelect">Process Types</label> <select dojoType="dojox.form.CheckedMultiSelect" name="processTypeSelect" id="processTypeSelect" multiple="true" style=

Value of dojox.CheckedMultiSelect not being posted with dojo.xhrPost

喜欢而已 提交于 2020-02-02 11:46:50
问题 When I post a form using dojo.xhrPost , I get all the fields in my form POSTed except for the value of my dojox.CheckedMultiSelect, no matter what options are selected. The declaration of my CheckedMultiSelect: <div dojoType="dojo.data.ItemFileReadStore" jsId="processTypeList" url="json/processtypelist.json.php"></div> <label for="processTypeSelect">Process Types</label> <select dojoType="dojox.form.CheckedMultiSelect" name="processTypeSelect" id="processTypeSelect" multiple="true" style=

Remove String from JSON

痴心易碎 提交于 2020-01-25 18:12:47
问题 I want to feed a dijit.form.Select (Dojo Select-Box) with a Data-Store (JsonRest). The Problem is, that the JSON-Parser only accepts JSON in this format: [ {id:"1", name:"One1"}, {id:"2", name:"Two1"} ]; The REST-API of the webapplication we want to call delivers the following JSON: { "data": [ {id:"1", name:"One1"}, {id:"2", name:"Two1"} ], "total": 2, "start": 0, "sort": "name", "order": "asc", "size": 2 }; That is why the Select Box does not show any data. Therefore, we need to remove the

dojo select set maximum width

风流意气都作罢 提交于 2020-01-15 03:51:15
问题 i have a problem with the width of my dojo select. The option of the select widget are filled by an ajax call. A few of the labels are very long and the width of the select widget grows with the large of the label. Is there a way to set the maximum width of the select widget? So that the width don't grow over 180px? PS: I implement the widget by programmatically way like new Select({ name: "select2" }).placeAt(win.body()) Edit: Here for example http://jsfiddle.net/5r3gR/3/ when i select the

How to use dijit.Calendar directly in a form (rather than as a popup)

十年热恋 提交于 2020-01-06 07:20:34
问题 I'd like to have a dijit.form.Calendar embedded directly in my dojo form, rather than appearing as a popup (as dijit.form.DateTextBox provides; this is because the form is already a dropdown selector and just choosing a date would be much more natural than having to click again on the text box) What's the easiest way to do this? I don't mind if the text box still appears and is editable (although that's not a requirement) - but the dijit.Calendar docs say explicitly that you can't use it as a

second dojo FilteringSelect control onChange event doesn't get fired

心已入冬 提交于 2020-01-05 07:05:24
问题 I'm working with arcgis Javascript Api 3.7 (wich includes dojo 1.9.1), and I have been developing a custom templated dijit that has two filteringSelect controls, the first one gets pupulated correctly, and i have a second one that gets populated when the user selects one item from the first one setting its data store at that particular moment. this second filteringSelect gets correctly populated everytime, but something happens with the onchange event, because the function handler never gets

How to disable a single option in a dijit.form.Select?

戏子无情 提交于 2020-01-04 02:27:05
问题 I created 2 Dojo dropdowns using dijit.form.Select that I am populating with 2 ArrayLists. When a user selects an option from the 1st dropdown, I would like an option in the 2nd dropdown to disable. I can't seem to figure out how to do this. Is it possible to disable a single option from the dropdown programatically? Something like... if(this.dropDown1.get("value") == "FirstOption") { //this.dropDown2.get("value", "AnotherOption").set("disabled", true); ?? } 回答1: Try to retrieve the value you

How to change order of elements in a dijit.form.Select

一笑奈何 提交于 2020-01-03 10:59:07
问题 I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore. The issue I'm finding is that I want the select to show the elements ordered by the identifier, but the select is ginving them ordered by the label. How can I avoid this behaviour?. Another issue I'm finding is that when I set the store, I initialized the store to select one of the elements, but it is selecting the first one. The code is a follows: dojo.require("dijit.form.Select"); dojo.require('dojo.data

How to change order of elements in a dijit.form.Select

∥☆過路亽.° 提交于 2020-01-03 10:59:06
问题 I'm using Dojo 1.5 to create a dijit.form.Select with some data from a datastore. The issue I'm finding is that I want the select to show the elements ordered by the identifier, but the select is ginving them ordered by the label. How can I avoid this behaviour?. Another issue I'm finding is that when I set the store, I initialized the store to select one of the elements, but it is selecting the first one. The code is a follows: dojo.require("dijit.form.Select"); dojo.require('dojo.data

Using dijit.InlineEditBox with dijit.form.Select

半城伤御伤魂 提交于 2020-01-03 02:05:21
问题 I'm trying to use a dijit.form.Select as the editor for my dijit.InlineEditBox. Two problems / unexpected behavior seem to occur: Inconsistently, the InLineEditBox doesn't have the initial value set as selected Consistently, after selecting a choice, the value that should be hidden is shown instead of the label. The width isn't set to 130px Here's working code: http://jsfiddle.net/mimercha/Vuet8/7/ The jist <span dojoType="dijit.InlineEditBox" editor="dijit.form.Select" editorParams="{