A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Problem with datagrid column sizing after loading new data

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Posts
    9

    Question Problem with datagrid column sizing after loading new data

    Here's my issue. I load some data by into a datagrid when a movie clip loads. There are some combo boxes that can be used to trigger a call to a database to get new data. The data always has the same structure. For some reason any subsequent calls to load info into the datagrid causes the first column to blow up almost to the width of the datagrid. I have the DataGridColumn object expressly set to 120 wide in the actionscript. The content being loaded into that column is only a couple of words. So there's a lot of whitespace after the text. Are there any ideas as to what could cause this to happen? It always loads properly initially then all subsequent changes of the data cause the first column to blow up like this.

  2. #2
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    I think this solve your issue:

    myDatasheet.ignoreWhite = true;
    Or if it is a text box:

    myTextbox.ignoreWhite = true;
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center