Adjust dataGrid size to his content

Hi
I have a data grid... when i click a Button I populate this dataGrid with some information from a java server.
I want to know how can i adjust the numer of rows and the size of the columns to the information i get dinamically...
thanks a lot!

Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
http://bugs.adobe.com/jira/browse/SDK-13507
Anyway, I got this from the jira comments and works pretty good...
height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
I also have to call similar code when the data provider of the inner grids add/remove items.
Thanks!

Similar Messages

  • I have Photoshop cs6 Ext on an ASUS laptop. How can I increase the font size of the contents of the FILTER Panel situated on bottom left of screen. The font size is extreamly small and almost unreadable. I have changed display parameters, not the resoluti

    I have Photoshop cs6 Ext on an ASUS laptop. How can I increase the font size of the contents of the FILTER Panel situated on bottom left of screen. The font size is extreamly small and almost unreadable. I have changed display parameters, not the resolution, to no avail.
    David.

    Paragraph breaks are good for readability. ;-)
    Have you noticed any difference between your MacBook and others at the Apple store? Wondering whether this is a configurable setting at the system level, i.e., DPI.
    You can default Firefox to a larger zoom level to avoid having to zoom every page. You'll still be able to adjust the size for individual sites as needed. It sounds as though you are aware of these add-ons:
    * Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    * NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    There are some discussions about changing coming in Firefox 22 (I think) to address higher density displays like the Retina display. So perhaps there will be a built-in setting to address this in the future.

  • Is it possible to adjust the size of an inputText to the column size ..?

    Is it possible to adjust the size of an inputText that it correspond to the column size in a af:table.
    Thanks

    I don't need 30% ... i just need that me tree as a mininal width
    Here is my page :
    <af:panelBorder>
    <f:facet name="top">
    <af:panelHeader text="#{res['classification.repository.entryList.panelHeader.title']}"/>
    </f:facet>
    <f:facet name="left">
    <af:panelGroup layout="vertical">
    <af:panelHeader text="#{res['classification.repository.entryList.list.panelHeader.title']}">
    <af:tree value="#{bindings.ClassificationEntryListclassificationEntry.treeModel}"
    var="node">
    <f:facet name="nodeStamp">
    <h:panelGroup>
    <af:commandLink text="#{node.classificationEntryCategoryCode} #{node.classificationEntryCode}"
    shortDesc="#{res['classification.repository.entryList.tree.commandLink.shortDesc.textPart1']} #{node.classificationEntryStatus} #{res['classification.repository.entryList.tree.commandLink.shortDesc.textPart2']}#{node.classificationEntryCodeFullPath}">
    <f:param name="selectedIdentification"
    value="#{node.classificationEntryIdentification}"/>
    </af:commandLink>
    </h:panelGroup>
    </f:facet>
    </af:tree>
    </af:panelHeader>
    </af:panelGroup>
    </f:facet>
    <af:panelGroup layout="vertical">
    <af:panelHeader text="#{res['classification.repository.entryList.node.panelHeader.title']}"
    binding="#{backingRepositoryEntryList.entryNodePanelHeader}">
    <af:showDetailHeader text="#{res['classification.repository.entryList.base.panelHeader.title']}">
    <af:panelForm>
    <af:inputText value="#{bindings.classificationEntryCategoryCode.inputValue}"
    label="#{bindings.classificationEntryCategoryCode.label}"
    required="#{bindings.classificationEntryCategoryCode.mandatory}"
    columns="#{bindings.classificationEntryCategoryCode.displayWidth}">
    <af:validator binding="#{bindings.classificationEntryCategoryCode.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.classificationEntryCode.inputValue}"
    label="#{bindings.classificationEntryCode.label}"
    required="#{bindings.classificationEntryCode.mandatory}"
    columns="#{bindings.classificationEntryCode.displayWidth}">
    <af:validator binding="#{bindings.classificationEntryCode.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.classificationEntryCodeFullPath.inputValue}"
    label="#{bindings.classificationEntryCodeFullPath.label}"
    required="#{bindings.classificationEntryCodeFullPath.mandatory}"
    columns="#{bindings.classificationEntryCodeFullPath.displayWidth}">
    <af:validator binding="#{bindings.classificationEntryCodeFullPath.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.classificationEntryIdentification.inputValue}"
    label="#{bindings.classificationEntryIdentification.label}"
    required="#{bindings.classificationEntryIdentification.mandatory}"
    columns="#{bindings.classificationEntryIdentification.displayWidth}">
    <af:validator binding="#{bindings.classificationEntryIdentification.validator}"/>
    </af:inputText>
    </af:panelForm>
    </af:showDetailHeader>
    <af:showDetailHeader text="#{res['classification.repository.entryList.mainTitle.panelHeader.title']}">
    <af:table value="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.collectionModel}"
    var="row"
    rows="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.rangeSize}"
    first="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.rangeStart}"
    emptyText="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.viewable ? 'No rows yet.' : 'Access Denied.'}"
    selectionState="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.collectionModel.selectedRow}"
    selectionListener="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.collectionModel.makeCurrent}"
    width="100%">
    <af:column sortProperty="language" sortable="true"
    headerText="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.labels.language}"
    width="20%">
    <af:inputText value="#{row.language}" simple="true"
    required="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.attrDefs.language.mandatory}"
    columns="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.attrHints.language.displayWidth}"
    inlineStyle="width: 100%"/>
    </af:column>
    <af:column sortProperty="content" sortable="true"
    headerText="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.labels.content}">
    <af:inputText value="#{row.content}" simple="true"
    required="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.attrDefs.content.mandatory}"
    columns="#{bindings.ClassificationEntryTitleclassificationEntryMainTitle.attrHints.content.displayWidth}"
    inlineStyle="width: 100%"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectOne text="Select and">
    <af:commandButton text="Submit"/>
    </af:tableSelectOne>
    </f:facet>
    </af:table>
    </af:showDetailHeader>
    <af:showDetailHeader text="#{res['classification.repository.entryList.complementaryTitle.panelHeader.title']}">
    <af:table value="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.collectionModel}"
    var="row"
    rows="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.rangeSize}"
    first="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.rangeStart}"
    emptyText="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.viewable ? 'No rows yet.' : 'Access Denied.'}"
    selectionState="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.collectionModel.selectedRow}"
    selectionListener="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.collectionModel.makeCurrent}"
    width="100%">
    <af:column sortProperty="content" sortable="true"
    headerText="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.labels.content}"
    width="20%">
    <af:inputText value="#{row.content}" simple="true"
    required="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.attrDefs.content.mandatory}"
    columns="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.attrHints.content.displayWidth}"
    inlineStyle="width: 100%"/>
    </af:column>
    <af:column sortProperty="language" sortable="true"
    headerText="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.labels.language}">
    <af:inputText value="#{row.language}" simple="true"
    required="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.attrDefs.language.mandatory}"
    columns="#{bindings.ClassificationEntryTitleclassificationEntryComplementaryTitle.attrHints.language.displayWidth}"
    inlineStyle="width: 100%"/>
    </af:column>
    <f:facet name="selection">
    <af:tableSelectOne text="Select and">
    <af:commandButton text="Submit"/>
    </af:tableSelectOne>
    </f:facet>
    </af:table>
    </af:showDetailHeader>
    </af:panelHeader>
    </af:panelGroup>
    </af:panelBorder>

  • Why FlowLayout - JPane will NOT auto adjust in size?

    Hello java friends,
    I don't understand why my little demo program's JPane(use FlowLayout manager) will not adjust the size correctly. When run, I see one row of buttons, which only show 11 of them; the rest are shown on secon row which only visible if I go resize the window. Why is that? Wouldn't FlowLayout manager will auto size the pane? My main frame used the pack() method, so it's up to the pane's preferredsize. Please give me some ideas. Thanks.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Template {
        public static void main(String[] args) {
             JFrame mainFrame =new JFrame("Template");
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            mainFrame.setContentPane(new TemplatePane());
            //Display the window.
            mainFrame.pack();
            mainFrame.setVisible(true);
    class TemplatePane extends JPanel
              implements ActionListener {
         JButton componentAry[] =new JButton[100];
         TemplatePane() {
              this.setLayout(new FlowLayout());
              for(int i=0; i<componentAry.length; i++) {
                   componentAry[i] =new JButton("Test#"+i);
                   componentAry.addActionListener(this);
                   this.add(componentAry[i]);
         public void actionPerformed(ActionEvent ae) {
              System.out.println(ae.getActionCommand());

    I did read the API doc:
    >>>>
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. Flow layouts are typically used to arrange buttons in a panel. It will arrange buttons left to right until no more buttons fit on the same line. Each line is centered.
    >>>>
    My question is why won't it adjust the pane size if the there is more than one line? It did draw the second line for things that won't fit in the first line... just not visible unless the whole window is resized to a bigger view. Can you please provide an explanation?

  • Looking to get a new itunes account for my nephew, but he's been using my acount to download his content to ipod. How do i get him his own acount and allow him to download his own content without losing his current content?

    Any tips? The key thing is not losing his current content! Most of his content has been downloaded with MY account to his ipod, but now hes wanting his own account, so essentially id prefer to just switch over.

    Sure, you can mulitiple accounts on the iPod and on a computer.  It will require that the login be changed on the computer and iPod to do various actions like updating apps.  When apps from more than one account need to be update, you have to update them one at a time since you can only be signed inot one account at a time.  Also see:
    iTunes: How to share music between different accounts on a single computer

  • How can I adjust text size in ibooks dictionary?

    How can I adjust text size in ibooks dictionary?

    Hello Eoradec2012,
    It sounds like you are using the Define function in iBooks and you are wanting to increase the size of the font on the page showing the definition. The size of that text can be controlled in the Text Size section:
    To adjust the font size, follow these steps:
    Go to Settings > General > Text Size.
    Drag the slider to the preferred size. The text on the screen will adjust as you move the slider.
    iOS: Adjusting the font
    http://support.apple.com/kb/HT5956
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How do I adjust the size of program fonts to accommodate low vision users?

    Is it possible to adjust the size of program text to accommodate low vision users, like an enlarge text button or CTRL + zoom text function like in my browser?
    I know I am not the first person to approach this issue.  Since PSE 5 the text sizes have been getting smaller each version and even harder to read, and now that screens are much larger, it makes the menu text even smaller. I predict that by v. 20, users will have to just memorize where to put their cursor to click on a menu item.
    I have already adjusted my system text sizes to 175% but it does no good for PSE, if I use the zoom entire screen, I can only view 1/4 of the workspace at a time. There really should be an easy way to personalize your workspace. I have to reduce my screen resolution to 800x600 and change back to 1920x1080 to view the item in it's intended location each time I edit or create images and cannot work on the document that I am creating or editing a graphic at the same time.  What a huge inconvenience. 
    I have resorted to keeping my binoculars next to my computer for just this reason.  Picture it... binoculars to select anything on a menu.  In a way I feel like a prisoner.  Who are the quality control people, anyone that suffers with low vision? The last major problem I had to live with, PSE 10's gray on black! Find the scroll button when your eyes are tired! LOL.
    There are major reasons why I stick to PSE too, so changing programs is not a viable option for me.

    popsierose
    I am assuming that you are on Windows 7, 8, or 8.1 64 bit.
    Not sure if there is another way, but the way that works for me
    a. right click the computer taskbar, and click on Cascade Windows
    b. in the Premiere Elements Expert workspace, go the the bottom right edge of the workspace view, place the mouse cursor at that point until its tip has a diagonal icon, and then drag upward right to left diagonally to give some view of the desktop where I have the file for the drag and drop into Premiere Elements....then drag and drop the supported file into the Timeline or Project Assets or a drag and drop location.
    Please let us know if that worked for you.
    Thank you.
    ATR

  • I live in a home with two other people, and one housemate tried to sync up his content from iTunes and iCloud onto another housemate's new iPad. the iTunes library only contains my content. is there any way to retrieve the there person's iCloud?

    i live in a home with two other people, and one housemate tried to sync up his content from iTunes and iCloud onto another housemate's new iPad. the iTunes library only contains my content. is there any way to retrieve the other person's iCloud? Can they go out of my account? Their content is saved on their iPads, but can another iCloud be on the same home computer?

    The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
    https://discussions.apple.com/docs/DOC-3141

  • I have loaded windows 8.1 via bootcamp on my macbook air 11 inch how can i adjust font size etc

    I have loaded windows 8.1 via bootcamp on my macbook air 11 inch how can i adjust font size. I have to do a lot of work in office 2013 and it is very very difficult to see the screen.
    Thank you

    Microsoft store will provide a download manager (.exe) using your Product Key, which needs to be run on a PC. This manager will then let you download an ISO image to a USB and/or DVD.

  • Create pdf from html, how to adjust page size

    I have a large html file that I need to convert to a pdf. I am able to open the html in acrobat and save as pdf, but I cannot find where to adjust the page size. When I save the html in acrobat, the saved file is still a single page, but when I open the page in reader, then there are page breaks.
    How do I adjust the page size and create a single page document?
    There is also a header and footer line that I don't want. How do I get rid of those?
    LHH

    When you open the window for create PDF from web, select the settings. You can adjust the size and header/footer there.

  • How to adjust the size of a region?

    Hello, would anyone know how to adjust the size of a region size?
    Thanks for your replies!

    Checkout an interesting article called " Oracle9iAS Portal Best Practices: Regions" to understand resizing region.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_REGIONS_0.HTML

  • Scroll bar too narrow to handle- how do I adjust its size?

    Is there a way to adjust the size of the scroll bars WITHOUT effecting the dimensions of the arrange window?
    For some reason I have this one project where the scroll bars are smaller and impossible to grab and move around even though the dimensions of the arrange window are pretty average and in all the other projects the scroll bars are wide enough to grab and move. Is this a bug?? or is there somewhere where you can adjust their size in the preferences panel?
    Thanks!
    (using logic 9.1.7 on osx 10.6.8)

    popsierose
    I am assuming that you are on Windows 7, 8, or 8.1 64 bit.
    Not sure if there is another way, but the way that works for me
    a. right click the computer taskbar, and click on Cascade Windows
    b. in the Premiere Elements Expert workspace, go the the bottom right edge of the workspace view, place the mouse cursor at that point until its tip has a diagonal icon, and then drag upward right to left diagonally to give some view of the desktop where I have the file for the drag and drop into Premiere Elements....then drag and drop the supported file into the Timeline or Project Assets or a drag and drop location.
    Please let us know if that worked for you.
    Thank you.
    ATR

  • Is there a way to adjust the SIZE of artwork (movies, music, etc) there used to be a "slider"

    Is there a way to adjust the SIZE of artowrk (movies, albums, etc)?

    .02,
    See two views below.  Are we talking about the same thing:

  • How to adjust the size of the slide in keynote to 7.5 feet high x 3.1 feet wide?

    How to adjust the size of the slide in keynote to 7.5 feet high x 3.1 feet wide?

    Keynote is not designed to produce printed media, it is set up is for video. There are dozens of applications that are designed for printed output on the Mac, Pages, Word, In design, Quark, Open Office, Libra.
    Pages is the accompanying application in the iWork suite that is specifically designed to print to paper, you should look at that first as it May be on your Mac already.

  • Adjusting paper sizes

    I just bought a hp 510 plotter printer 42 inch I have 36inch paper the tech that installed the printer did not adjust paper size  !! I have tried to do this my self but I cant get it right!!therfore  I keep missing the last 2 inches on these blueprints can some one tell me how to do this Thanks current paper size is 36inch by 28 inch

    Hi Isis61,
    Try doing a Hard Reset as described in the following link.  Click Here  Also, shut your computer down.  Restart the computer after a minute.  Is there any difference?
    When you change the settings for A4 printing, is it done at the  Software  level or at the  Default  level?  Software settings will override default settings,
    What program are you using?  Does the A4 / A5 mix-up happen on other programs?
    What is the operating system for your computer?

Maybe you are looking for

  • How do I make my wireless trackpad discoverable?

    How do I make my wireless trackpad discoverable?

  • Best way to set up on external hard drive?

    Hi, when I got my macbook and logic pro 9 i was advised about having an external harddrive as this would take up some of the cpu load. I've just installed pro 9 on my macbook and it does seem to take up a lot of usage with the 'disk too slow' message

  • How can i unlock items in EP?

    Hi there.. I have this problem, when i create a Role. After creating it, i cannot change the properties of the Role cant be modify ...  And they will Lock my file and i cant do anything to it.. Does anyone have this probs and the solution to it ?? Th

  • Embedded system programming in java

    I want to know how to do embedded system programming in java. can anyone give some sample programs and tell me nice book for embedded programming in java

  • Why am I getting the 0x80020022 error when writing to my DVD?

    I started to get this error the other day.  I can't write anything to the DVD drive.  It reads just fine.  I saw a possible fix on Bing saying to "Repair Disc Permissions".  I tried that to no avail. I thinking of a complete format and reinstall.  Th