airplanepeanuts | 31 Oct 17:03 2014
Picon

Selectable Legend Bug

Hi,

Pie chart with Selectable Legend and y-Value 0 not at the beginning of a
Series. Now the highlight while hovering over the legend is picking wrong
pie slices.

Ideally in this case the legend item would be crossed out. This happens
already in other chart types if the corrsponding Series is empty.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Selectable-Legend-Bug-tp4004127.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

Nebulae | 30 Oct 22:02 2014

Re: DRAG & DROP Tree nodes

Hi,

quoting the  dijit/Tree reference guide
<http://dojotoolkit.org/reference-guide/1.10/dijit/Tree.html>   :

> You can also specify custom checkAcceptance() and checkItemAcceptance() to
> accept/reject items to the tree. (The former function operates at the Tree
> level, and the latter operates per Tree node, allowing things like
> rejecting dropping items onto leaf nodes.)

You may also have a look to this previous post :
http://dojo-toolkit.33424.n3.nabble.com/disable-draggability-of-tree-node-td1360515.html

Hope this helps. Regards,

Gurvan

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DRAG-DROP-Tree-nodes-tp4004087p4004108.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 | 30 Oct 18:48 2014
Picon

Customizing css for dojo widgets within Gridx grid

I am trying to create css classes for different dojo widgets I'll use within
my gridx grid. I set the class within the decorator, but the CSS isn't
working. What do I need to do to get the CSS class applied to my buttons?

Here is my code:

CSS file:

.compactButton {
    height: 30px;
    width: 30px;
    text-align: center;
    vertical-align: middle;
    padding: 4px 4px 4px;
}

Javascript:

	    var structure = [
	                     { id: 'feedname', field: 'feedname', name: 'Feed
Name', width: '50px' },

	                     { id: 'startstop', field: 'startstop', name:
'Start/Stop',
                                widgetsInCell: true,
                                navigable: true,
                                allowEventBubble: true,
                                decorator: function(){
                                        //Generate cell widget template
string
(Continue reading)

hernangomez | 30 Oct 13:28 2014

FilteringSelect avoid Accented characters

I'm using a FilteringSelect that use an FilteringSelect as store.

I want to ignore the accented characters that users can enter, and to return
all the elements with or without accents. But i don't know what event i have
to catch.

Here's my code :

To explain better, centrosPoblado is an array that i populate as :

In 'unitario' i have store strings like 'Medellín', ' Bogotá', ....

What i want is that when a user enter medellín, the filterselect ignore and
returns 'Medellín' . So what i think i have to do it's to substitute
medellin for something like m[eé]d[eé]ll[íi]n, but i don't know where.

Thanks

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/FilteringSelect-avoid-Accented-characters-tp4004099.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
scott07 | 30 Oct 11:30 2014
Picon

Lazy loading images in a dojox.layout.ContentPane

Hi,

I am trying to work out a way of lazy loading images from within a Content
Pane.  Using code thats out there such as:

https://marcellbranco.wordpress.com/2012/10/24/dojo-lazy-loading-image-component/

Works fine to a point.  When the content is outside of a ContentPane it
works fine, when its inside a ContentPane it appears that its not possible
for it to detect the scroll event, so when you scroll down the images dont
load.  I have thought about working it with a setTimeout to go through
checking to see if the image is onscreen then setting the src (I only have a
small number of images, they are just big), but I cant find any way of
working out what is visible, does anyone have any thoughts?

Thanks

Scott

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Lazy-loading-images-in-a-dojox-layout-ContentPane-tp4004097.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

(Continue reading)

Jeff Utton | 30 Oct 00:11 2014
Picon

dijits/dojo and memory usage

Dojo experts,

I'm starting a fairly large refactor of a dojo based application based (based on dojo 1.9) using dijits for all UI controls.  We are seeing a fairly large memory foot print for our application and trying to find ways to reduce it along with the refactor.

I see three areas that could be focused on

1) A large part of the memory usage is the raw data and that is a different effort.

2) Size/amount of javascript being loaded

3) Number of Dijits being used (we have single popup FloatingPanes which 40ish dijits on them)


The first part that i'm wondering is Dijits seem to be pretty heavy compared to other UI toolkits (the dom structure for a button or text field is very large).  And the mobile widgets went with a much lighter approach.  Does anyone have any experience with replacing dijit's for another UI toolkit and saw memory improvements?  Realistically what is the memory foot print of a dijit compared to a native input or another toolkit like jqueryUI or Bootstrap? Or am i completely barking up the wrong tree in trying to see memory improvements through changing UI components?

Thanks
Jeff   

--

-- 
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 | 29 Oct 20:56 2014
Picon
Picon

Can't get my grid to show up

I have a project where I'm trying to put up a dgrid on the fly using 
some JSON data returned.  For now, I'm trying to use static data just to 
get the concept down, but its not working.  All I get is a line down the 
side of the page.  I tried to make a JSFiddle for it, but that example 
doesn't work either.

Here's the JSFiddle: http://jsfiddle.net/8m8vuar9/.

Can anyone see why the grid won't render in that example?  Once I have 
that worked out, I get move onto the initial problem of why the grid 
only shows a gray line down the left side of the screen.

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

John Daly | 29 Oct 20:36 2014
Picon

Filtering Selects, one->many relationship


Dojo List,

I'm trying to implement a one->many relationship between FilteringSelect
widgets, ie, when the index changes in the global store, the FS that is
responsible for the "many" part will change dynamicall via query.  I've tried quite
a few things but am not having success.  Thanks for any input. Code
below:

//Incident
        incidentRestStore = new JsonRest({
           target:
        "../xxx.ashx?mode=init&ent=INService&foo=bar"
        });

        incidentMemoryStore = new Memory();
        incidentStore = new Cache(incidentRestStore,incidentMemoryStore);

        incidentSelect = new FilteringSelect({
           id: "incdntFS",
           name: "incNo",
           required: false,
           labelAttr: "claimNo",
           searchAttr: "claimNo",
           store: incidentStore,
           style: "width:200px;"
        }, "INincidentDropDown");
        incidentSelect.startup();
        incidentSelect.on("change", function () {
           setIncidentInfo();
        })

        INSelect = new FilteringSelect({
           id: "INFS",
           name: "INNo",
           required: false,
           store: INStore,
           style: "width:200px;"
        }, "INDropDown");
        INSelect.startup();
        INSelect.on("change", function () {

            //assignments                   

        })

        function setIncidentInfo() {
           var record =
           incidentStore.get(dijit.byId('incdntFS').get('value'));

           dijit.byId("incident").set("value", record.id);

           request.get("../xxx.ashx?mode=init&ent=INList",
           {
              handleAs: "json"
           }).then(function (data) {
              console.log(data);
              INSelect.close();
              INSelect.set('store', data);              
              ####### this is how I'm currently attempting to set store ####
           },
        function (error) {
           // Display the error returned
           response.innerHTML = error;
        });

        }
--

-- 
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

AbrarJaleel | 29 Oct 11:28 2014

How to pass additional parameters to constraints validator methods in dojox/validate/web validate.check profile ?

I'm using "dojox/validate/web" for validating my form. 
referring to 
http://dojotoolkit.org/documentation/tutorials/1.9/validation/

My validation profile is constructed like this: 
profiler: {
                    trim: [],
                    required: [],
		    constraints: [],
                },

to be used later like  var results = validate.check(_form, profiler); 

_input.forEach(item){
   //get field specific values:
fieldName = item.name //assume it gets the field name. 
//some lines of code to get some objects named _localRef, _val, _fields  

However, I'm not sure about the below line, if I can do this
_constrCtrls[fieldName]={"validateField",_localRef, _val, _fields}
}
profiler.constraints= _constrCtrls;

So my question is, will validate.check call my 'validateField' method with
my parameters _localRef, _val,_fields ? Or how do i pass these parameters to
my 'validateField' function 
									

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-to-pass-additional-parameters-to-constraints-validator-methods-in-dojox-validate-web-validate-ch-tp4004086.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

bebooss | 28 Oct 13:37 2014

dojox/mobile/Carouse : event for knowing the current slide changed

when using dojox/mobile/Carousel 
how to know that the current Slide has been changed? i mean, is there a
event which is fired in any case of those possible ways to slide through the
slides?
cos there are:
* button PREV and NEXT (which you can see if you set navButton: true
* there is a pageIndicator, which is clickable (pageIndicator: true)
* you can drag-n-drop (touch and swipe) the slides
* and you can call something like this.currentView.goTo(1); to go to some
specific slide

so how can i handle all those situations, so that i have my function called,
after the Carousel's current Slide has changed (anyhow) ?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-mobile-Carouse-event-for-knowing-the-current-slide-changed-tp4004079.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

theinnkeeper | 27 Oct 22:01 2014

Gesture Swipe and Select Box

Hello, 
It seems that if i have a select box within a div that i have attached a
swipe listener, the select box never opens.

If i remove the listener from the parent div, it work ok again.
Is there a way to use the swipe gesture and still have the child select box
work.

I created a fiddle with example of problem::
http://jsfiddle.net/theinnkeeper/6yQ2f/6/

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Gesture-Swipe-and-Select-Box-tp4004069.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