Questions tagged [dijit.form]

The Dojo Toolkit dijit.form package contains “form widgets”.

The dijit.form package contains “form widgets”. What’s a form widget? It roughly means a widget that appears inside a form, but technically we think of it as “anything that has a value”. See: http://dojotoolkit.org/reference-guide/1.7/dijit/form.html

345 questions
10
votes
3 answers

Dojo Select onChange event firing when changing value programmatically

I have a dojo (dijit) select dropdown that calls a js function onChange. I was expecting this to only call the onChange function when the user changes the value in the dropdown, however, it even calls the onChange function when I programmatically…
Justin
  • 17,670
  • 38
  • 132
  • 201
8
votes
2 answers

How to make a Dojo dijit form programmatically

Im new to Dojo and im trying to make some ui, but only using the programmatic way. I would like if someone could show me some example of how to make a form programmarically using Dojo dijit.form.Form. I've been looking for some example but all i can…
Jmsegrev
  • 251
  • 1
  • 2
  • 10
7
votes
2 answers

Set Value of Dijit.Form.Textarea

I have a dijit dialog that contains a form that I want to auto-populate. I can get the dialog to display with the form in it, but I have been unable to set the value of a text area within the form. Here is the div that houses the html.
Isaac Levin
  • 71
  • 1
  • 1
  • 3
7
votes
1 answer

Searching on a value and displaying another on Dojo FilteringSelect

I'm using the dojo FilteringSelect element together on a Zend form, but I cannot make it work as I want. I have a store with three fields id, label, name. Label will be used for the dropdown and should also be used for the search, while name should…
Yohan Leafheart
  • 860
  • 1
  • 11
  • 27
6
votes
1 answer

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

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…
Jose L Martinez-Avial
  • 2,191
  • 4
  • 28
  • 42
5
votes
2 answers

Dojo: dojo onblur events

I have a form setup with dojo 1.5. I am using a dijit.form.ComboBox and a dijit.form.TextBox The Combobox has values like "car","bike","motorcycle" and the textbox is meant to be an adjective to the Combobox. So it doesn't matter what is in the…
Jane Wilkie
  • 1,703
  • 3
  • 25
  • 49
5
votes
2 answers

'Parser returned unfilled promise' error in Dojo

I'm getting the following error when using dojo/parser in my code. parser returned unfilled promise (probably waiting for module auto-load), unsupported by _WidgetsInTemplateMixin. I've define([ "dojo/_base/declare", "dijit/_WidgetBase", …
streetlight
  • 5,968
  • 13
  • 62
  • 101
4
votes
1 answer

Call a method after a callback and an event

I have a module with four functions that call one after the other. I am trying to follow the Revealing Module Pattern. One of the functions is public, the remaining are private. It goes like this: publicMethod is called from another…
iled
  • 2,142
  • 3
  • 31
  • 43
4
votes
1 answer

dojo and dynamically added options to dijit.form.select

I use dojo 1.8.2 and here is my problem (I have seen this and this question, but they eren't helpful) : My JS code receives from server some data in JSON format. With that, I dynamically create some options for dijit.form.select: var select =…
maialithar
  • 3,065
  • 5
  • 27
  • 44
4
votes
1 answer

how to catch increment and decrement events for dijit.form.NumberSpinner?

Is there any way to catch increment and decrement events for dijit.form.NumberSpinner when user presses up or down arrow in this widget? I know "_arrowPressed" event but I don't want to use it for some reasons. I am using onChange event but that…
TechnoCrat
  • 2,055
  • 4
  • 23
  • 35
3
votes
2 answers

store.fetch is not a function (dojo)

I am trying to implement a filteringselect(dojo) I am trying to get the values from a memory store. I am able to see the filteringselect on my page but it is not returning any thing and firebug keeps saying that store.fetch is not a function Below…
Newbie
  • 361
  • 2
  • 15
  • 33
3
votes
2 answers

Check all fields in a dijit form

Is there any way I can loop through all the dijit fields in a dijit form and print out whether they are valid. I only ask because my 'onValidStateChange' function disables my submit button and I don't know why it wont re-enable it.
Robert Johnstone
  • 5,431
  • 12
  • 58
  • 88
3
votes
2 answers

Programmatically declaring the values of a dijit.form.select

I'm trying to declare through a JSON declaration the options for a markup-declared dijit.form.Select widget. Based on what i've read through in the API documentation, it appears that you could pass a new store using setStore() and then it should…
Cameron Kilgore
  • 383
  • 7
  • 25
3
votes
1 answer

DOJO CheckedMultiSelect dropdown show vertical scrollbar

I'm trying to show vertical scrollbar to CheckedMultiSelect (dropdown) widget. I tried to set height / overflow-y properties but still no luck. I've enabled both properties to widget i.e. multiple="true" and dropdown="true". I'm showing approx 200…
prashant
  • 55
  • 5
3
votes
5 answers

Remove all options from dijit.form.FilteringSelect

I need help withe deleting all options from FilteringSelect. Html code of select: