Setting Datagrid height

Hi
I have a datagrid on my page, which has the MaximumHeight set
to 400px. So
when the number of rows exceeds this height, then the
vertical scroll
appears.
My problem is that when there is only a couple of rows and
the height is far
less than 400px, there is a large space to the next item on
the page. Does
anyone know how I can reduce this gap until the datagrid
height of 400px is
reached?
Hope I have explained the problem ok!
Thanks
Brendan
Rate your experiences with your UK and Ireland builders at
http://www.ratethebuilder.co.uk
=========================================

The datagrid does not work that way. It renders as a html tag
and as such
the height attribute doesn't work properly. If you google
"scrolling
datagrid" you should find some articles on it but most
involve placing the
datagrid inside of a DIV layer.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"RateTheBuilder" <[email protected]>
wrote in message
news:em6aup$j1l$[email protected]..
> Hi
>
> I have a datagrid on my page, which has the
MaximumHeight set to 400px. So
> when the number of rows exceeds this height, then the
vertical scroll
> appears.
>
> My problem is that when there is only a couple of rows
and the height is
> far
> less than 400px, there is a large space to the next item
on the page. Does
> anyone know how I can reduce this gap until the datagrid
height of 400px
> is
> reached?
>
> Hope I have explained the problem ok!
>
> Thanks
>
> Brendan
> ______________________________________________
> Rate your experiences with your UK and Ireland builders
at
>
http://www.ratethebuilder.co.uk
> =========================================
>

Similar Messages

  • Calculate accurate datagrid height with variableRowHeight and without any empty row

    hi ,
    how can i calculate accurate datagrid height with variableRowHeight="true" and without getting any empty row.
    Currently i am calculating datagrid height on updateComplete event of datagrid as follows:
    public function onUpdateComplete() : void
    this.datagrid.headerHeight=50;
    datagrid.height= datagrid.measureHeightOfItems(0, this.datagrid.dataprovider.length)+this.datagrid.headerHeight;
    with following datagrid properties:
    <mx:DataGrid 
    dataProvider="{dataArrayCollection}" width="100%" rowCount="{dataArrayCollection.length}"
    id="datagrid" updateComplete="onUpdateComplete()" paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0"
    fontSize="12" wordWrap="true" variableRowHeight="true" verticalScrollPolicy="off" >
    With this approach the issue is, i am getting scrollbar on datagrid's container. I want scrollbar for datagrid instead of its container so that i can have only rows to be scrollable and not the header. Also, if i set verticalScrollPolicy of datagrid as "auto", i get empty rows.
    So,is there any way to have datagrid with following properties:
    variable row height
    no empty rows
    word wrap for headers as well as for rows
    Scrollbar for grid i.e. header should remain fix ,only rows should be scrollable
    no horizontal scrollbar
    TIA

    http://blogs.adobe.com/aharui/2010/10/mx-datagrid-list-and-variablerowheight
    .html

  • How to dynamically fix datagrid height by records in dataprovider?

    i need to dynamically fix datagrid height by how many records
    are contains in dataprovider (No Scrollbar), but when i attempt to
    specific the row height, the row height is always out of i expected
    and the scrollbar is appear, how can i do that?

    You can set rowCount instead of height.
    Tracy

  • How to set the height of a textarea dynamically

    Hi,
    I have been trying to set the ui.textarea's height dynamically and I am not able to do it. This is what I am doing.
    <ui:textArea binding="#{assignment$EditResult.textArea2}" id="textArea2" style="height: 90%" text="#{currentRow.value['comments']}"/>
    The height is being ignored and it is set to the default size. How can I set the height of this component to fit to the size of its cell, which is dynamic?
    Thanks for your help.

    Thank you for your help! It worked for something like this:
    getTextArea2().setStyle("color : red");
    but this does not work still.
    getTextArea2().setStyle("height: 90%");
    I think it still does not know the size of the cell at this point yet. But this is a good tip, thanks anyway!
    ~Kazzie

  • Using JDAPI to set the height of the Forms Canvas to it's default value

    Hi,
    I've been trying for a while to use the JDAPI to set the height of the Oracle Form Canvas to it's default value.
    Can anyone advice how to do this ?
    Can the currCanvas.inheritProperty(arg0) be used in this case ?
    Thanks in advance,
    regards

    Hi David,
    Note that I used a Footer Row in my Table. Headers and Footers have special properties. (A poster in the last couple of weeks asked for a summary of Header and Footer properties - somewhat frustrated that he couldn't find a succinct description in the User Guide. Well, there isn't one and the answer is so complicated that nobody has taken on the project. Now we have a new version of Numbers and the answer would need to change.)
    The way to avoid the error is to use a Footer Row and to use the shortcut cell reference notation: =SUMIF(C,TRUE,B). The columns are specified, but the row range is not. Footers are exempt in this notation, so no error is generated regarding a circular reference.
    Hope this clears it up.
    Jerry

  • How can I set the height of ui:pageSeparator to less than 24px?

    I've tried setting the height style but that appears to be ignored.

    I have tried setting the height property of the page separator, but still the height in the IDE & in the browser is more then 7px. Is there a solution?
    This is the style property value of the page separator.
    border-width: 0px; margin: 0px; padding: 0px; height: 7px

  • Setting fixed height in Crystal Reports sections

    Hi,
    I want to set the height of detail section in crystal report. I want to set the details section such that it must at the most accommodate 10 records in the section.
    If I have only 2 records in the section, it should show 8 empty lines.
    If I have more than 25 records in the section, the remaining 15 records will be placed on the next page.
    After that, the footer will be printed at the end of it.
    Is this possible?
    Thanks.

    Try this:
    1. You can also create a SQL expression field or use a subreport  to read how many records that it returns.
    2. Have 10 detail section; and
    3. In each section, put in all fields; and
    4. Have a running total in each section; and
    5. For each field in the section, you suppress based on the running total; and
    6. Do not suppress blank section; and
    7. Set new page if the running total is more than > 10

  • How to set  row height  for  each row

    Hi
    i am trying to set rowheight of row in a JTable using setRowHeight(row,rowheight)
    it is not affecting on Table.but if i use setRowheight(rowheight) it applying
    entire table ,please help me to solve this problem
    after setRowHeight(row,rowheight), i am calling firechanged() method also ,i t will not affecting please hemp me
    how to set row height at runtime in a JTable

    Ok fine... do one thing... post ur code here let me check and tell u....
    Ciya.....

  • How to set specific height in JLabel but vary in width ...

    Hi,
    I want to set the height of JLabel to fix height but vary the width according to the content of the label...
    How does I do that ??
    JLabel lbl = new JLabel("Hello this is aman");
    lbl.setPreferredSize(100,30);
    If the the text is changed, the width will be truncated at 100 pixels... how do I change
    that to height 30, but width change according to text ?
    thank

    Hi..
    may be this works for you ---
    since u want to adjust the width with the text size.. means that you will be taking an input from the user and then set it on the label.. so before setting the text on the label & width of label .. get the length of the text and set this length as the width parameter to method setPrefferedSize()..
    ex:
    // get the text from textbox
    String userinp = textbox.getext();
    JLabel lbl = new JLabel();
    lbl.setPreferredSize(userinp.length,30);
    lbl.setText(userinp);

  • How to set Panel height to browser height?

    I have a panel in a module in an application (App > Module > Panel). I would like the panel to take up the full height of the browser window. How can I achieve this? Trying to set height="100%" doesn't work, and makes the panel disappear. Setting the layout to absolute also doesn't work when setting top and bottom margins to 20.
    Any ideas welcome.
    Thanks!
    Mike

    There is something odd going on. I did what you suggested, but then the module doesn't display. However, when I remove the percentage-based height tags everything shows up.
    It seems that the Panel object is sensitive to height being percentage-based. As soon as I set its height to "500" instead of "100%" it displays.

  • Setting AFrame height to the height of a graphic inside aframe plus padding

    Hello fellows,
    I am trying to set a permanent bottom padding between an anchored frame and a graphic object (embedded Visio) that is inside the anchored frame.
    However, instead of getting that padding below the graphic, the aframe becomes really small, and only 20% of the graphic is exposed.
    The code goes like this:
    SET vFrame = vCurrentDoc.FirstGraphicInDoc;
    Loop While(vFrame)
    IF vFrame.ObjectName = 'AFrame'
    SET vFrame.AnchorType = AnchorBelow;
    SET vFrame.GraphicIsSelected = 1;
    SET vGraphic = vFrame.FirstGraphicInFrame // Select the 1st graphic in the frame
    SET vFrame.Width = vFrame.TextLoc.InTextObj.Width;
    SET vFrame.Height= vGraphic.Height + 5mm; //Here is the padding of 5mm
    Set vGraphic.LocY = 0mm;
    Set vGraphic.LocX = (vFrame.Width - vGraphic.Width) / 2;
    ENDIF
    Please, advise!
    Thank you!

    This works for me:
    // Set a variable for the active document.
    Set oDoc = ActiveDoc;
    // Set a variable for the selected anchored frame.
    Set oAFrame = oDoc.FirstSelectedGraphicInDoc;
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    // Make the anchored frame's height 5 mm taller than the graphic.
    Set oAFrame.Height = oGraphic.Height + 5mm;
    // Move the graphic to the top of the anchored frame.
    Set oGraphic.LocY = 0;
    // Center the graphic horizontally in the anchored frame.
    Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    After you get it tested, then put it in a function:
    Set oDoc = ActiveDoc;
    Set oAFrame = FirstSelectedGraphicInDoc;
    Set iResult = AdjustAFrameAndGraphic{oAFrame};
    Function AdjustAFrameAndGraphic oAFrame
    Local oGraphic(0);
    // Update the anchored frame's position.
    Set oAFrame.AnchorType = AnchorBelow;
    // Set the width of the anchored frame to match the containing text column.
    Set oAFrame.Width = oAFrame.TextLoc.InTextObj.Width;
    // Get the first graphic in the anchored frame.
    Set oGraphic = oAFrame.FirstGraphicInFrame;
    If oGraphic
      // Make the anchored frame's height 5 mm taller than the graphic.
      Set oAFrame.Height = oGraphic.Height + 5mm;
      // Move the graphic to the top of the anchored frame.
      Set oGraphic.LocY = 0;
      // Center the graphic horizontally in the anchored frame.
      Set oGraphic.LocX = (oAFrame.Width - oGraphic.Width) / 2;
    EndIf
    EndFunc // -------------------------------------------------------------------
    -Rick

  • Set the height and width of a new browser window

    I am trying to open a new browser window when the user clicks
    on an audio. The audio will be played in the new browser window.
    The only problem I have is that I cannot set the height and width
    of the new browser window. I need the window to be much smaller.
    How can I do this in flash?

    You need to ask on a JavaScript forum. Java != JavaScript

  • Set isolatedHtmlContainer height when displaying portal page

    Hi,
    I have a portal application which displays portal pages from the pcd in isolatedHtmlContainer.
    The page's content is dynamic so the height is not fixed and therefore in the page's properties the height's value set to 'Automatic'
    However, when working with isolatedHtmlContainer the height could be set in pixels or percentage only (I cannot set it to 'Automatic').
    p.s
    If the height was fixed I could get it by the profile of IPortalComponentContext, but if I will do that I'll get a string like 'Automatic' which doesn't help me...)
    Thanks,
    Omri

    Hi Martin,
    I read the blog but the javascript doesn't affect my IsolatedHtmlContainer.
    Let me rephrase my question:
    In the portal innerpage I display X IsolatedHtmlContainers (my application decides how many pages to display). Each container has dynamic content (a portal page from the pcd), therefore, I have a problem setting the height of the IsolatedHtmlContainers (too low - scrolling bar, too high - blank space).
    The properties of the portal pages from the pcd are set as follows:
    isolation method - URL
    height method: Automatic
    If I display the pages without the IsolatedHtmlContainers, the 'Automatic' feature works and the page's size is OK.
    So my question is:
    Is there a way for the IsolatedHtmlContainer adjust its size according to its content?
    Thanks,
    Omri

  • Is there any way to set the height of choice list or list of values?

    Hello Everyone,
    (Jdeveloper: 11.1.2.1.0)
    I recently created a page with some fields as choice lists and some as list of values. Somehow the choice list when opened it is not displaying data properly (I have 3 rows, it is showing only 2 rows and have to scroll to see third row) . I would like to see if there is any way to set this so that I can see all three rows or set the height of choice list as a fixed height?
    Thanks,
    Ravi Nuka.

    Hi Manish,
    sorry for the delay, here the code for the list binding from vo.xml
      <ListBinding
        Name="LOV_SetOfBooks"
        ListVOName="NfSetOfBooksRVO1"
        ListRangeSize="-1"
        NullValueFlag="none"
        MRUCount="0"
        ComboRowCountHint="10">
        <AttrArray Name="AttrNames">
          <Item Value="SetOfBooks"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="SetOfBooksName"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="SetOfBooksName"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
    <ViewAttribute
        Name="SetOfBooks"
        PrecisionRule="true"
        EntityAttrName="SetOfBooks"
        EntityUsage="EdContractsEO"
        AliasName="SET_OF_BOOKS"
        LOVName="LOV_SetOfBooks">
        <Properties>
          <SchemaBasedProperties>
            <DISPLAYWIDTH
              Value="30"/>
            <CONTROLTYPE
              Value="combo_lov"/>
          </SchemaBasedProperties>
        </Properties>
      </ViewAttribute>Thanks,
    Ravi Nuka

  • When set dataGrid showHeader = false, dataGrid.rowCount then +1, this bug can solve?

    When I set DataGrid.showHeader=false, then
    DataGrid.rowCount+1.
    My code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script><![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var Arc:ArrayCollection = new ArrayCollection([
    {a:1,b:12,c:13},{a:2,b:22,c:23},{a:3,b:32,c:33}]);
    [Bindable]
    private var RowCount:int = 3;
    ]]></mx:Script>
    <mx:DataGrid id="DtgShowHeader" dataProvider="{Arc}"
    rowCount="{RowCount}" horizontalGridLines="true"
    horizontalGridLineColor="black"
    showHeaders="true">
    <mx:columns>
    <mx:DataGridColumn dataField="a" headerText="a"/>
    <mx:DataGridColumn dataField="b" headerText="b"/>
    <mx:DataGridColumn dataField="c" headerText="c"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Label id="LblDtgShowHeaderRowCount"/>
    <mx:Button label="ShowHeader=True RowCount"
    click="LblDtgShowHeaderRowCount.text = 'DtgShowHeader.RowCount=' +
    DtgShowHeader.rowCount.toString();"/>
    <mx:DataGrid id="DtgHiddenHeader" dataProvider="{Arc}"
    rowCount="{RowCount}" horizontalGridLines="true"
    horizontalGridLineColor="black"
    showHeaders="false">
    <mx:columns>
    <mx:DataGridColumn dataField="a" headerText="a"/>
    <mx:DataGridColumn dataField="b" headerText="b"/>
    <mx:DataGridColumn dataField="c" headerText="c"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Label id="LblDtgHiddenHeaderRowCount"/>
    <mx:Button label="ShowHeader=False RowCount"
    click="LblDtgHiddenHeaderRowCount.text =
    'DtgHideenHeader.RowCount=' +
    DtgHiddenHeader.rowCount.toString();"/>
    </mx:Application>
    Anyone meet this problem?

    Possibly this?
    http://bugs.adobe.com/jira/browse/SDK-14463
    Peter

Maybe you are looking for

  • ADF,how to delete parent record and related child record without manual cod

    Hi All, I'm using 11g adf. I have one parent table PAR and two child table CHD1 , CHD2 respectively. I'm inserting values in three tables , making a form having add , delete and edit buttons. Issue when i want to delete a record from PAR table , it g

  • I'am looking for Firefox 4 web browser to download.

    I am having trouble with this web site because it has a lot of pop's which my work use's this web base software. And the company said that at this time the web site only supports Firefox 4 or Internet explorer 8. I am trying to download Firefox 4 but

  • Bought an iPhone 4S, having issues..

    So I can't activate the iPhone. I bought it second hand from a friend. Bought off him, restored, n it required the Apple ID, so I ask my friend for the id, but he told me he found it And doesn't know the owNer. I didn't know it was lost. He didn't bo

  • I am trying to figure out how to cut and paste in elements 11

    I am trying to figure out how to cut and paste in elements 11

  • Overview of BO

    Is there any article on the Overview of Business Objects? Comparison between BO and BW? If we already have BW, why BO will further benefit the business?