hydr0san | 30 Jul 23:23 2014
Picon

dgrid dynamic columns and array data

i have a object model that has nested set of data. using JSTL i can
dynamically generate the columns for the dgrid, however, i cannot figure out
how to for each record map a column to an array entry.

{
 name: blah
 data: [
     {
      period: 2014
      value: 101021
      }....

     ]

trying something like this
{label: '2014', style: 'width: 95px;' ,field: "data[0].value", sortable:
false},

but i don't get any data out...is there some syntatic sugar i am missing ?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dgrid-dynamic-columns-and-array-data-tp4003162.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)

Harry%20Devine | 30 Jul 14:43 2014
Picon
Picon

Adjust time increments in a TimeTextBox

Is it possible to have the TimeTextBox show the times in 5 or 10 minute increments instead of the default 15 minutes?  I saw clickableIncrement and visibleIncrement in the documentation (http://dojotoolkit.org/reference-guide/1.10/dijit/form/TimeTextBox.html#dijit-form-timetextbox), but when I used that the times still showed in 15 minute increments.

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
bebooss | 30 Jul 12:56 2014

two dojox/mobile/ScrollablePane next to each other

how can i place two (or more) dojox/mobile/ScrollablePane's next to each
other?

i tried using a table

<div data-dojo-type="dojox/mobile/ScrollablePane">some content</div>
<div data-dojo-type="dojox/mobile/ScrollablePane">some content</div>

but the second one is not showing.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/two-dojox-mobile-ScrollablePane-next-to-each-other-tp4003158.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

lbowman@usgs.gov | 29 Jul 18:55 2014
Picon

GridX vs dgrid mobile capability

I am wondering what the support is for mobile capability on GridX and dgrid. 
Our client wants a user to be able to use their Grid in a mobile browser. 
It's not even going to be an app.  Will both of these grids be usable on
mobile browsers from phones to tablets?  Their main use case for this
application is on the desktop.

Thanks,

Lisa

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/GridX-vs-dgrid-mobile-capability-tp4003154.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

adriana-le | 29 Jul 17:26 2014
Picon

Gridx tree filter by children issue

Hello, 

I have a problem with my gridx filtering by children. I know that gridx
filtering doesn't work on children, so I manually remove them the store with
grid.store.remove(childId) and then run grid.body.refresh() to update the
gridx; but, when I try to reset the filtering (so old children should be
displayed as they were in the first time) it doesn't work. This is what I
try:

grid.model.clearCache();
grid.model.store.setData(data); // data I had before filtering
grid.body.refresh(); // when I run this the child I removed earlier appears
in the place it was at the beginning but the child on the last rowIndex
disappears

do you have any ideas why it happens?

thanks,

Adriana

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Gridx-tree-filter-by-children-issue-tp4003153.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

tod df | 29 Jul 12:24 2014
Picon

dojo gridx - how to remove an indirectSelect column in my inherited grid


I have a parent gridx which has a radio button column for row selection
(indirectSelect module).

I'm creating a new gridx which inherits the parent gridx but it should not
have a selection column.

How do i configure the child grid to remove the selection column?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojo-gridx-how-to-remove-an-indirectSelect-column-in-my-inherited-grid-tp4003150.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

bartonjd | 29 Jul 01:29 2014
Picon

Dojo and Mobiscroll Widget

I would really like to use the mobiscroll ui widget in my dojo mobile app
however I am getting a:
"TypeError: $(...).mobiscroll is not a function" error. Has anyone else
attempted this?

If anyone wants to take a look:
https://climate-dev-josh.usurf.usu.edu/BETA/Dev/

Just click on the floating text box with the magnifier to try and trigger
the widget... It fails but it shouldn't

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Dojo-and-Mobiscroll-Widget-tp4003143.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

brams | 28 Jul 22:00 2014
Picon

dojox.widget.Wizard buttons with right-to-left languages

With right-to-left languages, the dojox.widget.Wizard buttons appear on the
right but they should appear on the left.  Is this a bug?  Is there a
workaround?

<http://dojo-toolkit.33424.n3.nabble.com/file/n4003141/Arabic_dojox.jpg> 

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dojox-widget-Wizard-buttons-with-right-to-left-languages-tp4003141.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

Rahul Sharma | 28 Jul 01:00 2014
Picon

dgrid declarative vs programmatic

Hi All ,

This could be a subjective question but need your suggestions.

1. What is the better way to implement dgrid declarative or programmatic
2. I have achieved filtering / selection features using programmatic way , can same be done using declarative way , if yes could you please point out the source to look into
3. From performance and maintenance perspective which way you suggest?

Thanks.
--

-- 
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
richwingerter | 27 Jul 05:17 2014
Picon

No background for Calendar widget

I have a digit/form/DateTextBox on a form. When I click the dropdown, I get a
calendar widget with no background. Where do I find the formatting for the
calendar widget. It looks like this:

<http://dojo-toolkit.33424.n3.nabble.com/file/n4003133/CalendarWOBackground.jpg> 

I included digit/Calendar in the require (along with
digit/form/DateTextBox). I also included claro.css.

Is there a way to test that the proper formatting is loading?

Thanks for your help!

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/No-background-for-Calendar-widget-tp4003133.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

abstract | 27 Jul 04:17 2014
Picon

Time axis ticks there time in seconds/milliseconds UTC. (dojox/charting)

Hi! Im from Russia and my timezoneoffset is -4. I have history data sended my
by server like {"x":1406422445,"y":4} there x - Timestamp in seconds UTC.
And there is all right, but one thing make my terrible unhappy . Then i use 
majorTimeticks or minorTimeTicks and also  "dojox/charting/plot2d/Grid" i
have day ticks with major/minorTickStep=86400 (secons in day) with 4 hour
offset.  How can i get major/minorTicks in 0:00 of every new day?
Here is my code:
//Отрисовка графиков

function renderChart(divId,data){
	
	require([
	         "dojox/charting/Chart",
	         "dojox/charting/themes/Claro",
	         "dojox/charting/plot2d/StackedAreas",
	         "dojox/charting/plot2d/Markers",
	         "dojox/charting/plot2d/Grid",
	         "dojox/charting/axis2d/Default",
	         "dojox/charting/action2d/Tooltip",
	         //"dojox/charting/widget/Legend",
	         "dojox/charting/action2d/Magnify",
	      
	         // Wait until the DOM is ready
	         "dojo/domReady!"
	     ], function(Chart,
theme,StackedAreas,Markers,Grid,Default,Tooltip,Magnify) {
	     	 // Define the data
	         var chart = new Chart(divId,{
	        	 title:data.item_name,
	        	 titlePos:"top",
	        	 titleGap:25
	         });
	         
	        
	         chart.setTheme(theme);
	         chart.addPlot("default", {
	             type: StackedAreas,
	            /* fill:"#34495c",*/
	             markers: false
	         });
	         
	        chart.addPlot("grid", {type:"Grid", 
	        					   hMajorLines:true,
	        					   vMajorLines: true,
	        					   majorHLine: { color: "gray", width: 1,style: "LongDash" },
	        					   majorVLine: { color: "gray", width: 1,style: "LongDash" },
	        					   hMinorLines:false,
	        					   vMinorLines:true,
	        					   minorHLine: { color: "gray",style: "ShortDash", width: 0.5
},
	        					   minorVLine: { color: "gray",style: "ShortDash", width: 0.5
}
	        					   
	        					   });
	        var tip=new Tooltip(chart, "default", {
	            text: function(o){
	            	if(data.valuemapid=="0"){
	            			return "t="+fromMsToTime(o.x)+"; " +
	                		"f(t)="+o.y+data.y_axis_name;
	             	}else{
	             		var map=data.valuemapping.map;
        	 			for(var i=0;i<map.length;i++){
        	 				if (map[i].val==o.y) {
        	 					return "t="+fromMsToTime(o.x)+"; " +
        	 					"f(t)="+map[i].mapped+data.y_axis_name;}
        	 			}
	             			
	             	};
	            }
	          });
	         var magnify=new dojox.charting.action2d.Magnify(chart,"default");
	         
	        
addOrChangeTimeAxis(chart,data.history[data.history.length-1].x-data.history[0].x);//x-Axis
	         
	         if(data.valuemapid=="0"){//y-Axis
	        	 
chart.addAxis("y",{vertical:true,title:data.y_axis_name,titleOrientation:"axis",fixLower:"minor",fixUpper:"major"});
	         }else{
	        	 
chart.addAxis("y",{vertical:true,title:data.y_axis_name,titleOrientation:"axis",min:data.valuemapping.min-0.3,max:data.valuemapping.max+0.3,
	        	 		labelFunc:function(y){
	        	 			var map=data.valuemapping.map;
	        	 			for(var i=0;i<map.length;i++){
	        	 				if (map[i].val==y) return map[i].mapped
	        	 			}
	        	 			return " ";
	        	 		}
	        	 	});
	         }
	         chart.addSeries("series#"+data.item_id,data.history);
	         chart.setAxisWindow("y",1,1);
	         chart.render();
	         chartObjcts.push({id:divId,obj:chart});
	     });
}
//Ticks convertation UTC in seconds to redable format.
function fromMsToTimeTick(t){
	var d=new Date(t*1000);
	//return d.toLocaleDateString()+" "+d.toLocaleTimeString();
	var dd=d.getDate();
	if(dd<10){dd="0"+dd;};
	var mm=d.getMonth()+1;
	if(mm<10){mm="0"+mm;};
	var yyyy=d.getFullYear();
	var hh=d.getHours();
	var min=d.getMinutes();
	if(min<10){min="0"+min;};
	var ss=d.getSeconds();
	if(ss<10){ss="0"+ss;};

if((d.getSeconds()==0)&&(d.getMinutes()==0)&&(d.getHours()==0)&&(d.getDay()==1)){//месяц
		return yyyy+"."+mm+"."+dd+" "+hh+":"+min;
	}else
if((d.getSeconds()==0)&&(d.getMinutes()==0)&&(d.getHours()==0)){//день
		return dd+"."+mm+" "+hh+":"+min;
	}else if((d.getSeconds()==0)&&(d.getMinutes()==0)){//час
		return hh+":"+min
	}else if(d.getSeconds()==0){//минута
		return min;
	}
	return dd+"."+mm+"."+yyyy+" "+hh+":"+min+":"+ss;//на всякий случай работать
не должно все равно.
}
//Convert UTC in sec in readable format.
function fromMsToTime(t){
	var d=new Date(t*1000);
	//return d.toLocaleDateString()+" "+d.toLocaleTimeString();
	var dd=d.getDate();
	if(dd<10){dd="0"+dd;};
	var mm=d.getMonth()+1;
	if(mm<10){mm="0"+mm;};
	var yyyy=d.getFullYear();
	var hh=d.getHours();
	var min=d.getMinutes();
	if(min<10){min="0"+min;};
	var ss=d.getSeconds();
	if(ss<10){ss="0"+ss;};
	return dd+"."+mm+"."+yyyy+" "+hh+":"+min+":"+ss;
}
//Послать запрос на получение данных
function sendReq(node){

require(["dijit/registry","dojo/date/stamp","dijit/form/TimeTextBox","dojo/domReady!"],function(registry,stamp,timeTextBox){
		var id_group=node.id.replace("select_","");
		//отрисовать бублик
		getStandBy(id_group).show();
		
		var start_date=registry.byId("start_date_"+id_group).value;
		var start_time=registry.byId("start_time_"+id_group).value;
		var start_stamp=start_date;
		start_stamp.setHours(start_time.getHours(),
start_time.getMinutes(),start_time.getSeconds(),0);
		console.info("Начальная дата:"+start_date);
		console.info("Начальное время:"+start_time);
		console.info("Начальная метка времени:"+start_stamp);
		
		var end_date=registry.byId("end_date_"+id_group).value;
		var end_time=registry.byId("end_time_"+id_group).value;
		var end_stamp=end_date;
		end_stamp.setHours(end_time.getHours(),
end_time.getMinutes(),end_time.getSeconds(),0);
		//alert(end_stamp);
		console.info("Конечная дата:"+end_date);
		console.info("Конечное время:"+end_time);
		console.info("Конечная метка времени:"+end_stamp);
		//делаем запрос
	
getChart(url,ticket,start_stamp.getTime()/1000,end_stamp.getTime()/1000,id_group);
	});
	
} 
//отрисовывает чарт по конкретному массиву
function rendReqChart(data,id){
	var obj=data[0];

require(["dojox/charting/Series","dojox/charting/Chart","dojox/charting/widget/Chart","dojo/dom","dijit/registry","dojo/domReady!"],function(Ser,Chart,Wchart,dom,registry){
		var chart=null;
		for(var i=0;i<chartObjcts.length;i++){
			if (id==chartObjcts[i].id.replace("chart_","")){
				chart=chartObjcts[i].obj;
			}
		}
		chart.updateSeries("series#"+id,data);
//----------------------------------------------------------------------------
		addOrChangeTimeAxis(chart,data[data.length-1].x-data[0].x);

//----------------------------------------------------------------------------

		chart.render();
		getStandBy(id).hide();
		
	});
	//renderChart(obj.item_id,obj.history);
}
/**
 * Производит отрисовку/коррекцию оси времени в
зависимости от масштаба
интервала времени
 * chart - объект dojo Chart
 * intervalLen - длина интервала в секундах
 */
function addOrChangeTimeAxis(chart,intervalLen){
	var kwArg={};
	var day_step=86400;
	if(intervalLen<=5400){//intervalLen in [0;1.5ч]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
		    	majorTicks:true,
		     	majorLabel:true,
		     	majorTickStep:1800,
		     	
		     	minorTicks:true,
		     	minorLabel:true,
		     	minorTickStep:60,
		     	
		     	microTicks:true,
		     	microTickStep:1
		     };
	}else if (intervalLen<=25200){// intervalLen in [1.5ч,7часов]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
		    	majorTicks:true,
		     	majorLabel:true,
		     	majorTickStep:day_step,
		     	
		     	minorTicks:true,
		     	minorLabel:true,
		     	minorTickStep:300,
		     	
		     	microTicks:true,
		     	microTickStep:60
		     	
		     };
	}else if (intervalLen<=81000){// intervalLen in [7ч,22:30ч]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
		    	majorTicks:true,
		     	majorLabel:true,
		     	majorTickStep:day_step,
		     	
		     	minorTicks:true,
		     	minorLabel:true,
		     	minorTickStep:900
		     	
		     };
	}else if (intervalLen<=162000){// intervalLen in [23ч,2дня 21 час]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
		    	majorTicks:true,
		     	majorLabel:true,
		     	majorTickStep:day_step,
		     	
		     	minorTicks:true,
		     	minorLabel:true,
		     	minorTickStep:1800
		     	
		     };
	}else if (intervalLen<=291600){// intervalLen in [2дня 21 час,3дня +9ч]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
		    	majorTicks:true,
		     	majorLabel:true,
		     	majorTickStep:day_step,
		     	
		     	minorTicks:true,
		     	minorLabel:true,
		     	minorTickStep:3600
		     	
		     };
	}else if (intervalLen<=(6*24*60*60)){// intervalLen in [3дня +9ч,6дней]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
			    majorTicks:true,
			    majorLabel:true,
			    majorTickStep:day_step,
			     	
			    minorTicks:true,
			    minorLabel:true,
			    minorTickStep:7200
			     	
			 };	
	}else if (intervalLen<=(10*24*60*60)){// intervalLen in [6дней,10дней]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
			    majorTicks:true,
			    majorLabel:true,
			    majorTickStep:day_step,
			     	
			    minorTicks:true,
			    minorLabel:true,
			    minorTickStep:14400
			     	
			 };	
	}else if (intervalLen<=(14*24*60*60)){// intervalLen in [10дней,12дней]
	
kwArg={title:'время,t',titleOrientation:"away",natural:true,labelFunc:fromMsToTimeTick,rotation:270,
				majorTicks:true,
				majorLabel:true,
				majorTickStep:day_step,
				     	
				minorTicks:true,
				minorLabel:true,
				minorTickStep:21600
				     	
				 };		
	}else if (intervalLen<=2629743){// intervalLen in [7дней,1месяц]
		
	}else if (intervalLen<=2629743){// intervalLen in [1месяц,1 год]
		
	}
		
	chart.addAxis("x",kwArg);
}
/**
 * Производит отрисовку/коррекцию сетки
направляющих в зависимости от
масштаба интервала времени
 * chart - объект dojo Chart
 * intervalLen - длина интервала в секундах
 */
function addOrChangeGrid(chart){
	chart.addPlot("grid", {type:"Grid", 
		   hMajorLines:true,
		   vMajorLines: true,
		   majorHLine: { color: "red", width: 1,style: "LongDash" },
		   majorVLine: { color: "gray", width: 1,style: "LongDash" },
		   hMinorLines:false,
		   vMinorLines:true,
		   minorHLine: { color: "gray",style: "ShortDash", width: 0.5 },
		   minorVLine: { color: "gray",style: "ShortDash", width: 0.5 }
		   
		   });
}

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Time-axis-ticks-there-time-in-seconds-milliseconds-UTC-dojox-charting-tp4003132.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