Login Register

event

grid events

hallo there,

I want to use the grid event "onRowDplClick". When it occurs, a dialog should appear and the data of the
clicked row should be in it. Then i want to edit this data and send it back to a server and store it in a sql-database. At least the grid should be updatet.

First I take a ItemFileReadStore which catch the data for the grid from a server ( it works fine). The next step
was to take a grid (1.2.3) and connect it with the store ( it works fine too). Then i try to connect the onRowDplClick by dojo.connect:

dojo.addOnLoad(function(){

[ComboBox compositionend] Key events via Korean IME not available

Solution1

dijit.form.ComboBox

compositionend: function(/*Event*/ evt){
			//	summary:
			//		When inputting characters using an input method, such as
			//		Asian languages, it will generate this event instead of
			//		onKeyDown event Note: this event is only triggered in FF
			//		(not in IE)
			this._onKeyPress({charCode:-1});
		},


postCreate: function(){
...
dojo.connect(this.textbox,"compositionend",function(e){
self._startSearch(self.textbox.value);
self._onkeypress(e);
});
}
},
_onkeypress: function(e){

How do I know when a tree has finished loading?

I want to highlight (select) the tree node that corresponds to a model object. It looks like I can use the tree's _itemNodeMap to find the node that corresponds to my object, and then I can call focusNode to select it. However, _itemNodeMap isn't fully populated until the tree is finished loading, and I haven't found a callback that lets me know when that's happened. Could some kind person point me in the right direction?

File Uploader, onComplete handler

After a file finishes uploading, the onComplete event doesn't seem to be firing (in IE 7 and FireFox 3, on Windows XP).

is there an example that show how to connect to Slider events?

I'm using the digit not the dojo byId object, and I can setValue
it just fine. Sot its there, I think. But I have yet to figure
out how to fire a function of my own when it gets changed. The
example on the Slider page in the book just shows it getting its
value set, which isn't that helpful.

Any help greatly appreciated.
Britton

I think I've found a serious problem with Dijit system

specifically, if I have plain (non-dijit) input or textarea elements contained inside a ContentPane or BorderContainer, the mousedown events inside these elements have no effect (tested on FF2/3, dojo versions 1.1.1 as well as 1.2.0b2). The simple mark-up after the next paragraph will reproduce the problem.

beefing up dojo.require(), to load modules on demand

Hi,
I am porting my web app (at lipik.in) to Dojo, for a variety of reasons, incuding, modularity, extensibility etc.
No big surprises so far (thank you!), but I have a couple of questions:

Grid event onSet don't want be fired :/

Hi !

I've spend about 3hr to found out why the onSet event is never fired, I, desperatly, I ask for your help :)

So, here is my code :

function createGrid (oResponse, ioArgs) {
var grid = dijit.byId("grid");
var store = new dojo.data.ItemFileReadStore({data: oResponse });
var gridModel = new dojox.grid.data.DojoData(null, store, {query:{destination: '*'}, clientSort:true});
grid.setModel(gridModel);
grid.refresh();

dojo.connect(grid.model, 'onSet', onSetEvent);
//dojo.connect(grid, 'onSet', onSetEvent);
}

dispatchEvent() to unknown leaf-node

Hi! [first post dance]

I wish to dispatch an event programmatically.
The scenario is well modelled by trying to spatially displace a regular event. E.g. a click-event occurs at (10,10) and I wish to re-dispatch (+10,+10) at (20,20).

I tried calling dispatchEvent() on the uber-container (e.g. DIV) but it seems that makes the event's target the uber-container rather than the HTML component at that location (e.g. a link, Dijit widget, etc). I tried synthesizing an entirely new event (rather than redispatching an extant one) and saw the same result.

Help, no event object is passed by dojo.connect

hi.
I build programmaticly a dijit:

var mydijit = new dijit.form.FilteringSelect (props, nodeID);

Then I connect to onChange-Listener

dojo.connect(mydijit,'onChange',function(e) {console.dir(e);});

Console says
object {
0: "10"
endWith: function()
trim: funtion()
}

Anybody an idea whats going wrong?
I never got an real Even-Object passed :(
I never found a solution to track back a fired event function :(

please help, I searched the whole site
greetings,
melchior

Syndicate content