Hi every body I need a simple example about grid with using a group option, my need is to create a grid a get data from database with data store, the data is grouped, lets say that we have a table where we have all student information, an student are grouped by classes, I need to show the every class and all its students than the second class, and go on ...
THANKS of all.
Also review here
http://extjs.com/deploy/dev/docs/?class=Ext.grid.GroupingView
LIGHTING DESIGN - Internal Lighting Calculations:: To calculate light levels, select the Lighting Levels option in the Calculate Grid button in the Analysis Grid panel) and select one of the skylights. by selecting the Electric Light Levels option in the Grid Settings group. http://www.squ1.com/archive/ecotect/tutorials/lighting-intro.htmHOME
"c-4","g"=>"1","gn"=>"name1"),
array("A"=>"a-5","B"=>"b-5","C"=>"c-5","g"=>"2","gn"=>"name2"),
array("A"=>"a-6","B"=>"b-6","C"=>"c-6","g"=>"2","gn"=>"name2"),
array("A"=>"a-7","B"=>"b-7","C"=>"c-7","g"=>"3","gn"=>"name3"),
array("A"=>"a-8","B"=>"b-8","C"=>"c-8","g"=>"3","gn"=>"name3"),
array("A"=>"a-9","B"=>"b-9","C"=>"c-9","g"=>"3","gn"=>"name3"),
array("A"=>"a-0","B"=>"b-0","C"=>"c-0","g"=>"4","gn"=>"name4")
);
echo '({"total":"10","results":'.json_encode($data).'})';
?>
this is my server side that give me the data that I show in my grid
Test
and this my index.php side
I need that the gride shows somthing like :
name1
a-1 b-1 ...
a-2 b-2 ...
a-3 ...
....
name2
a-5 ...
... and go on
I will thanks a lot
yes but it not giving what I wan, and it's not easy to quickly understand
Understanding Scope and Managed Beans - NetBeans IDE 6.5 Tutorial:: Oct 22, 2008 The workaround is to place the Button component in a layout component (Grid Panel, Group Panel, or Layout Panel). http://netbeans.org/kb/65/web/scopes.htmlHOME
solussd:::: or ; (at your option) any later version. ; ; This program is distributed in the hope . sim-grid panel) clear-button (clear-grid-button sim-grid panel) . Face and eye detection in a group of people. More face and eye detection http://www.solussd.com/HOME
Easiest is to just look in my signature
Did you look in the demos and tutorials section?
Also, you could search the forums for further help. But if you have a grid working with JsonStore, there's about all of 3 lines to change to have it working for a grouping store.
Ok, so looks like you have 1 of the 3 required lines you'll need.
Now just look at this example:
examples/grid/grouping.js
And scan that file for "group". Also look at http://extjs.com/deploy/dev/docs/?class=Ext.data.GroupingStore to see the configs available and what the ones in that example are doing.
This is how I learned it, I didn't have a 'tutorial' either.
OK thanks a lot mjlecomte, I will do it as you say and I will see what happened, thanks again (if I need more help I will put here)
can you please give me the links to the tutorial that you talked about
I'm not sure what more you want. There is a demo that shows a grouping example. There is also a tutorial on grids that shows grouping in that grid as well.
Suggest you post your code for what you have tried so you can get further help. If you show the initiative generally someone will help.