GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Search:  
NAVIGATION - HOME

GridPanel with grouping option

Published by: rose 2010-03-16
  • 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


  • this is an example of what I want to do :

    $data = array(array("A"=>"a-1","B"=>"b-1","C"=>"c-1","g"=>"1","gn"=>"name1"),
    array("A"=>"a-2","B"=>"b-2","C"=>"c-2","g"=>"1","gn"=>"name1"),
    array("A"=>"a-3","B"=>"b-3","C"=>"c-3","g"=>"1","gn"=>"name1"),
    array("A"=>"a-4","B"=>"b-4","C"=>
    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.htm
    HOME
    "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.html
    HOME
    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.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks
    You are looking at:gigj.com's GridPanel with grouping option, click gigj.com to home
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about GridPanel with grouping option , Please add it free.
  • 4 h presentation ideas please help
  • how do you get smoother flying lead changes
  • what do you think of my new horse
  • what are some good lunging exercises for a hunter jumper
  • do you think theses horses are cute
  • ever heard of a cold backed horse
  • what is you best timed in
  • i need help finding a good saddle
  • can anyone help me find a horse bought at napoleon auction on 11 15 0
  • my sister horse friends
  • can i show looking like this
  • what are some good ideas for horse gifts for christmas
  • what do you guys think of this pic of me and my horse
  • my horse bucked why

  • height and weight a problem
  • how can you tell if a horse has laminitis
  • what is calcium deposits on the horses knee
  • confused about diagonals
  • is this a good idea
  • help please i need to know how to use a noseband
  • horse with muddy feet in winter
  • horse breed question will pick best answer
  • navicular disease corrective shoes applied now showing pastern swelling
  • howrse level 4 achievements
  • animal assisted therapy equine
  • how do i prevent blanket zap
  • what are some ways to stengthen my horse 039 s shoulder muscles
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 gigj.com        Site made:CFZ