Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2008, 06:39 PM
Member
 
Join Date: Jul 2008
Posts: 5
surya_dks is on a distinguished road
How to display two grids using EXTJS
Hi,

How to display two grids in the same jsp using extjs library. I have written some code for displaying the first grid, but on click of a row in the first grid, I need to display the second grid like the attached screen shot. I am not getting any idea for how to get the second one. Can some body help me please its very urgent(if possible please give me the code for that.).

here is the code for first grid

function onFunctionLoad(){
Ext.onReady(function(){
var x=eval(request.responseText);
var myData = x;
var store = new Ext.data.SimpleStore({
fields: [
{name: 'userid'},
{name: 'WorkType'},{name: 'Building'},
{name: 'Floor'},{name: 'Space'},{name: 'WorkType Status'}
]
});
store.loadData(myData);
var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{id:'userid',header: "userid", width: 160, sortable: true, dataIndex: 'userid'},
{header: "WorkType", width: 75, sortable: true, dataIndex: 'WorkType'},
{header: "Building", width: 75, sortable: true, dataIndex: 'Building'},
{header: "Floor", width: 75, sortable: true, dataIndex: 'Floor'},
{header: "Space", width: 75, sortable: true, dataIndex: 'Space'},
{header: "WorkType Status", width: 75, sortable: true, dataIndex: 'WorkType Status'}
],
stripeRows: false,
autoExpandColumn: 'userid',
sm: new Ext.grid.RowSelectionModel({
singleSelect: true,
listeners: {
rowselect: function(sm, row, rec) {
selectedVal=row;
}
}
}),
height:250,
width:500,
title:'Direct Reports'
});

grid.render('grid-example');
grid.getSelectionModel().selectFirstRow();
});
Attached Images
File Type: jpg grid.JPG (46.3 KB, 5 views)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-01-2008, 08:10 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
This looks like javascript. You might get better help on a javascript forum.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-01-2008, 10:11 PM
Senior Member
 
Join Date: Aug 2008
Posts: 186
Supamagier is on a distinguished road
It IS JavaScript. Sorry, can't help ya.
__________________
check out
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
, 100% made by me.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-31-2008, 12:10 PM
Member
 
Join Date: Nov 2008
Posts: 2
venkateshaare is on a distinguished road
regarding posting
Just now I entered in to java development team.


Right now I am just checking posted questions.It was very good.Sure I will start posting.


Thanks,
Venkatesh Aare
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding the display of histogram Mazharul Java 2D 2 08-27-2008 05:09 AM
How to display information about the display device in SWT Java Tip SWT 0 06-28-2008 11:26 PM
How to display image ? Birkoff AWT / Swing 7 06-09-2008 09:58 AM
SWT – Display class Java Tip Java Tips 0 12-30-2007 02:19 PM
Display program nhlfan New To Java 2 11-22-2007 02:00 AM


All times are GMT +3. The time now is 09:13 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org