Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2008, 05:39 PM
Member
 
Join Date: Jul 2008
Posts: 5
Rep Power: 0
surya_dks is on a distinguished road
Default 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, 6 views)
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 09-01-2008, 07:10 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
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, 09:11 PM
Senior Member
 
Join Date: Aug 2008
Posts: 372
Rep Power: 2
Supamagier is on a distinguished road
Default
It IS JavaScript. Sorry, can't help ya.
__________________
I die a little on the inside...
Every time I get shot.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-31-2008, 11:10 AM
Member
 
Join Date: Nov 2008
Posts: 3
Rep Power: 0
venkateshaare is on a distinguished road
Smile 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
Reply

Bookmarks

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

BB 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
How to display image ? Birkoff AWT / Swing 9 05-10-2009 02:34 PM
Regarding the display of histogram Mazharul Java 2D 2 08-27-2008 04:09 AM
How to display information about the display device in SWT Java Tip SWT 0 06-28-2008 10:26 PM
SWT – Display class Java Tip Java Tips 0 12-30-2007 01:19 PM
Display program nhlfan New To Java 2 11-22-2007 01:00 AM


All times are GMT +2. The time now is 07:16 AM.



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