Hoying, Ken | 22 Oct 17:59 2014

Tooltip with Ajax Content

I need to be able to get the data I need to build the tooltip content via an ajax request.  I am actually doing this with "dojox/charting/action2d/Tooltip", but I suspect that there would be a similar issue with the normal tooltip.

 

My problem is that when the tooltip is calling my function to get the content for the tooltip, I am then making my ajax call.  Obviously, this does not block so the tooltip does not end up displaying.

 

I am trying to find a solution to this.  How can I get the content for my tooltip on demand with an ajax request?

 

Any help would be greatly appreciated!

 

Thank you,

Ken

--

-- 
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
Tyson He | 22 Oct 17:02 2014

dgrid horizontal scroll bar don't display at the first time

Every dojo gurus:
   I meet a problem about dgrid horizontal scroll bar. If one dgrid need a
horizontal scroll bar , when render the dgrid at the first time , the
horizontal scroll bar can't display, but after reordering the dgrid by click
the header, then the horizontal scroll bar displayed, the vertical scroll
bar have no this problem , how can I fix this problem. Any advice will be
appreciate. Thank you in advance.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dgrid-horizontal-scroll-bar-don-t-display-at-the-first-time-tp4004031.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

Bjoern Burger | 22 Oct 08:51 2014
Picon

DOH perspective for Dojo 2.0

Hi,

we know that for Dojo 2 Intern is the testing replacement for DOH.

Referred to Dojo 2.0, will there be a period of transition with backwards
compatibility for DOH or 
will DOH be completely removed and no longer executable from that release
on?

Kind regards, 
Bjoern 

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

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/DOH-perspective-for-Dojo-2-0-tp4004025.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

Guillaume Delory | 21 Oct 14:26 2014
Picon

Adding a Layout within a DataGrid Formatter

Hello everyone,

I am struggling with something which must be really easy but I can't figure out how to return a layout in a cell formatter (which contains other widgets). I am building my layout programmatically and then I return it. It has the right sight but all its children have a size of 0 pixel.

Of course it makes sense since it is not yet attached to the dom in the formatter function and does not know its size. If I resize the browser everything afterward it works (contentpane take a normal size and the delete button is on the right). But before that the contentpane containing the text has a size of 0px and the delete button is on the left since it think the layout container has also a size of 0.

I tried set every sizes, resize everything, startup everything is different order, it doesn't work, and I would like to avoid coding style value if I can anyway.

So my question is how do you usually do that. Since dojo take care of adding the widget to the cell's dom after the function, we can't do a resize after it has been added. But I thought the datagrid would take care of resizing everything, and it seems like it does since the layout container has the size of the cell. So did I miss something and added my shild in the wrong way, which prevent dojo to resize them as well?

Thank you so much for your help, I am getting crazy on this :)

My code:

formatterPath: function(currentItemValue, rowIndex, cell){
            if (currentItemValue == ''){                           
                cell.customStyles.push("background: #FF8080"); 
            } else {
                cell.customStyles.push("background: none"); 
            }
            
            var layout  = new LayoutContainer();

            layout.set('style', 'height:20px;width:500px');
            layout.startup();
            
            var textPane = new ContentPane({
                region: "left",
                content: currentItemValue,
                class: 'gridPathContentPane',
                _destroyOnRemove: true
            });
            
            var deleteButton = new Button({
                label: "",
                region: "right",
                iconClass: "deleteButton",
                _destroyOnRemove: true,
                onClick: function(){
                    alert('delete');
                }
            });
            
            layout.addChild(textPane);
            layout.addChild(deleteButton);
            
            textPane.set('style', 'height:15px');
            deleteButton.set('style', 'height:20px;width:20px');
            
            return layout;
},
Ideally I would like to remove every set('style', '') and let dojo manage sized, but if I need to keep some that's ok.
And the code to create the grid

var layout = [
             {name: 'Class', field: 'className', width: '250px'},
             {name: 'Document', field: 'name', width: '250px'},
             {name: 'Path', field: 'filePath', formatter: this.formatterPath, width: '500px'}
         ];
         
         var store = new ItemFileWriteStore({
             data: {
                 identifier: "id",
                 items: storeData
             },
             hierarchical: false,
         });
          
         
         this.grid = new EnhancedGrid({
             id: this.id+'grid',
             store: store,
             structure: layout,
             autoWidth: true,
             autoHeight: true,
             selectionMode: 'single',
             formatterScope: this,
             plugins:{pagination:true, search:true}
         });

Thanks again!

Guillaume
--

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

Dgrid - last row gets hidden after cell edit

Hi everyone.

I've got a problem with dgrid. After edit a cell value, the grid scrolls
down and last row hides below bottom margin of the grid. This happens when
the last row is visible.

Here is an working example that illustrates the problem:
http://jsfiddle.net/svaq6Ly2/3/

Is there any way to avoid this behavior?
It is very annoying for my users, when they edit values in last row, and
after editing each cell, they must scroll the last row back to edit another
cell.

Best regards,
bogool

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Dgrid-last-row-gets-hidden-after-cell-edit-tp4004014.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 | 20 Oct 11:03 2014

dojox/mobile/Carousel: how to disable the touch-scroll functionality?

I have a dojox/mobile/Carousel which uses SwapViews to iterate through
images.
is it possible to disable the touch-scroll functionality? 
reason: in one mode i want to scroll through the images automatically (in
this mode, the user should not be able to scroll them by himself).

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-mobile-Carousel-how-to-disable-the-touch-scroll-functionality-tp4004008.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

Colin Snover | 20 Oct 00:18 2014

New Dojo releases: 1.10.2, 1.9.5, 1.8.8, 1.7.7

Hi,

New maintenance releases for the 1.10, 1.9, 1.8, and 1.7 branches are
now available from <http://downloads.dojotoolkit.org/>.

A full list of resolved issues for these releases can be found at
<https://bugs.dojotoolkit.org/query?status=closed&milestone=1.10.2&or&status=closed&milestone=1.9.5&or&status=closed&milestone=1.8.8&or&status=closed&milestone=1.7.7&col=id&col=summary&col=milestone&col=owner&col=type&col=priority&col=component&col=version&order=priority>.

Google CDN updates are pending.

Best,

-- 
Colin Snover
http://zetafleet.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

pohl | 18 Oct 09:07 2014
Picon

JsonRest and (FilteringSelect or ComboBox)

Dear Experts,

I've been reading around about JsonRest store and about to combine it as
FilteringSelect's / ComboBox's store. Yet, I still can't find the
"satisfiying" answer...

I saw something interesting as in 
http://dojo-toolkit.33424.n3.nabble.com/read-json-url-to-combobox-store-td3996093.html#a3996173
answer by user "PKHG", which explained that he used 
*ItemFileReadStore* but when I read about this *ItemFileReadStore*... it is
deprecated, and what to use for exchange then?

I myself have been trying this (within the script part):

and this is my json restful API result:

And it's not working... I've declared the 

within the HTML body

is it "weird" to combine jsonrest with combobox / filteringselect?
I've tried those "RIPStore" as dgrid's store, and it's working without any
problem... 

Any help is really appreciated, thanks

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/JsonRest-and-FilteringSelect-or-ComboBox-tp4004001.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

Peter Hoppe | 18 Oct 00:18 2014
Picon

simple example for using dojo/cache + dojo/when

I am working on a web application which requires some REST communication with a database backend. I am trying to understand the proper use of the dojo/cache component. I've looked up various documentation resources/blogs/forum posts etc., and their example code seems to disagree on what code to use. Questions:

1. Could someone point me to a 'dojo when+cache for dummies'  resource or post some very simple source code example? Or do I just use the example code from http://www.sitepen.com/blog/2013/08/27/dojo-faq-why-dont-object-stores-always-return-a-promise/ ?

2. Is there some way to implement handling of communication failure? Would I use the error callback as indicated by the documentation for dojo/when? Or is that error callback for some other purpose?

require(["dojo/when"], function(when){
  when(someValue, function(value){
    // do something when resolved
  }, function(err){    /* <---- error callback */
    // do something when rejected
  }, function(update){
    // do something on progress
  });
});






Just some details re my problem of understanding. On the sitepen blog I read:

http://www.sitepen.com/blog/2013/08/27/dojo-faq-why-dont-object-stores-always-return-a-promise/

require([
    'dojo/store/JsonRest',
    'dojo/store/Memory',
    'dojo/store/Cache',
    'dojo/when'
], function (JsonRest, Memory, Cache, when) {
    var restStore = new JsonRest({ target: '/data/' });
    var memoryStore = new Memory();
    var store = new Cache(restStore, memoryStore);
 
    when(store.get('1')).then(function (item) {
        // do something with the object whose "id" is "1"
    });
});

This example couples the call to when(...) with a call to then (...):

when(store.get('1')).then(function (item)


However, the official documentation for /dojo/when doesn't mention any 'then' construct, but some sort of code using a 'Deferred' construct which I find confusing:

http://dojotoolkit.org/reference-guide/1.10/dojo/when.html

require(["dojo/when", "dojo/Deferred", "dojo/dom", "dojo/on", "dojo/domReady!"],
function(when, Deferred, dom, on){
  function asyncProcess(){
    var deferred = new Deferred();

    setTimeout(function(){
      deferred.resolve("async");
    }, 1000);

    return deferred.promise;
  }

  function syncProcess(){
    return "sync";
  }

  function outputValue(value){
    dom.byId("output").innerHTML += "<br/>completed with value: " + value;
  }

  on(dom.byId("startButton"), "click", function(){
    when(asyncProcess(), outputValue);
    when(syncProcess(), outputValue);
  });

});

 
I also looked up some of the tutorials re dojo/when, but can't make any headway on understanding the examples.

Thank you so much for your consideration!
--

-- 
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
Rob Gillan | 17 Oct 23:59 2014

dGrid clearSelection()

Hello,

We have recently upgraded dGrid to 0.3.16 (dojo 1.10.1) and we have found that calling clearSelection() on
the grid does not clear the previous selection (as it did in previous versions of dGrid).  It's a pretty
simple pattern: if the user clicks on the grid we change containers (StackContainer).  If the user clicks a
cancel button on the second container it reverts to the grid container, and in doing so we cancel the
previous selection.  Not sure why this isn't working now.  Any ideas gladly appreciated.

Cheers
Rob

--

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

venkatesh045 | 17 Oct 16:14 2014
Picon

Unable to remove value from datefield in dojo grid

Hi,

I am using a datefield in a dojo grid like this

name:  'Date',

field: 'targetDate',

width: '25%',

cellType:dojox.grid.cells.DateTextBox ,

getValue:  formattedDate,

editable: true

I am able to see dates populated in the grid, able to change the date values
and get the values properly formatted. However when i try to remove an
existing value in the date field and try to make it empty, it does not allow
me to do so... It gives me a javascript error.. I noticed the same thing
happening in the sample documentation page

http://dojotoolkit.org/reference-guide/1.8/dojox/grid/DataGrid.html#using-a-dijit-widget-to-edit-a-date-field

Can some one explain as to how to allow blank values to be entered in the
date field of a grid.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Unable-to-remove-value-from-datefield-in-dojo-grid-tp4003990.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