473,413 Members | 1,794 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,413 software developers and data experts.

Columntree width problem in ExtJs

Hi,

i tried to set columntree width using widht and forcefit property (in ExtJS). but im not getting the proper solutions. If i change the screen resolution its not fit with full width. i've attached below my code.
Expand|Select|Wrap|Line Numbers
  1.     createTree = function (){
  2.         tree = new Ext.tree.ColumnTree({
  3.             el:'adminGridDiv',
  4.             id:'producttree',
  5.             width:700,
  6.             rootVisible:false,
  7.             expandable:false,
  8.             loadMask: true,
  9.             layout:'fit',
  10.             viewConfig: {
  11.                 forceFit:true
  12.             },
  13.             stripeRows: true,
  14.             singleClickExpand:true,
  15.             tbar: new Ext.Toolbar({
  16.                autoHeight:true,
  17.                autoWidth:true,
  18.                style:'background:#d0def0'
  19.             }),
  20.             columns:[
  21.             {
  22.                 header:'Group Name',
  23.                 width:120,
  24.                 id:'name',
  25.                 dataIndex:'name'
  26.             },{
  27.                 header: "Status",
  28.                 dataIndex: 'status',
  29.                 id:'status',
  30.                 width: 90
  31.                })
  32.             },{
  33.                 header:'Remarks',
  34.                 width:170,
  35.                 id:'remarks',
  36.                 dataIndex:'remarks'
  37.             }],
  38.  
  39.             loader: new Ext.tree.TreeLoader({
  40.                 layout:'fit',
  41.                    width:980,
  42.                 preloadChildren:true,
  43.                 uiProviders:{
  44.                     'col': Ext.tree.ColumnNodeUI
  45.                 }
  46.             })
  47.  
  48.         });
  49.     }

reply me if you have any idea...

Thanks
Apr 21 '08 #1
2 5173
acoder
16,027 Expert Mod 8TB
i tried to set columntree width using widht and forcefit property (in ExtJS). but im not getting the proper solutions. If i change the screen resolution its not fit with full width.
If you're setting the width, then the width will be 700, not the full screen, would it?

Please use [code] tags when posting code. Thanks!
Apr 21 '08 #2
If you're setting the width, then the width will be 700, not the full screen, would it?

Please use [code] tags when posting code. Thanks!


Thanks for your reply... actually somebody has tried with
layout:'fit',
viewConfig: {
forceFit:true
}

URL :
http://extjs.com/forum/showthread.php?t=31880&highlight=columntree+forcef it

to fix it... even total width of the columntree is not working...


Thanks.
Apr 21 '08 #3

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

Similar topics

2
by: Alex Shi | last post by:
In php, is there a way obtain the width of a charactor of a certain font? Alex -- ================================================== Cell Phone Batteries at 30-50%+ off retail prices!...
7
by: Graham J | last post by:
Apologies for the partial post that mysteriously escaped as I was composing. I shall try again. For many years I have been happily and successfully coding tables such that the WIDTH specified...
16
by: karlman | last post by:
I am trying to create a web page that shows a calendar schedules. I am attempting to use table cells with fixed widths and different colors to display this. It seems that IE6 doesn't always...
6
by: aadsaca | last post by:
Hi, I just want to know about how to make a program using CakePHP with EXTJS. Like displaying database contents with EXTJS' cool tables you know tnx, arjel
5
by: sasimca007 | last post by:
Hello friends, If anybody knows extjs please clarify my doubt. I uses gridpanel(array grid) and i want to get the value of a column of a row when a row is clicked. That means,...
7
by: Aaron Gray | last post by:
What the hell is going on in source/adapter/ext-base.js on lines 36 and 45, Ext.lib.Dom.getViewportHeight and Width ? It seems to be using 'self' which seems to come from no where ? Also whats...
3
by: Prajaktaj | last post by:
Hi All, I want to integrate the sharepoint webpart into ExtJS. If anyone of you is having any idea please help me out. Thanks for any help
4
RamananKalirajan
by: RamananKalirajan | last post by:
Hi all, I am planning to develop an application using ExtJs. But the issue is i have a requirement such that if i choose a color in the formatter pane. the whole application should change to that...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.