23 Jan 2012 7:06 AM #1
Extjs Tree Grid using Ext.ux.tree.TreeGrid
I am using 'Ext.ux.tree.TreeGrid' and creating new tree grid for my application.
But,I facing a problem to show an empty message for this tree grid.
I wanna to show a message to user if 'Loader' doesn't return any value for tree,then it show a message that
'This product doesn't have any value '.
But,Tree grid doesn't have any config property for it.
Also,I'm not able to get Loader size.[For Loader I'm using 'Ext.tree.TreeLoader' and we get data from JSON]
Please,Suggest me how to show a message if JSON doesn't have any value.
23 Jan 2012 9:49 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You can add a node to your root node and style it the way you want to to say there are no results.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
6 Feb 2012 3:20 AM #3
Thanks,It's working fine now.