Harry Devine | 27 Mar 20:56 2015
Picon
Picon

Custom search in dGrid across pages

Now that I have Pagination working in my dGrid, I'd like to implement a search function.  I can use the browsers Find function because that will only look on the current browser view.  If I have over 700 rows in my dGrid and the user I'm looking for is on page 15, the browser Find will fail.  I have a custom menu that I put up on the grid by handling the contextmenu event.

I have a menu item created that will put up a dijit/ConfirmDialog window to put in the string to search for.  When I click OK, I get the value that I then try to use to query the store by calling:

var results = this.userStore.query({uid: userid});

But I get an error that says: Uncaught TypeError: Cannot read property 'query' of null.

A few questions:
1) why am I getting that error and how can I fix it?
2) how can I search the data store to find a part of the string I entered? (i.e if I'm looking for devine, I'd like it to match if it finds harry.devine).
3) Is there a way I can determine where in the grid the found record is so I can use the Pagination's goToPage function to put the user on that page?

Thanks,
Harry
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
demisheep | 27 Mar 18:44 2015
Picon

Re: How to put different cellWidgets in perticular column in Gridx?

I think this is the solution you're looking
for:

http://grokbase.com/t/dojo/dojo-interest/138669as7x/gridx-different-cell-editors-for-each-row-in-same-column
<http://grokbase.com/t/dojo/dojo-interest/138669as7x/gridx-different-cell-editors-for-each-row-in-same-column>

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-to-put-different-cellWidgets-in-perticular-column-in-Gridx-tp4005784p4005794.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

demisheep | 27 Mar 03:28 2015
Picon

Need to put a color picker and a date time picker in my gridx do I need to use a pop up or is there a drop down option?

I need to add a color picker and date time picker to my gridx. Will I have to
use a pop up dialog to populate both the color picker and date time picker
or can they go into a drop down box?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Need-to-put-a-color-picker-and-a-date-time-picker-in-my-gridx-do-I-need-to-use-a-pop-up-or-is-there--tp4005783.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Andy J | 26 Mar 06:06 2015
Picon

Re: Is it possible to pre-initialize the AMD require cache with already defined modules

I found one solution to my problem. There may yet be a better way, but the global dojoConfig allows adding a property named "cache". It is a map to which you can effectively pre-load modules. It must be setup before Dojo is loaded. For example, if I wanted to ensure my module "path/to/foo" will return the appropriate item it could be defined like so:

var defineFoo = function() { define(['dojo/_base/declare', 'whatever/else'], function(declare, otherThing) { return declare(...whatever...); } } var cache = {}; cache['path/to/foo'] = defineFoo; dojoConfig.cache = cache; Note that 'path/to/foo' is how other modules will be referencing the pre-cached module. I was able to use my tempting engine to generate the wrapper text around the original source code modules to preload them.
View this message in context: Re: Is it possible to pre-initialize the AMD require cache with already defined modules
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Harry Devine | 25 Mar 19:55 2015
Picon
Picon

Re-run renderCell for a particular row

In my dgrid, I have rows of users and I color-code those users according to criteria such as if their account is locked out, etc.  I have implemented a Dojo menu that will unlock a user by calling my backend to clear the lock.  After this occurs, is there a way I can re-run the renderCell function for just that row so I can update the color scheme?

Thanks,
Harry
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
z424brave | 25 Mar 15:32 2015

Dojo Build and nls / cldr

I have a production dojo application which uses a minified built file created
using the dojo build process.

So my main application code loads correctly via a single server request.

However I still see separate requests to the server for nls files e.g.
"dijit/nls/common.js".

So is it possible for all such files to be packaged into my single build
output file or does the build process  always keep them separate and
therefore will always require separate requests to the server (which would
then require the nls files to be copied to the server).

Reading various tickets and articles I am still not sure what should happen
during the build process for these files. As a result I am not sure if I am
missing a setting / step in my build script or if this is just the way it
is.

Any pointers to an example would be approeciated    

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Dojo-Build-and-nls-cldr-tp4005756.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Harry Devine | 25 Mar 14:21 2015
Picon
Picon

Implementing Pagination extension in dGrid

I am currently using an OnDemandGrid.  I have the Pagination extension included, but I was reading how you shouldn't use this on the OnDemand grids.  My grid has approximately 850 rows of data, and I was trying to see if I could show 25 rows at a time.  I changed my grid to be Grid (instead of OnDemandGrid), and set the rowsPerPage property to 25 in the columns declaration.  When the grid renders, I see the first 25 rows, the footer says "1-25 of 25 results", I see the page arrows but they are grayed out.

So, how can I show pages of 25 results at a time?  I am looking at the Pagination tests and I believe (although its very possible that I'm missing something) that I have the correct properties set, so I can't understand why the page controls are grayed out.

Anyone have any insight or ideas?

Thanks,
Harry
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Paul Johnson | 25 Mar 03:18 2015

Password


Sent from Type Mail

On Mar 21, 2015, at 12:01, dojo-interest-request <at> mail.dojotoolkit.org wrote:
Send Dojo-interest mailing list submissions to
dojo-interest <at> mail.dojotoolkit.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
or, via email, send a message with subject or body 'help' to
dojo-interest-request <at> mail.dojotoolkit.org

You can reach the person managing the list at
dojo-interest-owner <at> mail.dojotoolkit.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dojo-interest digest..."


Today's Topics:

1. Re: how to refer different html files or DIVs in index html
(Karl Tiedt)
2. Dojo Forest tree model (Vinodh Venkatesan)
3. integrating Parser Auto-Require Demonstration Demo (Nauman)
4. Re: Dojo Forest tree model (Jared Jurkiewicz)




Message: 1
Date: Fri, 20 Mar 2015 15:32:45 -0700
From: Karl Tiedt <ktiedt <at> gmail.com>
Subject: Re: [Dojo-interest] how to refer different html files or DIVs
in index html
To: dojo-interest <at> mail.dojotoolkit.org
Message-ID:
<CADNgbTEKytNzPgAtTfRt6SE=7aM2Zv1AQFj-3hkQu4=NqtXuSA <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

If they are just Content, ContentPane.setHref("blah.html"); will work...

if you are expecting more in depth interaction with your code... you will
probably need to explain more in detail what you are expecting.

-Karl Tiedt

On Fri, Mar 20, 2015 at 1:49 PM, DojUse <khan.komali <at> yahoo.de> wrote:

Hallo Karl,

thanks for your response.

maybe i could not clearly indicate in my first post that the Div element
is part of the ContentPane( region: center) und not child of the
BorderContainer itself.

my question is: it s necessary to declare the 4 other html files as
templates (custom widgets) inorder to bind them to the index.html or it s
possible to access their Nodes via data-dojo-attachpoint inorder to
manipulate them or there is an other way to do that?

if i have to use my other 4 html files as custom widgets how can i define
them all.

define("app/Mytemplate_1", [ "dojo", "dijit", "dijit/_Widget",
"dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin",
"dojo/text!app/templates/Mytemplate_1.html" ],
function(dojo, dijit,
_Widget, _TemplatedMixin, _WidgetsInTemplateMixin) {

how to us all the 4 template in the function declare.

dojo.declare("app.Mytemplate_1", [ dijit._Widget,
dijit._TemplatedMixin,
dijit._WidgetsInTemplateMixin ], {

how to define the Path for the 4 templates in the following
TemplateString


// Path to the template
templateString : dojo.cache("app",
"templates/Mytemplate_1.html"),




Many thanks for your help





--
View this message in context:
http://dojo-toolkit.33424.n3.nabble.com/how-to-refer-different-html-files-or-DIVs-in-index-html-tp4005686p4005689.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit:
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20150320/f9a7832a/attachment.html



Message: 2
Date: Fri, 20 Mar 2015 19:11:54 -0700
From: Vinodh Venkatesan <vinodh.venkatesan <at> outlook.com>
Subject: [Dojo-interest] Dojo Forest tree model
To: "dojo-interest <at> mail.dojotoolkit.org"
<dojo-interest <at> mail.dojotoolkit.org>
Message-ID: <BAY176-W9E6423E84C3964A292B70FA0F0 <at> phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

"items":[{"continent":"North America", "details":{"country":"US","company":"HTC","Product":"M8"}},
{"continent":"North America", "details":{"country":"US","company":"Apple","Product":"iphone6"}},
{"continent":"North America", "details":{"country":"US","company":"Apple","Product":"ipad"}},
{"continent":"North America", "details":{"country":"canada","company":"Htc","Product":"M9"}},
{"continent":"North America", "details":{"country":"canada","company":"samsung","Product":"S4"}},
{"continent":"North America", "details":{"country":"canada","company":"samsung","Product":"S3"}},
{"continent":"South America", "details":{"country":"Argentina","company":"Nokia","Product":"Lumia"}},
{"continent":"South America", "details":{"country":"Argentina","company":"motorola","Product":"Moto X"}},
{"continent":"South America", "details":{"country":"Argentina","company":"motorola","Product":"MotoG"}},
{"continent":"South America", "details":{"country":"Brazil","company":"Nokia","Product":"E"}},
{"continent":"South America", "details":{"country":"Brazil","company":"samsung","Product":"S5"}},
{"continent":"South America", "details":{"country":"Brazil","company":"samsung","Product":"S3"}}]

Suppose we have a JSON as above and we would want to construct a tree like the below:

-North America
|--US
|----HTC
|------M8
|----Apple
|------iphone6
|------ipad
|--Canada
|----HTC
|------M9
|----Samsung
|------S4
|------S3
-South America
|--Argentina
|----Nokia
|------Lumia
|----Motorola
|------MotoX
|------MotoG
|--Brazil
|----Nokia
|------E
|----Samsung
|------S5
|------S3

I am trying to construct a tree using the Forest tree model as we have many roots and the structure is:

var store = new ItemFileReadStore({
url: "path"
});

var treeModel = new ForestStoreModel({
store: store,
query: {"type": "continent"},
rootId: "root",
rootLabel: "Continents"
});

var myTree = new Tree({
model: treeModel
}, "treeOne");
myTree.startup();

For some reason the tree fails to load. It has one root named "continent" and 12 children name "undefined"
Plase help me in understnading this and fixing this.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20150320/e0db66e5/attachment-0001.htm



Message: 3
Date: Sat, 21 Mar 2015 04:04:43 -0700 (MST)
From: Nauman <nauman.ullah <at> yahoo.com>
Subject: [Dojo-interest] integrating Parser Auto-Require Demonstration
Demo
To: dojo-interest <at> mail.dojotoolkit.org
Message-ID: <1426935883308-4005694.post <at> n3.nabble.com>
Content-Type: text/plain; charset=us-ascii

Hi gurus..

I am new to dojo.. I am currently building presentation layer for my rich
application.. All data is coming / going to my asp.net web api service...

I have successfully build my presentation layer with mvc pattern as
demonstrated in

http://demo.dojotutorial.org/014-mvc-form/

but as i have different pages with some common things in each like header,
footer, left panel... so i want to make all these common for all pages..

I bit explored demos and

http://demos.dojotoolkit.org/demos/parserAutoRequire/demo.html

exactly fullfill my requirement.. but unable to integrate my mvc app in this
pattern..

Can some one guide me or gives me some directions...

Regards



--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/integrating-Parser-Auto-Require-Demonstration-Demo-tp4005694.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.




Message: 4
Date: Sat, 21 Mar 2015 10:26:42 -0400
From: Jared Jurkiewicz <jared.jurkiewicz <at> gmail.com>
Subject: Re: [Dojo-interest] Dojo Forest tree model
To: dojo-interest <at> mail.dojotoolkit.org
Message-ID:
<CADdVHEqFob77mmu+2jEPypapjP7frLZDOPyOV7P7FAdm+iMhFg <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You didn't define the label property of your items. refer to the item file
read store documentation
On Mar 20, 2015 10:12 PM, "Vinodh Venkatesan" <vinodh.venkatesan <at> outlook.com>
wrote:

"items":[{"continent":"North America",
"details":{"country":"US","company":"HTC","Product":"M8"}},
{"continent":"North America",
"details":{"country":"US","company":"Apple","Product":"iphone6"}},
{"continent":"North America",
"details":{"country":"US","company":"Apple","Product":"ipad"}},
{"continent":"North America",
"details":{"country":"canada","company":"Htc","Product":"M9"}},
{"continent":"North America",
"details":{"country":"canada","company":"samsung","Product":"S4"}},
{"continent":"North America",
"details":{"country":"canada","company":"samsung","Product":"S3"}},
{"continent":"South America",
"details":{"country":"Argentina","company":"Nokia","Product":"Lumia"}},
{"continent":"South America",
"details":{"country":"Argentina","company":"motorola","Product":"Moto X"}},
{"continent":"South America",
"details":{"country":"Argentina","company":"motorola","Product":"MotoG"}},
{"continent":"South America",
"details":{"country":"Brazil","company":"Nokia","Product":"E"}},
{"continent":"South America",
"details":{"country":"Brazil","company":"samsung","Product":"S5"}},
{"continent":"South America",
"details":{"country":"Brazil","company":"samsung","Product":"S3"}}]

Suppose we have a JSON as above and we would want to construct a tree like
the below:

-North America
|--US
|----HTC
|------M8
|----Apple
|------iphone6
|------ipad
|--Canada
|----HTC
|------M9
|----Samsung
|------S4
|------S3
-South America
|--Argentina
|----Nokia
|------Lumia
|----Motorola
|------MotoX
|------MotoG
|--Brazil
|----Nokia
|------E
|----Samsung
|------S5
|------S3

I am trying to construct a tree using the Forest tree model as we have
many roots and the structure is:

var store = new ItemFileReadStore({
url: "path"
});

var treeModel = new ForestStoreModel({
store: store,
query: {"type": "continent"},
rootId: "root",
rootLabel: "Continents"
});

var myTree = new Tree({
model: treeModel
}, "treeOne");
myTree.startup();

For some reason the tree fails to load. It has one root named "continent"
and 12 children name "undefined"
Plase help me in understnading this and fixing this.


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit:
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20150321/12331528/attachment-0001.htm



________________
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest



End of Dojo-interest Digest, Vol 123, Issue 38
**********************************************
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Frédéric Fortier | 24 Mar 18:41 2015
Picon

Loader using path instead of cache

I am working in a fairly complex environment.

A vendor created a framework on top of Dojo. I am building a plug-in for it.

While I am familiar, and appreciate Dojo, working with this framework seems to increase complexity by a lot. Specifically in this case, I am trying to build my "plug-in", essentially an AMD package, in a layer file.

The framework loads Dojo, they are at 1.9. I have to register a "main" file which bootstraps the plug-in. In development, this main file requires a few of AMD modules to warm up. It looks like this: main.js => require(['myPlugin/start'], function() { start(); });. Then, the AMD loader loads any module references by myPlugin throughout the code base.

Now, I expect to be able to create a myPlugin/main layer, which would fetch myPlugin/start and any dependency under it. This is where things get ugly, the vendor framework files are huge and error out during a build, so I do not include them. Since the vendor is already loading dojo, dijit, and others, I only include dojo/dojo, myPlugin/main in the build path, I exclude dojo/dojo from the layer. I does complain a lot about missing packages, but seems to create a clean merged layer file containing only myPlugin modules.

The problem is that, even though I can see: require({cache:{ 'myPlugin/start':function(){ define... right on top of the layer file, the loader still tries to load this particular module from path. It does load other myPlugin/* modules deeper in the dependency tree correctly from the layer file, but it seems to forget this one very first myPlugin dependency. As a workaround, I can also include myPlugin/start.js source file in the webapp, and it works.

Did anyone come across something like this? I know that it is is quite convoluted so do not expect a direct fix. I am just looking for clues, as I try dozens of build variations and feel a bit stuck.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Bjoern Burger | 24 Mar 16:05 2015
Picon

Re: dijit/form/DropDownButton: Sometimes onBlur doesn´t close the DropDownButton!

Hi cmalevris,

we used an overridden _HasDropDown.js (for debugging) from dojo 1.9.1 in our
1.9.2 app.
We didn´t take notice of changes in that file in dojo 1.9.2 and didn´t merge
it.
Strangely enough there is a change in the method "_onDropDownMouseDown" that
exactly addresses our problem. See the comment from line 111/112:
// Also, don't call preventDefault() on MSPointerDown event (on IE10)
because that prevents the button 
// from getting focus, and then the focus manager doesn't know what's going
on (#17262) 

Our problem was solved after using _HasDropDown.js from dojo 1.9.2.

Kind regards, 
Bjoern 

http://www.datev.de | http://www.datev.com

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-form-DropDownButton-Sometimes-onBlur-doesn-t-close-the-DropDownButton-tp4004940p4005727.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
medesi73 | 24 Mar 08:20 2015
Picon

Avoid Caching in Dojo

How to disable caching of layer files and the html files set as href in the
Content Pane ? We want avoid all the caching in our application for xhr
calls we were able to do but how to avoid for layer files and the html files
downloaded by the ContentPane

Thanks,
Durga

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Avoid-Caching-in-Dojo-tp4005721.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


Gmane