Login Register

dojox

Grid as Widget - Display problem

Hi,

i have a strange Problem, iam trying to add an Grid as own widget : iam using the following code

dojo.provide("myWidgets.ShopShow");

dojo.require("dijit._Widget");
dojo.require("dijit._Templated");

dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dojox.grid.DataGrid");
dojo.require("dijit.layout.ContentPane")
dojo.require("dijit.layout.LayoutContainer");

dojo.declare(
"myWidgets.ShopShow",
[dijit._Widget, dijit._Templated],
{
widgetsInTemplate: true,
templatePath: dojo.moduleUrl("myWidgets", "templates/shopshow.html"),

Difference between dijit.form and dojox.form

Hi,

can anybody tell me the difference between dijit.form and dojox.form. Both have a DateTextBox for example but what's the difference. And if I want to create een e-mail adres input field, how can I validate this field. Do I have to use the dijit.form.ValidationTextBox and write a regular expression or can I use dojox.validate.isEmailAddress. Then my next problem would be, how to implement dojox.validate.isEmailAddress.

Maybe there is a tutorial on how to make forms with dojo that I can't find.

Thanx

Adam

Display array of values in one cell

In the following data store definition, there is a field which contains an array of values. The formatter extension point is called with the first value of the corresponding arrays! I guess it's called with something like store.getValue(item, "support") instead of store.getValues(item, "support").

Which function can receive the entire arrays?

I cannot just produced one column per value in the arrays because I don't know how many values the array can contains, and I don't want to waste real estate...

A+, Dom
----

Here is the code:

Contribute fixed ColorPicker

I fixed some issues with the ColorPicker as well as implemented some new features:
- set initial color and ability to set it later by calling a method
- color codes can now be entered through inputs (rgb, hsv, hex) and picker updates accordingly
- removed references to deprecated objects and methods
- rewritten it to use dojox.color instead of default _hsv2rgb method that was copy/pasted
- changed some method names to be more mnemomic
- commented the code
- most of it now conforms to JS Style Guide

Resizing Pager

I would like to place dojox.widget.Pager within a flexible width container.
Seems like it would make sense to add a resize event handler that would
reinitialize the Pager.

However, it's not clear to me how to reinitialize the widget. So far my
attempts have resulted in throwing an error "Tried to register widget with
id==dojoxMenu1-item-1 but that id is already registered!"

How should I be approaching this?

-Jason

dojox.gfx flash backend?

Hi,

dojox contentpane with href pointing to a JSP

I am trying to use dojox.layout.ContentPane to reference a JSP file. This is what i am doing:

<code><div cleanContent="true" dojoType="dojox.layout.ContentPane" href="somefile.jsp" id="Usr-Rl_Mgmt" refreshOnShow="true" title="Usr-Rl_Mgmt"></div></code>

This throws a js error "already called" each time the content pane is viewed. Any suggestions on how I can resolve the problem would be helpful. Thanks.

dojox.cometd - list of the subscribed clients on the server available ???

Hello!
It's hard for me to explain but I give a try and hope you understand.
My Map Web Application realizes a cometd client server communication.
Client:

dojox.cometd.init("./cometd");
dojox.cometd.subscribe("/test", sample, "publishHandler");
...

dojox.grid.editors.bool not working properly

I am using the following code for my grid.

var view1 = {
cells: [[
{name: 'Sel', editor: dojox.grid.editors.bool , width: '16px'},
{name: 'str', field: "star", formatter: starFormatter, width: '16px'},
{name: 'read', field: "read", formatter: readFormatter, width: '16px'},
{name: 'Subject',width: "60%", field: "subject", styles: 'white-space: nowrap;'},

Syndicate content