[Dojo-interest] dijit.tree from database
Siqi
siqi.zhong at gmail.com
Sun Aug 21 23:57:25 EDT 2011
davorin wrote:
>
> Evnin'....
>
> I searched around for some examples of using a database for generating a
> dijit.tree menu...
>
> I know I can pass an url to dojo.data.ItemFileReadStore which then fetches
> the menu data from the server...
>
> But what I don't see is how to limit the fetched data to just the menu
> items visible...so I don't need to generate the json data for all menu
> items which might be chosen...
>
> As for now I'm generating a tree menu just by raw PHP and some CSS which
> just sends the menu to the browser what is needed...and if an item is
> expanded..it fetches additionally the items for the newly expanded item...
>
> Also I'm not quite sure how the performance of dijit.tree is for let's say
> two hundred visible items...
>
>
> thanx in advance
> richard
>
Hi Evnin,
I think you can try to set 'deferItemLoadingUntilExpand' to true and use
server side store such as dojox.data.JsonRestStore for the dijit.Tree
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dijit-tree-from-database-tp3268587p3274007.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
More information about the Dojo-interest
mailing list