How to make spark datagrid columns to behave like mx datagrid columns

Hello.
I have a problem with spark datagrid component. I can't force spark datagrid columns behave like old mx datagrid columns. In mx datagrid columns fills 100% of datagrid regardles of resizing column or datagrid itself (it will not show horizontal scrolling bar). In spark datagrid last column (colC) will never word wrap, event after setting horizontalScrollPolicy=off. I would like to somehow constrain spark columns to behave like mx ones.
App snippet (try to resize app and columns - especially colC - and you will see what I mean):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
        <s:ArrayCollection id="dp">
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
            <s:DataItem colA="some sample data" colB="some sample data" colC="some sample data"/>
        </s:ArrayCollection>
    </fx:Declarations>
    <s:layout>
        <s:HorizontalLayout/>
    </s:layout>
    <s:DataGrid id="grid" width="100%" height="100%" dataProvider="{dp}" variableRowHeight="true" horizontalScrollPolicy="off">
        <s:columns>
            <s:ArrayList>
                <s:GridColumn headerText="Column A" dataField="colA"/>
                <s:GridColumn headerText="Column B" dataField="colB"/>
                <s:GridColumn headerText="Column C" dataField="colC"/>
            </s:ArrayList>
        </s:columns>
    </s:DataGrid>
    <mx:DataGrid id="grid2" width="100%" height="100%" dataProvider="{dp}" wordWrap="true" variableRowHeight="true">
        <mx:columns>
            <mx:DataGridColumn headerText="Column A" dataField="colA"/>
            <mx:DataGridColumn headerText="Column B" dataField="colB"/>
            <mx:DataGridColumn headerText="Column C" dataField="colC"/>
        </mx:columns>
    </mx:DataGrid>
</s:Application>

the datagrid has sortItems and sortItemsOn methods you can use.

Similar Messages

  • How to make a dmp file for a table contains encrypted column/s?

    Hi All,
    I've created a table with encrypted columns using TDE (Wallet). When I tried to make a dmp file by this command:
    exp system/password file=<path>\ex.dmp owner=ex
    the command pormpt gives this error: Feature (COLUMN ENCRYPTION) of column EMP_SSN in table EX.EMPLOYEES is not supported. the table will not be exported.
    How to solve this problem?
    I want to make a dmp file which export data of encrypted column in an encrypted format not clear format. How?
    Note:
    there is a parameter: ENCRYPTED_COLUMNS_ONLY: Encrypted columns are written to the dump file set in encrypted format

    Start by reading the manual :-
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_overview.htm#SUTIL100
    Or you can run in interactive mode :-
    [oracle@dev-oranode-221 ~]$ expdp
    Export: Release 11.2.0.1.0 - Production on Mon Nov 23 13:08:00 2009
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    Username: a
    Password:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining, Oracle Database Vault
    and Real Application Testing options
    FLASHBACK automatically enabled to preserve database integrity.
    Starting "A"."SYS_EXPORT_SCHEMA_01":  a/********
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 192 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/POST_TABLE_ACTION
    Processing object type SCHEMA_EXPORT/MATERIALIZED_VIEW
    Processing object type SCHEMA_EXPORT/TABLE/MATERIALIZED_VIEW_LOG
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
    . . exported "A"."EMP"                                   5.421 KB       1 rows
    . . exported "A"."EMP_MV"                                5.429 KB       1 rows
    . . exported "A"."TEST"                                  5.023 KB       1 rows
    . . exported "A"."MLOG$_EMP"                                 0 KB       0 rows
    . . exported "A"."SOURCE"                                    0 KB       0 rows
    Master table "A"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for A.SYS_EXPORT_SCHEMA_01 is:
      /opt/oracle/product/admin/db1122/dpdump/expdat.dmp
    Job "A"."SYS_EXPORT_SCHEMA_01" successfully completed at 13:09:23

  • How do I create a title, that behaves like a button?

    Hi,
    I'm using XML to load data from asp to flash. Here's the XML
    example:
    1. <?xml version="1.0" encoding="iso-8859-1"?>
    2. <news>
    3. <item>
    4. <headline>Flash XML Based News reader out
    today!</headline>
    5. <date>05/09/1986</date>
    6. <message>Today my new xml based flash news reader
    came out, I am so excited!</message>
    7. </item>
    8. <item>
    9. <headline>One day until the Flash XML Based News
    reader is out!</headline>
    10. <date>05/08/1986</date>
    11. <message>Tomorrow my new xml based flash news
    reader comes out, I am so excited!</message>
    12. </item>
    13. <item>
    14. <headline>Two days until the Flash XML Based News
    reader is out!</headline>
    15. <date>05/07/1986</date>
    16. <message>The day after tomorrow my new xml based
    flash news reader comes out, I am so excited!</message>
    17. </item>
    18. </news>
    And here's the ActionScript part:
    1. // Initialize the xml object that our news will be loaded
    into
    2. var news_xml : XML = new XML();
    3. // ignore all whitespaces inside of our xml file
    4. news_xml.ignoreWhite = true;
    5. // when the xml recieves a return from the load() function
    call, execute this function
    6. news_xml.onLoad = function( success : Boolean ) {
    7. // if the xml file was successfully loaded
    8. if ( success ) {
    9. parseNews(this);
    10. }
    11. }
    12. // call the load function on the xml object, passing in
    the url of your xml file
    13. news_xml.load("xmlTutorial.xml");
    14. // this function will take our news xml object and parse
    it
    15. function parseNews( _xml : XML ) : Void {
    16. // first we create an array that holds all the values of
    the item nodes
    17. var items : Array = _xml.firstChild.childNodes;
    18. // now we want to iterate over every item in the items
    array
    19. // and parse the nodes as we see fit
    20. for ( var i : Number = 0 ; i < items.length ; i ++ ) {
    21. // here we set the text of the text field ( news_txt )
    22. // the first thing we add to the textfield is the
    headline then a line break
    23. news_txt.htmlText += "<b>" + items
    .childNodes[0].firstChild +"</b><br>";
    24. // next we add the string date followed by the date value
    in the xml file
    25. news_txt.htmlText += "Date: " +
    items.childNodes[1].firstChild + "<br>";
    26. // now we add the message, then two line breaks, only for
    formatting
    27. news_txt.htmlText += " " + items
    .childNodes[2].firstChild + "<br><br>";
    28. }
    29. }
    So far is everything clear to me. But what I want to do now
    is that after a user clicks on title, next happens:
    the current swf unloads
    the flash sends data to asp (ID of an article and ID of an
    author, which movie to load next).
    How do create a title/button?I know how to make a title to
    behave like a link (just add the
    http://... in the headline tag in XML
    document. But this,..... I just don't know how to do that.
    THX for any help

    2m, you are right. I should tell you about my concept. It's
    all on the paper yet, because this is how I work - first I write
    down everything on paper, study it and the next step in trying to
    make it work on computer.
    I have a main swf, I call it system.swf. System.swf receives
    the info about the swfs, it must be loaded from html tag
    <object><param>. The ID of the movies is send from
    flash to asp and then via <object>back to flash. Does that
    make sense? Is there a better way for that?
    So, the system.swf is loaded for the whole time - let's say
    it on level1. On level 2 are then loaded other swfs.It depends
    which content the user wants to see.
    About the article part:
    first the user sees the list of last articles (title, date
    and short description). When he/she clicks on the title, all the
    action happens:
    flash sends the data which article the user wants to read to
    asp, asp searches in data base for the requested article and
    creates xml, where are title, date and the whole content of the
    article.
    At the same time asp also sends via <object>tag in html
    the id of the swf that must be loaded and the id of the author of
    the article, so the swf, where the pictures of the all authors are,
    will know what picute must load (this is the second swf that is
    loaded on the article part - it's created like a gallery; the
    author of the active article is bigger and if the user wants to
    read the last article of other author, he/she just closes the
    picture and then the images are moving in a slider way and when
    he/she clicks on an image, it get larger and the last artcle of
    this author is loaded).
    And I wonder how can I make this all to happen: when the user
    clicks on a title, all the var action happens?
    If you have better idea how to create this, please, advice.
    THX for the help so far

  • How to make this work with Firefox, I like not to use microsoft products! HELP!

    Downloading for Realplayer, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. Hoow to make this work with Firefox, I like not to use microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • How to make the navigation tree icon in an advanced datagrid to expand in different columns

    Hi All ,
    I am using an application built using Flex 3 .
    In my application I am using an AdvancedDataGrid for datadisplay.
    And the hierachy is like this
    Tree structure in advanced datagrid at present :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Parent Tree
       Expanded1
          Expanded2
              Expanded3
                     ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    Expected tree structure in advanced datagrid :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    can someone tell me if this is possible in advanced data grid and if possible please let me know how do i expand the tree icons in seperate columns ...
    Thanks ,
    Ajantha

    Hi,
    you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
    Thanks,
    Jaydip Bosamiya
    +91-76000 23053
    http://jbosamiya.blogspot.com

  • How to make a select list to return value to numeric column?

    I do have a select list with static values (STATIC:01;0,02;1,03;2,04;3,05;4,06;5,07;6,08;7,09;8,10;9). The problem is that I am returning a value to a numeric column. Therefore I have set 'Post Calculation Computation' as "to_number(:P73_MRGRATING, 9);" however I am getting ORA-01722: invalid number. How, (or when and where) to properly convert a character from a select list representing a numeric value into column of NUMBER data type?
    Thank you for your time.
    DanieD

    Sergio,
    It is because I am not able convert a value in a page item (:P73_ID) to number. On a page before, I have assigned a value to an application item (APPL_ID). On page 73, I want to assign the value in APPL_ID to the page item P73_ID . The value assigned to APP_ID is numeric. On a page 73 I also have a computation in Page processing section. It is an 'After Submit' processing of a static assignment of application item APPL_ID to page item P73_ID. Unfortunately it does not work. (ORA-01722: invalid number). I have tested this also with a 'Post Calculation Computation' on page item P73_ID (to_number(:P73_ID, 9999999999);) and I am still getting ORA... error. Only way I can make it work is to create a page item P73_ID as a text field, then when I run page 73 and enter a value into P73_ID manually - then it works and I can save the values from the form into database...
    The strange thing is that I am using application item APPL_ID on a couple of pages, in where clauses and it always works, even when I am comparing APPL_ID against a numeric value like select * from a_table where some_number = :APPL_ID, this works. But when I would like to create an entry form and assign application item APPL_ID to the page item P73_ID that is referencing a numeric table column – then I am getting ORA-01722…
    Is there any application (sample application) that is doing this and it works so I can check it and learn how to create this process appropriately?
    Thank you for your time.
    DanielD

  • How to make a row non-editable depending on a db column value

    HI,
    I've an editable report region and the requirement is to make the row non-editable according to the value in one of the column. Like if the value for that column is null the row should be editable else non-editable. Any option to do this in Oracle APEX.
    Regards,
    Prasanth

    I assume you are using a tabular form. In that case, you would have to run a loop in Javascript to read all the rows in the Form. The example is given below. You can use Firebug in Firefox to identify your field names and replace f02, f03 and f04 with your field names.
    <script language="JavaScript" type="text/javascript">
    function f_readonly_items(){
    for (i=0;i<document.wwv_flow.length;i++)
    if (document.wwv_flow.f02.value) != Null
    document.wwv_flow.f02[i].readOnly = true;
    document.wwv_flow.f03[i].readOnly = true;
    document.wwv_flow.f04[i].readOnly = true;
    </script>
    Hope this helps.

  • How to make Spark transitions smooth?

    When I run even the most basic example of using transitions with view states:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf600c1-7fff.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7dc3
    the animation chokes on the first run (it is better the other times but still not perfectly smooth). What can I do to improve that?

    Flicker occurs because of
    1. inadequate cpu
    2. heavy code execution
    try looking at those

  • How to make an EditText with CFL act like a system "Item Description" ?

    Hello,
    I have added an EditText with a CFL linked to "lf_items".
    I want the EditText to act like a system "Item Description" EditText, so that when
    the user enters a value and presses on CTRL+TAB in it, a CFL event will not be triggered and the focus will simply be transfered to the next item.
    Does anybody know how to do that ?

    have found a solution.
    I wanted to have an EditText with a CFL pointing to
    SAPbouiCOM.BoLinkedObject.lf_Items .
    In sap's marketing document one can enter a free description to
    the "Item Description" column by using CTRL + TAB .
    I needed to build a similar solution.
    The answer I found was to:
    Track a CTRL+ TAB press,
    Read the value the user entered from the EditText.Value
    Totally stop the CFL event
    Do oMatrix.FlushToDataSource()
    Write the value to the DBDataSource of the user table
    Do oMatrix.LoadFromDataSource()
    Allow the CFL event to run as usual.
    Cheers

  • How do i let a java process behave like a daemon process

    i want to make a java application that will start up and remain running so it can accept client connections and i also want to be able to have some sort of application to stop the daemon process.
    How do i go about doing this

    Your Java app needs to listen on a socket for an incoming "close" request. The Java app would then should down neatly (maybe by interrupting the main processing thread).
    You would then have to code a script which would send the appropriate close sequence to the socket. Look at some of the Java networking/sockets tutorials.

  • How to create a ring/listbox that behaves like a listbox in html?

    Dear Sirs:
    I have an arrays that represents people's names with associated values:
    ID, Name
    2, Sara
    4, Marx
    6, Jackson
    9, Lisa
    ... and so on.
    All I want to do is to populate a ring or listbox (btw, which one is the correct?) that displays only the names and tell me which is the value associated to the selected name by the user.
    (That's pretty much the expected behaviour for those who are familiar with html).
    An extra issue: How can I tell the ring/listbox which name to display as default?
    Thank you so much!
    Best regards,
    Javier Mauricio
    (Using Trial LabView)
    PD: The enclosed VI shows that I have been only able to detect wich element number was selected (not
    the ID).
    Attachments:
    test.vi ‏17 KB

    Hello, Javier!
    I'll do my best to answer your question.
    Your sample VI was close. Since you can detect which element number was selected, the only thing that you need to do to display the value associated with the selected user name is to wire the element number to an Index Array function. Use the element number to select the correct row of the ID column. This gives you the value associated with the selected user name.
    To tell the ring/listbox which name to display as default, you just set the Value property for the control to the value that you want as the default. You do this by creating a property node. Then select the Value property (by default, the Value property is set to read). Right-click the Value property in the property node and sel
    ect Change to Write. Then you can wire your default value to it.
    The attached VI shows how to do what you want to do.
    Hope this helps.
    Mark Ridgley
    Attachments:
    example.vi ‏33 KB

  • How do I get my TV to behave like a monitor?

    I have a MacBook Air 3.2 version. It does not have a thunderbolt display port, just the normal one. I connected the MBA to the computer via the HDMI slot.
    I want the TV to act as a monitor for my computer. In particular, I want it to play video files. That is the reason why I am trying to set up the TV as a display. To play movies so that the movie doesn't take up all the real estate on my computer screen and I can do other things and have other things on my computer screen.
    I am in Korea and am having trouble doing this. I connected the TV and the MBA with the cable. What is the next step. I went to System Prefs and clicked "Detect Display" and nothing happens. I have the display icon in the menu bar at the top of the screen.
    What should I do with the TV? I went into menu and chose connection icon and then HDMI. The screen is blank and says "No signal".

    I think what happened was that I picked the wrong HDMI when I opened Menu on the TV. There were HDMI 1 and HDMI 2 and when I picked HDMI 2 it seemed to start working OK.
    The funny thing was that when I moved the menu bar back to the computer, I could not open system preferences. I think whatever I opened and didn't close on the TV, doesn't open on the computer, such as the video and System Preferences.
    The second time I tried it, I closed System Preferences on the TV and I was able to open System Preferences on the computer.
    The switching of the cursor is slow too. I couldn't find the cursor on the computer and it wasn't on the TV screen either. But after a while the cursor appeared on the screen.
    I went to Sound in System Preferences and could not find how to do this:
    You also need to set your audio out to use the HDMI connection
    Also, I now understand what "Arrangement" does. It is partly for the placement of the mouse/trackpad cursor. If the TV screen is to the right of my laptop, I position the TV screen to the right of the computer screen in Arrangement. So if I want to do something on the TV screen, I move the cursor to the right and off the computer screen. It then appears on the TV screen. Apologies if I am stating the obvious, this is a new discovery to me and I am starting to understand how displays work better.

  • How to make content Pane on JFrame looks like Moving

    Hi guys,I have to make a Content Pane look like Race Track which is constantly moving as the cars moves forward.

    Yeah, you might want to check out SwingWorker
    http://java.sun.com/products/jfc/tsc/articles/threads/update.html
    .. and put the cars in threads.

  • How to make bookmarked webpages available offline? Like in Internet Explorer?

    I wanted to make the webpages I bookmarked available offline. I could do this in the Internet Explorer by simply tweaking some of the bookmarks options. But I'm not able to do it in Firefox. Could please anyone help me? Thanks in advance.

    * Read It Later: https://addons.mozilla.org/firefox/addon/7661
    * ScrapBook: https://addons.mozilla.org/firefox/addon/427

  • How to make a textblock's background look like translucent, frosted glass

    Hey,
    I use a lot of textblocks with black letters on a white ground. I would like to make the ground translucent, but when I set the transparency to lower than 100%, the background of my textblocks becomes dark and grayish, instead of white translucent. I've tried everything I could find, but still cannot turn the background to look like (white) frosted glass.
    Thank you for your input,
    Mike

    I just tried this, and it seems to work:
    1. Googled for and found an image of "frosted glass"
    2. Dragged it to my desktop (= copied it to there)
    3. Opened the resultant .jpg file with Graphic Converter, which, in the "choose the image you want to open" scroll box, but before I actually opened the image, I set to "Create Preview" (you can see this happen in the scroll box)
    4. Opened, saved, and closed the image, which was now on my desktop looking like a little square of frosted glass.
    And now, in KN:
    1. Made a text box, with text.
    2. Used "Image fill" to get the image I'd made from the desktop.
    3. Set the image fill to "Scale to fill", which it did nicely.
    You can now (probably) do all the things to the text box which can usually be done. You might even be able to set this as your default text box background, but I didn't try it myself.
    Hope this helps.

Maybe you are looking for

  • Itunes can't sync contacts due to disconnect

    Has anyone had this happen? I try syncing all my contacts and I get this. Itunes could not synch this Ipod because it has been disconnected. I can't get it to pass this point. It is still connected. Any help is appreciated. I do have the most recent

  • Abap Inbound Proxy

    Hi Experts,   I have configured a file-XI-Proxy scenario. My input file has come into Xi server and target sytem(SAP R/3) also. I could see my XML msg in SXMB_MONI of target R/3 system.    Do I need any external trigger to call the method execute_asy

  • Format XSL results into rows of four

    Sorry - a bit lost - I have an xsl file that is returning results formatted into a 220px wide rectangle.  I want them to display 4-across and then start a new row. This has to be simple, right?  Do I do this in the php page, or the xsl page, or css..

  • Can't install Support Advisor – "unknown developer"

    Having installation/migration problems with Photoshop CS5 on my new MacBook Pro (to be described in a separate discussion), I obediently downloaded Adobe Support Advisor, mounted the disk image, and double-clicked the installer. But Mavericks said no

  • Where is my hard drive hiding?

    I have been using this old unit (see below) just to scan with my Arcus II scanner and using Photoshop 5.5. (call me old fashion but it's just what I need to scan, no further discussion needed here). MY PROBLEM is I turned my powerPC on 2 days ago and