June 23rd, 2011 – by Torrey Rice

Today we continue our series of Dojo Tutorials with a look at creating Template-based Widgets!
Events, Variables, Attach Points and more
In this tutorial, you’ll learn about the importance of Dijit’s _Templated mixin, and how to use templates to quickly create your own custom widgets.
Check it out!
Want to learn more? Check out the tutorial.
Want to see a specific Tutorial? Want to Learn More?
Is there something you’d like to learn how to do with Dojo? Always wanted to know how something in Dojo works? Leave us a message in the blog comments and we’ll see about getting a tutorial created for you. Or sign-up for an upcoming SitePen Dojo Workshop to get a fully immersive hands-on experience with Dojo.
Posted in Tutorials | 1 Comment
June 14th, 2011 – by Kris Zyp
As a part of our Free Dojo Support initiative, we received the following question about serialization dates from forms to JSON:
The Question
“In working with dojo.toJson(), I stumbled upon a peculiarity, perhaps a bug. Using the dijit.form.DateTextBox, selecting a valid date, calling frmX.get(“value”) shows that everything is fine. But using this value and calling dojo.toJson( frmX.get(“value”)) always delivers an empty object {}. Debugging the code I saw the problem: Date is an Object, but has no serialization (at least with chrome). So I tried something like this:
if (xyz.isDate(it)) {
var dateString = dojo.date.locale.format(it, {formatLength: “long”, selector: “date”, datePattern: ‘dd.MM.yyyy’});
return dojo._escapeString(dateString);
}
Am I doing something wrong with getting the values of a form and serializing it to JSON? Did I miss a dojo function for dates (dojo.isDate(object)) and would it be correct to ask the proto object whether it is a ‘Date’?”
Continue reading
Posted in Dojo, Support | No Comments
June 2nd, 2011 – by sfoster
As a part of our Free Dojo Support initiative, we received the following question from Jiho Han about using Dojo’s DataGrid component.
The Question
“The typical configuration for me is to have two views where the view on the left is “frozen” and the second view on the right scrolls horizontally. Currently I’m running into an issue where the header and data cell heights are rendered differently between the views”
Our Answer
Let’s look at how the DataGrid handles variable height of column headers and cell contents, where the gotchas are and how to resolve them.
Continue reading
Tags: datagrid, grid
Posted in Dojo, Support | 1 Comment
June 1st, 2011 – by Torrey Rice

No longer just for hypothetical businesses, today we continue our series of Dojo Tutorials with Understanding _Widget!
Widgets: Better than a doodad
In this tutorial, you’ll learn what Dijit’s _Widget and_WidgetBase objects are and how they serve as the foundation for all widgets in the Dojo Toolkit.
Check it out!
Want to learn more? Check out the tutorial.
Want to see a specific Tutorial? Want to Learn More?
Is there something you’d like to learn how to do with Dojo? Always wanted to know how something in Dojo works? Leave us a message in the blog comments and we’ll see about getting a tutorial created for you. Or sign-up for an upcoming SitePen Dojo Workshop to get a fully immersive hands-on experience with Dojo.
Posted in News, Tutorials | No Comments