lbowman | 24 Oct 17:42 2014
Picon

Dgrid with Pagination in Dijit Dialog

I have a dgrid with Pagination defined, and I am placing it inside of a dijit
dialog.  When the user changes the number of rows to display, I want my
dijit dialog to resize.  My dialog is currently not responding to this
request.  How do I get the dialog to resize when the page size option is
changed.  Thanks.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Dgrid-with-Pagination-in-Dijit-Dialog-tp4004050.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

voger | 23 Oct 23:42 2014
Picon

How to prevent the space while typing in ValidationTextbox?

I have a ValidationTextBox and I want to prevent the users from typing 
space. Unfortunately it doesn't work. I tried this

on(uname, 'keydown', function (e) {
     uname.set('value', uname.get('value').replace(/\s+/g, ''));
});

This removes the space but the caret remains one character further. 
there where was the space.

I also tried:

on(uname, 'keydown', function (e) {
     return e.which !== 32;
});

but ofcourse doesn't work because the event is nonblocking.
So how do I prevent <Space> in the textbox?
--

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

wfox | 23 Oct 20:41 2014

Filtering Select on iOS 8.1

I just upgrade my site to from Dojo v1.10 to v1.10.2 to get the selects and
filtering selects to function with iOS 8.1.  1.10 did not work at all with
iOS8.1 but 1.10.2 works except I noticed that the scrollable lists display
blank choices once scrolling of the list occurs in either direction.   I see
it on iPad 3, 4 and Air so I don't think it's a device issue.  Has anyone
else noticed this and is there a patch for it yet?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Filtering-Select-on-iOS-8-1-tp4004043.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

mortelee | 23 Oct 12:48 2014
Picon

Dojo build - disable source maps

Hi all

Can i also disable source map generation for a dojo build?
I couldn't find any options so far to disable creation of source maps.

Regards

Marco

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Dojo-build-disable-source-maps-tp4004040.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

wildcatcs | 23 Oct 06:28 2014
Picon

Updating DGrid tree

We are trying to add/update items in a dgrid tree using observable stores. 
This works fine until we have a fairly large number of items to update at a
time (+1000) then the UI will lockup for several seconds.  

I've tried moving to a normal Memory store and doing a refresh after the
store has been updated which fixes the problem but unfortunately the tree's
refresh does not remember scroll position making a very poor user experience
if when updating the content the tree jumps to a seemingly random scroll bar
position (bug says keep scroll position does not take into account height of
an expanded child keeping refresh from working).

Has anyone found a way to do a bulk update or pause dgrid's updates
(particularly for trees) from observable stores until the changes slow down
and remember the scroll position?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Updating-DGrid-tree-tp4004036.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

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


Gmane