Harry Devine | 17 Apr 19:36 2015
Picon
Picon

Making Dijit Buttons wider

I'm trying to make some buttons on my project to be the same size/width, but for the life of me, I can't get it to work.  I've been Googling around and everything I see say I need to override .dijitButtonNode to do it, but when I do that, my buttons still look wrong.  At this point, I'm adding style="width:250px;" in my button declaration, and even that doesn't work.  Here's what my buttons look like currently:


How can I make them all the same width?

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
Harry Devine | 16 Apr 21:38 2015
Picon
Picon

Issues populating a Dijit Tree

I have a page where I'm trying to read some data retrieved via ItemFileReadStore into a ForestStoreModel, and it's not quite working.  I read the data into the store as follows:

var store = new ItemFileReadStore({url: "servers.php"});

The data that is returned is something like this:

{"identifier":"id","numRows":43,"items":
  [{"id":"1","name":"Server 1","rack":"1","slot":"1","os":"RHEL7 64-bit","ip":"xxx.xxx.xxx.xxx","role":"Primary LDAP","kvm":"1"},
   {"id":"2","name":"Server 2","rack":"1","slot":"2","os":"RHEL 7 64-bit","ip":"xxx.xxx.xxx.xxx","role":"Builds","kvm":"2"},
   {"id":"3","name":"Server 3","rack":"2","slot":"1","os":"RHEL 7 64-bit","ip":"xxx.xxx.xxx.xxx","role":"Backup LDAP","kvm":"3"},
   {"id":"4","name":"Server 4","rack":"2","slot":"2","os":"RHEL 7 64-bit","ip":"xxx.xxx.xxx.xxx","role":"Backup Builds","kvm":"4"},
   {"id":"5","name":"Server 5","rack":"3","slot":"1","os":"Windows 2008 R2","ip":"xxx.xxx.xxx.xxx","role":"Primary DB","kvm":"5"},
   {"id":"6","name":"Server 6","rack":"3","slot":"2","os":"Windows 2008 R2","ip":"xxx.xxx.xxx.xxx","role":"Backup DB","kvm":"6"}
  ]
}

So I'm trying to set up 3 ForestStoreModel objects, 1 per "rack" above, and create each tree (there are 3 similar definitions, but I'll show the first 1 for brevity):

var treeRack1Model = new ForestStoreModel ({
  store: store,
  query: {"rack": "1"},
  rootId: "root",
  rootLabel: "Rack 1",
  childrenAttrs: ["name"]
});

var treeRack1  = new Tree({
  model: treeRack1Model
},"rack1");
treeRack1.startup();

The Trees show up, the labels are right ("Rack 1", "Rack 2", etc.), and the number of items match (2 items under root), but their labels say Undefined, and if I try to expand them, I get the error "Uncaught Error: dojo.data.ItemFileReadStore: Invalid item argument." in Firebug.  I'd like to expand on the server name, and have it show the other information underneath as children (slot, os, ip, role, kvm).

Any ideas?
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
George Sexton | 15 Apr 23:18 2015

Copy/Paste in Mobile Scrollable View

I have a web site using dojo that you can see here:

http://www.mhsoftware.com/caldemo/ViewMobile.html

If you select an event by clicking on it, the details are presented in a ScrollableView. What I'm getting reported to me is that the content in the ScrollableView can't be marked for copy/paste. I've tested this on an iPhone 6 running iOS 8.3, and on the current version of Firefox. It's strange, but text is not selectable.

you can also see the issue on the Dojo Mobile Flicker View tutorial here:

http://dojotoolkit.org/documentation/tutorials/1.10/mobile/flickrview/part2/demo/mockup2.html

I'm using Dojo 1.10.1. I looked through the bug logs for issues closed in 1.10.2-1.10.4 and didn't see anything that looked related.

Can anyone help me understand what I'm doing wrong? This is kind of upsetting my users because they want to be able to copy and paste the text and send it view SMS message.


--
George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.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
angeagu | 14 Apr 15:22 2015
Picon

dgrid inside ContentPane - Error in scrolling

Hi all,

I have a problem with dgrid.... I have an AccordionContainer, and in each
ContentPane of it,
I place a dgrid. The problems with the dgrid are:
1- Error with scroll: when scrolling down, in certain moment the scroll
"skips" and jumps into the end and there's no way to scroll up and show the
first records.
(I have seen in Firebug the error TypeError: grid._rows is null when the
scroll fails).
2- Trying to change a value: sounds like no dgrid-datachange event is
emitted,
no way to capture the event after editing a value.

I think these errors has to do with having dgrid inside layouts (dgrid
inside ContentPane, inside AccordionContainer). I also included the
DijitRegistry extension but even with this extensions I can't get
rid of this errors.
I have prepared this fiddle which reproduces the errors:
https://jsfiddle.net/9ax3q9jw/5/

Any help will be appreciated,
Thanks,
Angel.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dgrid-inside-ContentPane-Error-in-scrolling-tp4005897.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

Koren, Bradley | 14 Apr 14:16 2015

How to automatically expand/contract ExpandoPane

Hello,

 

I’m using a dojox/layout/ExpandoPane.

 

Is there a way for the pane to automatically be explanded when the mouse is place over it? And then when the mouse moves away from it the pane is automatically minimized?

 

Thanks.



This County of Chester e-mail message, including any attachments, is intended for the sole use of the individual(s) and entity(ies) to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone this e-mail message including any attachments, or any information contained in this e-mail message including any attachments. If you have received this e-mail message in error, please immediately notify the sender by reply e-mail and delete the message. Thank you very much.
--

-- 
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
vinay b | 14 Apr 12:06 2015
Picon

Regarding BUg 16945

HI All ,

I am facing this issue in our application . I have a tabconatiner which has
to tabs both are content pane . The title of those are changed to true/false
. I  do have anchor tag displayed with the contents of this content page and
tried to change them to span tag but not help.Can any body let me know if
there is any solution to this  problem. 
I am using dojo 1.8.3

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Regarding-BUg-16945-tp4005893.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 | 14 Apr 12:00 2015
Picon

How to use/deploy of 3rd-party dojo widgets?

Hi,

we have an web site which contains a SPA application made with dojo and its building blocks.
In the upper area of this web site we want to use a 3rd-party dojo widget.

Now we have several questions to implement this scenario:
  1. What procedure must the provider of the 3rd-party widget consider to deploy the widget, so the consumer doesn´t have to know about the dojo version within the widget?
  2. What are the possible ways to deploy a 3rd-party widget (which includes its own dojo version)?
  3. Is the consumer of the widget forced to use dojo by himself, using own dojo config and loader?
  4. In case of the consumer uses for example dojo version 1.9.2 for his SPA, which consequences rises when
    • consumer and 3rd-party widget use the same dojo version?
    • consumer and 3rd-party widget use different dojo versions, e.g. 1.10.4?

Thanks for your help in advance.

Kind regards,
Bjoern

http://www.datev.de | http://www.datev.com
View this message in context: How to use/deploy of 3rd-party dojo widgets?
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
gstowe | 13 Apr 15:38 2015

Changing DataGrid store while previous store fetch is still being processed shows previous data

My application allows the user to switch quickly between a list of things,
each of which corresponds to a different set of data in a DataGrid. (This
isn't the application, but for simplicity, picture a list of directories in
a file manager on the left side, with a grid on the right. When you click on
a directory, the file info changes on the right hand side (the grid))

The problem I'm having is that if I switch quickly between two data sets, so
that the previous fetch is still in progress when I start a new one, the
data in the grid reflects the previous selection when the new selection
finishes fetching. The XHR requests to set the new store happen, but they do
not get processed into the grid.

This is what I'm doing when a new selection happens:

grid.store.close();
store = new dojo.data.ItemFileWriteStore({ url: '[my store]'});					
grid.setStore(store,null, null);
grid.selection.clear();
grid._refresh();

How can I cancel all pending events on the grid to I can start clean?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Changing-DataGrid-store-while-previous-store-fetch-is-still-being-processed-shows-previous-data-tp4005889.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

tsemachh | 12 Apr 16:32 2015
Picon

Re: how to get hidden column value in another decorater

Use some class which shows that as a link
and use Event on Click on a Cell to activate the onclick from the item

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/how-to-get-hidden-column-value-in-another-decorater-tp4005883p4005886.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 | 10 Apr 07:34 2015
Picon

dijit/form/Select: Focus event doesn´t fire

Hi,

we use a dijit/form/Select and connect it using dojo/on to handle events
like onBlur and onFocus. Used dojo version is 1.9.2.
The blur event always fires when leaving the control.
But when the control is selected by Tab, Shift + Tab or Click, the focus
event doesn´t fire.
We expected that the focus event fires when the control is selected.

You can reproduce it with this code:

What is the default behaviour of dijit/form/Select referred to focus event?

Thanks for your help in advance.

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-Select-Focus-event-doesn-t-fire-tp4005872.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 | 9 Apr 20:57 2015
Picon
Picon

Set grid store and columns in a dijit/Dialog

I want to have a grid show up in a dijit/Dialog when I perform some operation.  The data for the store that I want to use is dynamic and won't be know until just before its displayed.  Currently, I'm trying to set the store at runtime and I'm getting an error that says "Undefined is not a function".  Here's what I'm doing:

1) Setting up a dijit/Dialog in my PHP file:

<div data-dojo-type="dijit/Dialog" id="groupMemberDlg" data-dojo-id="groupmemberDlg">
  <div id="groupMemberHeading"></div>
  <div data-dojo-type="dgrid/Grid" id="groupMemberGrid"></div>
</div>

2) In my javascript code when I get my data returned as a json object:

  var memberStore = new Memory({data: data.groups});
  var columns = ({col1: "Group"});
  dom.byId("groupMemberHeading").innerHTML = "Group Membership for " + uid'
  dom.byId("groupMemberGrid").set("store", memberStore);                    <---------------------------- Error is here!!!!
  registry.byId("groupMemberDlg").show();


It doesn't matter if I use registry.byId or dom.byId, I get the same result.  So how do I access the grid with ID groupMemberGrid so I can set the column structure and store at run time?

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

Gmane