[Dojo-interest] Putting a Dgrid inside a TabContainer

Kenneth G. Franqueiro kgf at dojotoolkit.org
Tue May 29 20:01:19 EDT 2012

Try also mixing in the DijitRegistry extension into your grid
constructor (right now I only see you mixing ColumnHider into
OnDemandGrid).  That extension will register dgrid instances with the
dijit registry - which will effectively cause them to be detected as
children according to dijit/_WidgetBase's getChildren implementation.

Also, a couple of other pointers:

* start your page with a doctype declaration, for example HTML5's
<!DOCTYPE html> - without a doctype, you're throwing browsers into
quirks mode, which will be especially painful in the case of IE, since
it basically throws you back to the stone age of 5.5.

* If you're going to rely on xstyle, you can pass it package-relative
paths to shorten your code a bit and make it more maintainable, e.g.
instead of "xstyle/css!/js/dojo/...", simply "xstyle/css!dojo/..."

* dgrid will already load dgrid/css/dgrid.css via xstyle if it needs to.
 However, you could potentially opt for using link tags and loading
these stylesheets up front yourself instead, for performance reasons.


On 5/29/2012 2:17 PM, Pierre Tardy wrote:
> Hello,
> I've been scraching my head today on the best way to put dgrid inside a
> tab container.
> I end up with a small PoC:
> http://tardyp.free.fr/dgrid/dgrid_tabs.html 
> It looks pretty good, except for IE8 :-(
> The scroll bar will not be setup properly until I hide then show one
> column, with the little "+" widget.
> Also, once the column is shown again, the header will not resize
> properly ( this bug is for all browser)
> Am I using the framework correctly?
> If yes, where shall I put bug reports for those issues?
> Very nice design anyway..
> Regards,
> Pierre
> ________________________________________________________
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

More information about the Dojo-interest mailing list