Resizing DataGrid column width

How can I enable the user to quickly adjust automatically a column by double-clicking it, as you can do in Excel?

Also, how could I have the columns automatically sized this way during load?

No mechanism built as far as I know. This shuold help you get started:

var int cols = this.dg.columnCount;
for (var i: int = 0; i< cols;="" i++)="">
Col: DataGridColumn var = dg.columns [i];

var tlm:TextLineMetrics = dg.measureText (col.headerText);
Col.Width = tlm.width;
}

Basically, you'll need to go on each column, measure the width of the text that is in this case, I will put only the width as wide as the header text - using the TextLineMetrics class and set the column width. You might alos have invalidated the DataGrid Properties after the loop to force a refresh.

ATTA

Tags: Flex

Similar Questions

  • Cannot set the DataGrid column width

    I am very frustrated with the DataGrid control and I don't understand why it won't work. I followed the tutorial "Build year Application In An Hour" by Adobe and finally managed to extract data from a database in a DataGrid control, the data very well, but all the columns are the same width and will not change when creating. Of course I can drag the column widths when the DataGrid control has made, but you shouldn't do that. The columns are not enough even wide to fit in the title of each column. The tutorial mentioned resizing of columns, but does not specify how. I've manually entered in the < S:GridColumn > tags and entered like width = "800" see no change. I changed the width of the data grid itself, I even tried setting the width to 100%. I also went in the "Configure columns" dialog, and then in advanced and set a minWidth, but it still doesn't work, I even disabled 'resize' and still nothing. I also tried different combinations of the aforementioned attempts.

    How can it be difficult to set the width of a column?

    I should also mention that I use Adobe Flex Builder 4.5 for PHP.

    Well, I solved the problem and I'm very embarrassed to say that it is my browser cache. It was not show my saved new, which is a bit worrying plans sometimes that I need to change the small values and run my application every 10 seconds to see the update.

  • DataGrid column widths go crazy!

    Hi all

    I implement my own rendering engine customized to be used in the DataGrid - it works by instantiating another UIComponent and add as a child. Evrything works fine in a datagrid, but within another column widths are being reset at 20.125 as soon as I scroll - my component updateDisplayList method gets the parameters like width = 20.125 (always!), but the height seems to be OK. Scroll and down a few times seems to correct the problem, but it's not a viable solution.

    Any ideas what's happening? At this point seems to be a bug in the DataGrid code, debugger indicates any width of column as 20.125

    Never mind... my bad. A prop columns linking to an another datagrid columns and which was screwing the widths.

  • DataGrid column widths

    Hello.

    I have a working datagrid... example below.

    Please can someone help me modify this code so that I can adjust the width of each column so that it matches the size of the text in this column. At present, all columns the same width, and they do not expand in width to adjust the text in the table.

    function dataGridFunction() {var characters: Array = new Array (new Array ("Jerry Seinfeld", "35", "37.9", "+" 2.9))}

    new Array ("Chuck Norris", "35", "24", "11").

    new Array ("Jim Raynor", "35", "40", "+ 5"));

    //

    //

    for (var i: Number = 0; i < characters.length; i ++) {}

    var firstName:String = character [i] [0];

    var lastName:String = character [i] [1];

    var price: String = character [i] [2];

    var diff:String = [i] characters [3];

    dataGridMain.addItem ({name: name, TH: lastName, TR:award, VS: diff});

    }

    dataGridMain.setStyle ("fontFamily", "Verdana");

    dataGridMain.setStyle ("headerColor", "0xA6CBDD");

    dataGridMain.setStyle ("alternatingRowColors", ["0xF0F0F0", "0xFFFFFF"]);

    dataGridMain.setStyle ("rollOverColor", "0xDCEBF1");

    dataGridMain.setStyle ("selectionColor", "0xFFF97D");

    dataGridMain.setStyle ("selectionDuration", 300) ;}

    dataGridFunction();

    Thank you. My datagrid is wide 240. I took this first line and added that "BOLD". Everything seems to work ok now for all 4. The first line is important somehow.

    dataGridMain.getColumnAt (0) .width = dataGridMain._width - 240;

    dataGridMain.getColumnAt (0) .width = 120;

    dataGridMain.getColumnAt (1) .width = 35;

    dataGridMain.getColumnAt (2) .width = 35;

    dataGridMain.getColumnAt (3) .width = 35;

  • How not to sort datagrid column on double click

    Hello

    I'm currently building an application containing a DataGrid for the representation of data. I created a datagridheader custom in order to add an input text for the filtering of the columns (see code below).

    My goal is to hide the textinput and then display it on a double click on the header. So I would like to know how to avoid the type of this column whenever I double click. ?

    <? XML version = "1.0" encoding = "utf-8"? >

    " < = xmlns:fx s:GridItemRenderer ' http://ns.Adobe.com/MXML/2009 "

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" resize = "onColumnResize (event)" clipAndEnableScrolling = 'true' doubleClick = "managefilterField (event)" > "

    < fx:Declarations >

    <!-the default value of the sortIndicator < code > < code > property.

    It must be an IFactory for an IVisualElement.

    < p > This value is specified in a < code > < code > fx:Declaration block and can be overridden

    by a supporting statement < code > = "defaultSortIndicator" </postcode >

    in an MXML subclass. < /p >

    @langversion 3.0

    @playerversion flash 10

    @playerversion AIR 2.0

    @productversion flex 4.5

    ->

    < fx:Component id = "defaultSortIndicator" >

    < data s:Path = "M 3.5 7.0 L 0.0 0.0 7.0 0.0 L 3.5 7.0 L" implements = "spark.components.gridClasses.IGridVisualElement" >

    < fx:Script >

    <! [CDATA]

    Import spark.components.DataGrid;

    Import spark.components.Grid;

    /**

    * @private

    */

    public void prepareGridVisualElement(grid:Grid,_rowIndex:int,_columnIndex:int):void

    {

    const dataGrid:DataGrid = grid.dataGrid;

    If (! dataGrid)

    return;

    const color: uint = dataGrid.getStyle("symbolColor");

    arrowFill1.color = color;

    arrowFill2.color = color;

    }

    []] >

    < / fx:Script >

    < s:fill >

    < s:RadialGradient rotation = "90" focalPointRatio = "1" >

    <!---@private-->

    < s:GradientEntry id = "arrowFill1" color = "0" alpha = "0.6" / >

    <!---@private-->

    < s:GradientEntry id = "arrowFill2" color = "0" alpha = "0.8" / >

    < / s:RadialGradient >

    < / s:fill >

    < / s:Path >

    < / fx:Component >

    <!-displays the label of renderer property, which is the value of the column < code > < code > headerText.

    It must be an instance of a TextBase < code > < code > < code > < code > s:Label.

    < p > This Visual element is added to the < code > < code > labelDisplayGroup by of the rendering engine

    prepare() < code > < code > method.   Constraint of size/location specified by the labelDisplay

    define its location relative to the labelDisplayGroup. < /p >

    < p > This value is not specified with a < code > < code > fx:Declaration and can be overridden

    by a supporting statement < code > = "labelDisplay" < code >

    in an MXML subclass. < /p >

    @langversion 3.0

    @playerversion flash 10

    @playerversion AIR 2.0

    @productversion flex 4.5

    ->

    < s:Label id = "labelDisplay".

    Red left = "1" = "0" right = "0" top = low '0' = '0 '.

    textAlign = 'start '.

    fontWeight = "bold".

    verticalAlign = "middle".

    maxDisplayedLines = "1".

    showTruncationTip = "true" / >

    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    Import net.awl.ismp.console.components.misc.FilterCriteria;

    Import net.awl.ismp.console.events.ColumnFilteredEvent;

    Import net.awl.ismp.console.events.ColumnResizedEvent;

    Import mx.events.ResizeEvent;

    Import spark.components.gridClasses.IGridVisualElement;

    Import mx.core.IVisualElement;

    Import spark.components.DataGrid;

    Import spark.components.GridColumnHeaderGroup;

    Import spark.components.gridClasses.GridColumn;

    Import spark.primitives.supportClasses.GraphicElement;

    variables and constants of color chrome

    DEFAULT_COLOR_VALUE:uint private static const is 0xCC;.

    DEFAULT_COLOR:uint private static const is 0xCCCCCC;.

    Private static const DEFAULT_SYMBOL_COLOR:uint = 0 x 000000;

    private static var colorTransform:ColorTransform = new ColorTransform();

    /**

    * @private

    */

    private void dispatchChangeEvent(type:String):void

    {

    If (hasEventListener (type))

    {

    dispatchEvent (new Event (type));

    }

    }

    protected function onColumnResize(event:ResizeEvent):void

    {

    dispatchEvent (new ColumnResizedEvent (ColumnResizedEvent.COLUMNRESIZED_EVT, this.width, this.column.columnInde x));

    }

    //----------------------------------

    maxDisplayedLines

    //----------------------------------

    private var _maxDisplayedLines:int = 1;

    [Bindable ("maxDisplayedLinesChanged")]

    [Inspectable (minValue = "-1")]

    /**

    This property value is used to initialize the

    * < code > < code > maxDisplayedLines property of this converter

    * < code > labelDisplay < code > element.

    *

    * @copy #maxDisplayedLines spark.components.supportClasses.TextBase

    *

    * @default 1

    *

    * @langversion 3.0

    * @playerversion flash 10

    * @playerversion AIR 1.5

    * @productversion flex 4.5

    */

    public function get maxDisplayedLines (): int

    {

    Return _maxDisplayedLines;

    }

    override the stateChanged(oldState:String,_newState:String,_recursive:Boolean):void function

    {

    trace ("status changed to:" + oldState + "to" + newState);

    super.stateChanged (oldState, newState, recursive);

    }

    /**

    * @private

    */

    public function set maxDisplayedLines(value:int):void

    {

    If (value == _maxDisplayedLines)

    return;

    _maxDisplayedLines = value;

    If (labelDisplay)

    labelDisplay.maxDisplayedLines = value;

    invalidateSize();

    invalidateDisplayList();

    dispatchChangeEvent ("maxDisplayedLinesChanged");

    }

    //----------------------------------

    sortIndicator

    //----------------------------------

    private var _sortIndicator:IFactory;

    private var sortIndicatorInstance:IVisualElement;

    [Bindable ("sortIndicatorChanged")]

    /**

    * A visual element that appears when the column is sorted.

    *

    * < p > the sortIndicator visual element is added to the < code > < code > sortIndicatorGroup

    * by this converter < code > < code > prepare() method.  Constraint of size/location

    * specified by the sortIndicator set its location relative to the sortIndicatorGroup. < /p >

    *

    * @default null

    *

    * @langversion 3.0

    * @playerversion flash 10

    * @playerversion AIR 1.5

    * @productversion flex 4.5

    */

    public function get sortIndicator (): IFactory

    {

    return (_sortIndicator)? _sortIndicator: defaultSortIndicator;

    }

    /**

    * @private

    */

    public function set sortIndicator(value:IFactory):void

    {

    trace ("setSortIndicator");

    If (_sortIndicator is value)

    return;

    _sortIndicator = value;

    If (sortIndicatorInstance)

    {

    sortIndicatorGroup.includeInLayout = false;

    sortIndicatorGroup.removeElement (sortIndicatorInstance);

    sortIndicatorInstance = null;

    }

    invalidateDisplayList();

    dispatchChangeEvent ("sortIndicatorChanged");

    }

    /**

    * @private

    * Create and add the sortIndicator to the sortIndicatorGroup and the

    * labelDisplay in the labelDisplayGroup.

    */

    override public function prepare(hasBeenRecycled:Boolean):void

    {

    trace ("ready!");

    Super.Prepare (hasBeenRecycled);

    If (labelDisplay & & labelDisplayGroup & & (labelDisplay.parent! = labelDisplayGroup))

    {

    labelDisplayGroup.removeAllElements ();

    labelDisplayGroup.addElement (labelDisplay);

    }

    trace (sortIndicator);

    trace ("sortIndicatorInstance:" + sortIndicatorInstance);

    column: GridColumn = const this.column;

    If (sortIndicator & & column & & column.grid & & column.grid.dataGrid & & column.grid.dataGrid.columnHeaderGroup)

    {

    const dataGrid:DataGrid = column.grid.dataGrid;

    const columnHeaderGroup:GridColumnHeaderGroup = dataGrid.columnHeaderGroup;

    If (columnHeaderGroup.isSortIndicatorVisible (column.columnIndex))

    {

    If (! sortIndicatorInstance)

    {

    sortIndicatorInstance = sortIndicator.newInstance ();

    sortIndicatorGroup.addElement (sortIndicatorInstance);

    chromeColorChanged = true;

    invalidateDisplayList();

    }

    Initialize the sortIndicator

    sortIndicatorInstance.visible = true;

    const gridVisualElement:IGridVisualElement = sortIndicatorInstance as IGridVisualElement;

    If (gridVisualElement)

    gridVisualElement.prepareGridVisualElement (column.grid,-1, column.columnIndex);

    sortIndicatorGroup.includeInLayout = true;

    sortIndicatorGroup.scaleY = (column.sortDescending)? 1:-1;

    }

    on the other

    {

    If (sortIndicatorInstance)

    {

    sortIndicatorGroup.removeElement (sortIndicatorInstance);

    sortIndicatorGroup.includeInLayout = false;

    sortIndicatorInstance = null;

    }

    }

    }

    }

    private var chromeColorChanged:Boolean = false;

    private var colorized: Boolean = false;

    /**

    * @private

    * Apply the chromeColor style.

    */

    override the updateDisplayList(unscaledWidth:Number,_unscaledHeight:Number):void function

    {

    trace ("update list display");

    Apply the color chrome

    If (chromeColorChanged)

    {

    var chromeColor:uint = value ("chromeColor");

    If (chromeColor! = DEFAULT_COLOR | colorized)

    {

    colorTransform.redOffset = ((chromeColor & (0xFF << 16)) > > 16)-DEFAULT_COLOR_VALUE;

    colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) > > 8)-DEFAULT_COLOR_VALUE;

    colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;

    colorTransform.alphaMultiplier = alpha;

    transform.colorTransform = colorTransform;

    var exclusions: Array = [labelDisplay, sortIndicatorInstance];

    Apply reverse colorization exclusions

    If (exclusions & & exclusions.length > 0)

    {

    colorTransform.redOffset = - colorTransform.redOffset;

    colorTransform.greenOffset = - colorTransform.greenOffset;

    colorTransform.blueOffset = - colorTransform.blueOffset;

    for (var i: int = 0; i < exclusions.length; i ++)

    {

    var exclusionObject:Object = exclusions [i];

    If (exclusionObject & &)

    (exclusionObject is DisplayObject |)

    exclusionObject is GraphicElement))

    {

    colorTransform.alphaMultiplier = exclusionObject.alpha;

    exclusionObject.transform.colorTransform = colorTransform;

    }

    }

    }

    colorized = true;

    }

    chromeColorChanged = false;

    }

    super.updateDisplayList (unscaledWidth, unscaledHeight);

    }

    /**

    * @private

    */

    override public function styleChanged(styleProp:String):void

    {

    var allStyles:Boolean =! styleProp | styleProp == "styleName";

    super.styleChanged (styleProp);

    If (allStyles | styleProp == "chromeColor")

    {

    chromeColorChanged = true;

    invalidateDisplayList();

    }

    }

    protected function managefilterField(event:MouseEvent):void

    {

    trace ("double click on sortIndicator:" + this.sortIndicatorInstance);

    this.filterInput.visible =! this.filterInput.visible;

    this.filterInput.includeInLayout = this.filterInput.visible;

    this.filterSpacer.visible = this.filterInput.visible;

    this.filterSpacer.includeInLayout = this.filterInput.visible;

    if(!this.filterInput.visible)

    {

    this.filterInput.text ="";

    dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));

    }

    this.filterInput.setStyle ("borderColor", 0xFF6319);

    this.filterInput.setStyle ("focusColor", 0xFF6319);

    () this.filterInput.setStyle

    }

    protected function onTextInputSelection(event:MouseEvent):void

    {

    Event.stopImmediatePropagation;

    this.filterInput.setStyle ("borderColor", 0xFF6319);

    this.filterInput.setStyle ("focusColor", 0xFF6319);

    }

    protected function onKeyUp(event:KeyboardEvent):void

    {

    if(Event.charCode==Keyboard.Enter)

    {

    internship. Focus = null;

    }

    }

    protected function onFocusOut(event:FocusEvent):void

    {

    this.filterInput.setStyle ("borderColor", 0x00ff00);

    this.filterInput.setStyle ("focusColor", 0x70B2EE);

    dispatchEvent (new ColumnFilteredEvent (ColumnFilteredEvent.COLUMNFILTERED_EVT, new FilterCriteria (this.column.dataField, this.filterInput.text)));

    }

    []] >

    < / fx:Script >

    < s: states >

    < name s: State = "normal" / >

    < name s: State = "flat" / >

    < name s: State = "low" / >

    < / s: states >

    <!-layer 1: shadow->

    <!---@private-->

    < s:Rect id = "shadow" left = "-1" right = "-1" high = low '-1' = '-1' radiusX = "2" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0x000000".

    Color.Down = "0xFFFFFF"

    Alpha = "0.01".

    Alpha. Down = "0" / > "

    < s:GradientEntry color = "0x000000".

    Color.Down = "0xFFFFFF"

    Alpha = "0.07"

    Alpha. Down = "0.5" / > "

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 2: fill->

    <!---@private-->

    < s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0xFFFFFF".

    Color.hovered = "0xBBBDBD"

    Color.Down = "0xAAAAAA"

    Alpha = "0.85" / >

    < s:GradientEntry color = "0xD8D8D8".

    Color.hovered = "0x9FA0A1"

    Color.Down = '0 x 929496'

    Alpha = "0.85" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 3: filling lowlight->

    <!---@private-->

    < s:Rect id = "lowlight" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation '270' = >

    < s:GradientEntry color = "0x000000" ratio = "0,0" alpha = "0,0627" / >

    < s:GradientEntry color = "0x000000" ratio = alpha '0.48' = "0,0099" / >

    < s:GradientEntry color = "0x000000" ratio = alpha "0.48001" = "0" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 4: highlight of fill->

    <!---@private-->

    < s:Rect id = "highlight" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    < s:GradientEntry color = "0xFFFFFF".

    ratio = "0.0".

    Alpha = "0.33".

    Alpha.hovered = "0.22"

    Alpha. Down = "0.12" / >

    < s:GradientEntry color = "0xFFFFFF".

    ratio = '0.48 '.

    Alpha = "0.33".

    Alpha.hovered = "0.22"

    Alpha. Down = "0.12" / > "

    < s:GradientEntry color = "0xFFFFFF".

    ratio = "0.48001."

    Alpha = "0" / >

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >

    <!-layer 5: race to highlight (all States except down)->

    <!---@private-->

    < s:Rect id = "highlightStroke" left = "0" right = "0" top = low '0' = '0' excludeFrom 'low' = >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0xFFFFFF" alpha.hovered = "0.22" / > "

    < s:GradientEntry color = "0xD8D8D8" alpha.hovered = "0.22" / > "

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!-layer 6: highlight of the stroke (to the low State only)->

    <!---@private-->

    < s:Rect id = "hldownstroke1" left = "0" right = "0" top = low "0" = "0" includeIn = "bottom" >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0,0" / >

    < s:GradientEntry color = "0x000000" alpha = "0.25" ratio = "0.001" / >

    < s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,0011" / >

    < s:GradientEntry color = "0x000000" alpha = "0.07" ratio = "0,965" / >

    < s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.9651" / >

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!---@private-->

    < s:Rect id = "hldownstroke2" left = "1" right = "1" top down = '1' = '1' includeIn = "bottom" >

    < s:stroke >

    < s:LinearGradientStroke rotation = "90" weight = "1" >

    < s:GradientEntry color = "0x000000" alpha = "0.09" ratio = "0,0" / >

    < s:GradientEntry color = "0x000000" alpha = "0.00" ratio = "0.0001" / >

    < / s:LinearGradientStroke >

    < / s:stroke >

    < / s:Rect >

    <!-< s:Rect id = "fill" left = "0" right = "0" top = low "0" = "0" >

    < s:fill >

    < s:LinearGradient rotation = "90" >

    "< s:GradientEntry color.normal"0xf9f9f9"color.hovered =" = 0xfcfdfa ".

    Color.Down = "0xdceac2" alpha = "0.85" / > "

    "< s:GradientEntry color.normal"0xeaeaea"color.hovered =" = 0xdceac2 ".

    Color.Down = "0xd2e1b5" alpha = "0.85" / > "

    < / s:LinearGradient >

    < / s:fill >

    < / s:Rect >->

    <!-< right '7' = left s:VGroup = '7' high low = '5' = '5' gap = "6" verticalAlign = "middle" >

    < s:TextInput width = "100%" / >

    < s:HGroup width = "100%" >

    < s:Group id = "labelDisplayGroup" width = "100%" / >

    < s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >

    < / s:HGroup >

    < / s:VGroup >->

    < s:VGroup verticalAlign = "middle" left = "7" = "5" top right = '7' low gap '5' = '2' = >

    "< s:TextInput id ="filterInput"width ="100% "visible ="false"includeInLayout = 'false' keyUp =" onKeyUp (event) "Focusout/focusouthandler() =" onFocusOut (event) "click ="onTextInputSelection (event)"/ >

    < s:Spacer id = "filterSpacer" visible = "false" includeInLayout = "false" height = "5" / >

    < s:HGroup width = "100%" height = "100%" verticalAlign = "middle" >

    < s:Group id = "labelDisplayGroup" width = "100%" / >

    < s:Group id = includeInLayout = "false" "sortIndicatorGroup" / >

    < / s:HGroup >

    < / s:VGroup >

    < / s:GridItemRenderer >

    You can use 'alt' or 'Ctrl' click and just check on the event to see if one of these is 'true '.

  • resize unique columns of table front panel

    I have a bunch of columns on my front and some of them contain lon channels, while others have only a maximum of 2-3 strings in them.

    I'm looking for a way to resize each column without resizing all the others at the same time. If I have them all the same length and the length of the string max I get the table is much too large to fit on the screen space and navigation in labview VI leaves much to be desired.

    His cosmetic event but would help me see clearer information and as the information are all locked in long strings his does not work well with what im doing then.

    Watch multicolumn ListBox or tables. They allow the customization of the column widths and are specially designed for user interfaces.  Protect your data in a table to the schema for the treatment, but the indicators on the front panel.

    Lynn

  • Proportional column width vs fixed tables (conversion of Ventura)

    Hello, all! I'm busily conversion (Finally, rebuild is a better word) Lighthouse weekly newsletter of our company publication of Ventura 10 for InDesign CS4 (PC version), while learning InDesign on the fly. About half of the publication resumed with tables of prices of 1,600 price guide. I read what I can on the tables, because they are so essential to our production process, and I quickly (sometimes 15 minutes of approval of copy/final price to get the file to the printer or emailing to subscribers).

    My question: am I right that there is no way to set a proportional column width in InDesign? In Ventura (for the non-Venturians there), I can set one of the columns as proportional. Then I can set the columns where I don't want the width to change as fixed and define the width of each separately (left column is 2, 11.900pp, a gutter is 0.6, etc.). Table resize all proportional columns, and the table is set up to fill the frame in which it is.

    I find I have to resize the columns individually, just as the word and then try to make sure that the entire table extend beyond the frame. I also find that I can not select noncontiguous columns to set them to distribute columns evenly. Since I rarely proportional columns right next to each other, I can't use this feature, most of the time.

    I want to just make sure that I only am not missed something as a novice to InDesign. In the example below, the columns 1, 5, 6 and 10 are proportional (in color, so they can be easily seen here). Then I size just the width of these columns, and everything else set proprtionally with a width equal to fill the frame. Any way to do with InDesign?

    Thank you! -Nancy

    7-16-2009 2-59-34 PM.png

    Unfortunately, no. Miss me also the proportional column width.

    As you discovered, Indesign does not limit the width of the table in the width of the frame. So even if there was a setting to "fill the remaining space", it wouldn't work because Indesign is not a way to know what is the remaining space.

    Ken

  • Question of DataGrid column

    I have a problem with my datagrid columns fill it with content.

    Here is the xml structure:

    Code:
    < title > Bridgeport whipper snap < / headline >
    < blurb > text < / blurb >
    location_url > whipsnap.swf < / location_url >
    < location_url_videotype > 1 < / location_url_videotype >
    < podcast_url_videotype > 2 < / podcast_url_videotype >
    < owner id = "325" name = "Bridgeport" / >

    And here's what I do:

    MXML code:

    < mx:DataGrid id = "movies" dataProvider = "{filterPlay}" width = "650" x = "50" y = "100" editable = "true" change = "previewMovie ()" >
    < mx:columns >
    < mx:DataGridColumn dataField = "headline" headerText = "Movie" editable = "false" / >
    "< mx:DataGridColumn dataField="owner.@name "headerText ="COMPANY"editable ="false"/ >
    < / mx:columns >
    < / mx:DataGrid >

    The owner.@name fill the column... just like owner@name, or @name. How can I get the name attribute of the tag owner to fill a column?

    Thank you!

    http://www.ask.com/Web?q=trainsimpleonline&o=1517&VFR=1

    Found what need me here. Thank you!

  • ItemRenderer in a datagrid column setStyle() does nothing to the appearance

    I have an ItemRenderer in a datagrid column, however the setStyle() does nothing to the appearance. When it is called. Any ideas?

    < mx:DataGridColumn dataField = "space" width = "50".
    headerText = "Space" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:Text >
    < mx:Script >
    <! [CDATA]
    override public function set data (value: Object): void {}
    Super.Data = value;
    setStyle ("Color", 0xff0000);

    If (data.area == 'G') {}
    setStyle ("backgroundColor", 0xff0000);
    } else {}
    setStyle ("backgroundColor", 0xff0000);
    }



    }
    []] >
    < / mx:Script >

    < / mx:Text >
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >

    Your rendering engine code seems a bit strange. This works and can help you get started:

  • Is it possible to have a fixed column width and a URL link?

    I'm trying what a popup link on a column in a SQL report, but also have the report column a certain width. Can I have or not however at the same time.

    What I did was created a SQL report, published a column and he gave a URL redirect (page in application) as usual.

    Fixed column width, I used:
    <div style="width:250px; height:54px; overflow:hidden" title="#Comments#">#Comments#</div>
    The formatting of column / Expression HTML

    And for the URL of the popup, I used:
    onclick="window.open(this.href,'_blank','resizable=0,scrollbars=0,width=650,height=300,menubar=0,location=0');return false;" title="Comments"
    On the column link / link attributes

    Hello

    It is possible that there is an error in your code - shows your snapshot & 523. -the & and the. should not be there. If you have changed to that of & APP_ID., then you don't need the & or the. but, normally, you should leave as & APP_ID. as the value for this will change when you move from dev to test for prod and Apex will automatically replace this string with the number of correct application.

    Andy

  • Column width of the mailbox in the Mail of Sierra application

    Hello everyone,

    After the upgrade to Sierra, everything went well, but a strange and annoying defect in the Mail application: I've enabled the display of three columns (mailboxes, the list of messages, the content of the Message). Well, the column of the mailbox does not keep its width, restore continuous width stretched, whenever I close the application window.

    If I expand the column to display the full name of my multiple email accounts, this preference is lost whenever I close the window. Strangely, if I exit the application without closing the window and then that I raise, the width is maintained, but it is ready to be reinstalled the next time I have everything simply close the window... is possible to make it permanent? The other two columns do not exhibit this problem and their width is however maintained, even if I close the window or quit the app...

    Thanks for your suggestion,

    Enrico

    Hi Enrico,.

    I understand that you are having problems with the column width of mailbox remaining the same size when you close the Mail application window. I use the Mail app all the time so I can understand your concern. We will be that we can do.

    Since this problem occurs in your main user account, please start the Mac in safe mode, connect as user principal and then add to your account e-mail and then test it. Once you have tested out, just restart your computer to find your main office.

    Try safe mode if your Mac does not end commissioning

    If the problem persists in safe mode, please test this point to a different user account. This will help determine if the problem is the system level or a specific user.

    How to test a question in another account on your Mac.

    Thank you for using communities Support from Apple. Have a great day.

  • How to set up excel column width

    I use the ExcelRpt_SetCellRangeAttribute function to set the width of a cell in excel.

    What vale I should switch to set the width for example 50, I tried to transmit values, but his does not work.

    After passing the values'm specifying the column containing the cell is hidden.

    pls help me

    Hello!

    I modified the sample project "excel2000dem.prj" come with the installation of LabWindows/CVI to see if I can adjust the width of the column that you have requested.

    Following the partial code successfully set the column width to 15.0 points in MS Excel 2003.

    //----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #define EXCEL_ARRAY_OF_CELLS "A2:H11".

    ...

    public static ExcelObj_App ExcelAppHandle = 0;
    public static ExcelObj_Workbooks ExcelWorkbooksHandle = 0;
    public static ExcelObj_Workbook ExcelWorkbookHandle = 0;
    public static ExcelObj_Window ExcelWindowHandle = 0;
    public static ExcelObj_Sheets ExcelSheetsHandle = 0;
    public static ExcelObj_Worksheet ExcelWorksheetHandle = 0;
    public static ExcelObj_Range ExcelRangeHandle = 0;

    public static MyCellRangeV VARIANT;

    ....... (I assume that you have an open Excel application and an active workbook already)...

    {

    Get the sheets in the active workbook
    error = Excel_GetProperty (ExcelAppHandle, NULL, Excel_AppSheets, CAVT_OBJHANDLE, & ExcelSheetsHandle);
                   
    Get the first worksheet
    error = Excel_SheetsItem (ExcelSheetsHandle, NULL, CA_VariantInt (1), & ExcelWorksheetHandle);
           
    The first sheet Active - should already be active
    error = Excel_WorksheetActivate (ExcelWorksheetHandle, NULL);

    New range open to the worksheet
    error = CA_VariantSetCString (& MyCellRangeV, EXCEL_ARRAY_OF_CELLS);
    error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, & ExcelRangeHandle);

    Make the range Active
    error = Excel_RangeActivate (ExcelRangeHandle, & ErrorInfo, NULL);

    Set column width
    error = Excel_SetProperty (ExcelRangeHandle, & ErrorInfo, Excel_RangeColumnWidth, CAVT_DOUBLE, 15.0);

    ..........
    }

    //-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Let us know if it works for you.

  • adding table to the report: different column width

    Hello

    Is there a way to set different column width when the table is added to the report VI? As I understand it, the width is distributed in evently for the Table to add to the report VI.

    I have a table with 5 colunms and to set the width of each column differently for printing of the report.

    Thanks for your help

    H. Pham

    Dig into the Table to add to the report VI as a result of the entry of the column width, you will find the Table add to the report > add text table of report VI > tables.vi > Set Table column width VI. You will find a node invoke named SetColumnWidth. Simply enter the column number and the respective width for each column.

  • I use windows 7. How to change and be sure the default column width in Windows Explorer

    I use windows 7. How to change and be sure the default column width in Windows Explorer

    Hi Jimsw,

    ·         If it works well before?

    ·         You did changes to the computer before the show?

    Explorer Windows will remember changed settings, check if this not happen as planned.

    Follow the suggestions below for a possible solution:

    Method 1: I suggest running the fix of the article and check if it helps.

    Diagnose and repair Windows files and folders problems automatically

    http://support.Microsoft.com/mats/windows_file_and_folder_diag/

    Method 2: You can increase the width of the selected columns and apply the settings to all files and check.

    a. right click on an empty space in the Windows Explorer, click on sort by.

    b. now, enter the size required in the Pixel with and click OK.

    Now, click on the drop down menu to organize and click on folder and Search Options.

    Click view and click apply to folders and click OK.

    I hope this helps.

  • Storm: is it possible to resize the horizontal width of the Manager?

    Hi all

    Is it possible to resize the horizontal width of the Manager. I want to create two buttons in horizontal management, set the border background. I use the following code to do this. It works very well. But as there are only two buttons and does not occupy the whole of the 320 width screen, frame border is happening only for these two buttons background. So I could see the spaces apart from the horizontal width in front and in rear areas. So I want to create a horizontal Manager himself with a width of 320, so that the layout border color indicates the full width. Is it possible to resize the horizontal width of the Manager?
     
    XYEdges borderColor = new XYEdges (Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK);
    NoPadding XYEdges = new XYEdges (2, 2, 2, 2);

    HorizontalFieldManager hzBtnFldManager = new HorizontalFieldManager (HorizontalFieldManager.FIELD_HCENTER);

    new CustomControl = createButton ("Create", ButtonField.FOCUSABLE |) ButtonField.CONSUME_CLICK | ButtonField.FIELD_HCENTER, 83, 15);
    cancelButton = new CustomControl ("Cancel", ButtonField.FOCUSABLE |) ButtonField.CONSUME_CLICK | ButtonField.FIELD_HCENTER, 83, 15);

    hzBtnFldManager.add (createButton);
    hzBtnFldManager.add (cancelButton);

    At the border btnBarPaddingBorder = BorderFactory.createSimpleBorder (noPadding, borderColor, Border.STYLE_SOLID);
    hzBtnFldManager.setBorder (btnBarPaddingBorder);
    hzBtnFldManager.setBackground (BackgroundFactory.createSolidBackground (Color.GRAY));

    this.setStatus (hzBtnFldManager);

    Resolved using HorizontalFieldManager (Field.USE_ALL_WIDTH);

Maybe you are looking for

  • Re: How to turn Wi - Fi on NB300?

    Sorry if this is trivial but the inexperienced user. I need to enable and disable the Wi Fi. Looked for answers and it seems that the Fn F8 key is the answer. However, have tried this and nothing seems to happen. There was some talk about getting int

  • Problem starting after power outage

    I am running XP Professional. Last Nite we had a power outage and now I can't get my Dell E510 to initialize. When I reboot, I get a message that my hard drives cannot be seen. I tried holding F8, but it doesn't get me nothing, but the same message.

  • Problem connecting LAN WET610N

    Hello. I work in a hotel and am set up a bridge and a wireless access point to connect to a Point of restaurant sales to the cable network terminal. I've done it before with other devices, but it was time to upgrade, so I went with a Cisco 1140 wirel

  • Acresso Software Inc. is approved by Microsoft?

    Softwarw Manager appears here and there and I don't know if it is a force for good or evil.

  • Lost Windows desktop image

    I just removed my PC Bing using revo Uninstaller.  Unfortunately, at the time of the withdrawal, Bing has managed to change my desktop and replace it with one of their own.  I assumed that it would be a simple matter to restore the original desktop u