Results 1 to 4 of 4
- 09-01-2008, 04:39 PM #1
Member
- Join Date
- Jul 2008
- Posts
- 5
- Rep Power
- 0
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();
});
- 09-01-2008, 06:10 PM #2
This looks like javascript. You might get better help on a javascript forum.
- 09-01-2008, 08:11 PM #3
Senior Member
- Join Date
- Aug 2008
- Posts
- 384
- Rep Power
- 5
It IS JavaScript. Sorry, can't help ya.
I die a little on the inside...
Every time I get shot.
- 12-31-2008, 10:10 AM #4
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Regarding the display of histogram
By Mazharul in forum Java 2DReplies: 2Last Post: 08-27-2008, 03:09 AM -
How to display information about the display device in SWT
By Java Tip in forum SWTReplies: 0Last Post: 06-28-2008, 09:26 PM -
How to display image ?
By Birkoff in forum AWT / SwingReplies: 7Last Post: 06-09-2008, 07:58 AM -
SWT – Display class
By Java Tip in forum Java TipReplies: 0Last Post: 12-30-2007, 12:19 PM -
Display program
By nhlfan in forum New To JavaReplies: 2Last Post: 11-22-2007, 12:00 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks