473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

How to get the group header for a grid panel in extjs?

here is my code:

Expand|Select|Wrap|Line Numbers
  1. var expGroupStore = new Ext.data.GroupingStore({
  2.             id: 'profile_data'+ labId + userName,
  3. //            proxy: new Ext.data.HttpProxy({
  4. //                url: 'localhost/php/student_exp.php?lab='+labId+'&userName='+userName,      // File to connect to
  5. //                method: 'POST'
  6. //            }),
  7. //            baseParams:{task: "LISTING"}, // this parameter asks for listing
  8.             reader: new Ext.data.JsonReader({   // we tell the datastore where to get his data from
  9.                 root: 'rows',
  10.                 //totalProperty: 'total',
  11.                 id: 'Exps'
  12.             }, gridItemMapping),
  13.                autoLoad: true,
  14.                sortInfo:{field: 'exp_id'},
  15.                groupField:'exp_group_id'
  16.             });
  17.  
  18. var expPanel = new Ext.grid.GridPanel({
  19.                 border:false,
  20.             ds: expGroupStore,           
  21.              cm: new Ext.grid.ColumnModel(
  22.                  gridColumnMapping),
  23.               sm: rowSelection,
  24.               view: new Ext.grid.GroupingView({
  25.                 forceFit:true,                
  26.                 showGroupName:true,
  27.                 groupTextTpl: '{[ values.rs[0].data["exp_name"] ]}' 
  28.                   }),
  29.               tbar: tBarMenu
  30.                 });
when i run the code i'm getting the groups. But for each group i have exp_name but its not getting displayed :(
Please help me out... I'm in the learning extjs 2.3 now.
May 7 '10 #1
3 7839
gits
5,390 Expert Mod 4TB
does an error occur or what is displayed instead? ... and why do you use 2.3 and not a newer version ... the newer ExtJs versions are really improved regarding performance and stability ...

kind regards
May 7 '10 #2
Hello gits, Now i'm upgrading to newer version. Can you please help me out with tutorials and other materials to upgrade to newer version of ExtJS?
Jul 7 '10 #3
gits
5,390 Expert Mod 4TB
you should just browse the extjs-forums when issues occur during the upgrade ... basically an upgrade from 2.2.1 to 3 > was seamless for us ... but it might depend on code that you have ...
Jul 7 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Pat S | last post by:
I have a report in which each record is about work booked to be done by my company for a client. Each day of work is represented by one record. The report is grouped by CLIENT -- so each page...
6
by: Chuck | last post by:
I have a report with three columns, accross then down, and two groups. Currently the group headers are only one column wide and appear in the left hand column. How can I make the group header be...
3
by: Melissa | last post by:
I have a sales report where the sales are grouped by district. The report is based on a query with criteria for sales date to get the sales in any specified date range. I have code in the Format...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
0
by: rech340 | last post by:
Hi, I created labels using the label wizard. I then added a group header for a FN/LN field. I moved the following text box to the group header: =Trim( & ", " & ) Remaining in the detail...
1
by: Bill | last post by:
I have a group header that is appearing at both the beginning and end of the data in my report group. I have looked all through the settings and cannot figure out why this is happening. Can...
2
by: indrag91 | last post by:
hai, Iam using data report. i have created a group header. i want to display the field of the group header above the page header and i also want to diplay the page header in every page. How is it...
4
by: DavidB | last post by:
Im not sure if I am missing something obvious here or not so excuse me if this is a DFU question please... I have a report I am working on that includes the following data. Agency Name Vendor...
1
by: zandiT | last post by:
hello everyone when working with access reports using the grouping sections, how do you change the title of the group header section depending on which group is being displayed. i have a report...
2
by: zandiT | last post by:
hello everyone when working with access reports using the grouping sections, how do you change the title of the group header section depending on which group is being displayed. i have a report...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.