Sort DataGrid with ComboBox

I have a DataGrid with several columns and I would like to be
able to sort it with a ComboBox. So if option a in the comboBox is
selected then column A in the DataGrid will be used to sort. I
option B is selected then a different column wil sort the DataGrid.
How would I go about this?
Thanks
Dave

"dmschenk" <[email protected]> wrote in
message
news:gbe16o$c4p$[email protected]..
> I have a DataGrid with several columns and I would like
to be able to sort
> it
> with a ComboBox. So if option a in the comboBox is
selected then column A
> in
> the DataGrid will be used to sort. I option B is
selected then a
> different
> column wil sort the DataGrid. How would I go about this?
I think there's an example of this at
http://blog.flexexamples.com

Similar Messages

  • Silverlight DataGrid with Combobox rendering problem

    As you know that we have already implemented Silverlight application in our application, we need your help to resolve one issue that currently we are facing, actually this is a production bug. We are using Silverligh3 latest version. In our Silverlight
    page we have one data grid and inside that we have one dropdown list as a column and others are textboxes. The dropdown lists are attached with the data context using two way binding. Now in order to simulate the issue, add multiple rows (using front-end ‘Add
    Row’ custom button) on that data grid at runtime so that scrollbar is coming on the data grid, select data from combo boxes from first two rows, and after scrolling up and  down for 2-3times causing combo boxes data disappeared from selected ones and it is
    appearing on rows where no values are selected earlier. But if you reload the page then everything is coming as before. And we have checked that the data context object is purely ok and this is a layout refreshing problem only. I do not know whether this is
    a bug of Silverlight or not, but as this is a production issue, I need your help urgently.

    Thanks for your reply. I have simulated the problem in a test page which I have uploaded in this forum. As per your suggestion I have added the code but I doubt whether I have
    done it properly. Please check the code as after incorporating the StackPanel also it behaves the same way. You will find the source code for Page1.xaml and the Page1.xaml.vb below in this page. Please review and let me know why virtualization is still active. 
    Page1.xaml
    <navigation:Page x:Class="SLClientApp.Page1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    mc:Ignorable="d"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    d:DesignWidth="640" d:DesignHeight="480"
    Title="Page1 Page">
    <Grid x:Name="LayoutRoot">
    <data:DataGrid Margin="18,0,18,18" VirtualizingStackPanel.VirtualizationMode="Standard" x:Name="dtgTestGrid" ItemsSource="{Binding Mode=TwoWay, Path=TestDataCol}" AutoGenerateColumns="False" >
    <data:DataGrid.Columns>
    <data:DataGridTemplateColumn Header="Test Combo">
    <data:DataGridTemplateColumn.CellTemplate>
    <DataTemplate>
    <ComboBox VirtualizingStackPanel.VirtualizationMode="Standard" Loaded="SetDataForCombo" x:Name="cmbTestCombo" Height="24" Width="120" >
    <ComboBox.ItemsPanel>
    <ItemsPanelTemplate>
    <StackPanel/>
    </ItemsPanelTemplate>
    </ComboBox.ItemsPanel>
    </ComboBox>
    </DataTemplate>
    </data:DataGridTemplateColumn.CellTemplate>
    </data:DataGridTemplateColumn>
    </data:DataGrid.Columns>
    </data:DataGrid>
    </Grid>
    </navigation:Page>
    Page1.xaml.vb
    Imports System.Collections.ObjectModel
    Partial Public Class Page1
    Inherits Page
    Public objTestClassCol As New TestClassCol
    Public Sub New()
    InitializeComponent()
    End Sub
    'Executes when the user navigates to this page.
    Protected Overrides Sub OnNavigatedTo(ByVal e As System.Windows.Navigation.NavigationEventArgs)
    End Sub
    Private Sub SetDataForCombo(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
    For iCount = 1 To 5
    CType(sender, System.Windows.Controls.ComboBox).Items.Add("Value" + CStr(iCount))
    Next iCount
    End Sub
    Private Sub Page1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
    LayoutRoot.DataContext = objTestClassCol
    For iCount = 1 To 30
    objTestClassCol.TestDataCol.Add(New TestClass)
    Next
    End Sub
    End Class
    Public Class TestClass
    Private strLVTestData As String
    Public Property TestData() As String
    Get
    Return strLVTestData
    End Get
    Set(ByVal value As String)
    strLVTestData = value
    End Set
    End Property
    End Class
    Public Class TestClassCol
    Private objLVTestData As New ObservableCollection(Of TestClass)
    Public Property TestDataCol() As ObservableCollection(Of TestClass)
    Get
    Return objLVTestData
    End Get
    Set(ByVal value As ObservableCollection(Of TestClass))
    objLVTestData = value
    End Set
    End Property
    End Class

  • Sort DataGrid with dataprovider XMLisCollection

    I can't get my datagrid to sort when I have a
    XMLListcollection as the dataprovider and I have to use a
    labelfunction to get the records to display because of the
    namespace in the XML (Replicating a .NET web service).
    Can someone help, Please?
    I have the following code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="initApp()" >
    <mx:Script>
    <![CDATA[
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.controls.DataGrid;
    import mx.events.DataGridEvent;
    import mx.collections.*;
    import mx.controls.Alert;
    import mx.formatters.DateFormatter;
    //the dataProvider for the DG
    [Bindable]
    private var _xlc:XMLListCollection;
    [Bindable]
    private var sortA:Sort;
    // The sort fields used to determine the sort.
    private var sortBySeverity:SortField;
    private var sortByRequestor:SortField;
    public function initApp():void
    namespace myNameS = "myNamespace.Test";
    use namespace myNameS;
    _xlc = new
    XMLListCollection(GetRequestList.*..SafRequestListVO);
    //testing element values
    trace(GetRequestList.*..SafRequestListVO.SeverityLevel);
    sortA = new Sort();
    sortBySeverity = new SortField("SeverityLevel", true, true);
    sortByRequestor = new SortField("Requestor", true);
    sortA.fields=[sortBySeverity, sortByRequestor];
    _xlc.sort=sortA;
    _xlc.refresh();
    dg.dataProvider = _xlc;
    dg.rowCount=_xlc.length +1;
    /**labelFunction to return data to DG by reference of
    dataField*/
    private function LF(item:Object,
    column:DataGridColumn):Object
    namespace myNameS = "myNamespace.Test";
    use namespace myNameS;
    var colDataField:Object = column.dataField;
    switch (colDataField) //logic to determine which node to get
    the data from
    case "SAFNumber":
    return item.SAFNumber;
    break;
    case "RequestDate":
    var date:String = new String(item.RequestDate).toString();
    var df:DateFormatter = new DateFormatter();
    df.formatString = "YYYY-MM-DD";
    return df.format(date);
    break;
    case "SeverityLevel":
    return item.SeverityLevel;
    break;
    case "Requestor":
    return item.Requestor;
    break;
    case "IssuedToDepartment":
    return item.IssuedToDepartment;
    break;
    default:
    return item.dataField;
    break;
    ]]></mx:Script>
    <mx:Canvas id="datagridParent" borderStyle="solid"
    height="450" width="100%" >
    <mx:DataGrid id="dg" width="100%" height="100%"
    rowCount="5" labelFunction="LF">
    <mx:columns>
    <mx:DataGridColumn dataField="SAFNumber"
    headerText="SAFNumber"/>
    <mx:DataGridColumn dataField="Requestor"
    headerText="Requestor"/>
    <mx:DataGridColumn dataField="RequestDate"
    headerText="RequestDate"/>
    <mx:DataGridColumn dataField="IssuedToDepartment"
    headerText="IssuedToDepartment"/>
    <mx:DataGridColumn dataField="SeverityLevel"
    headerText="SeverityLevel"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    <mx:XML id="GetRequestList" format="e4x">
    <GetRequestListResponse xmlns="myNamespace.Test">
    <GetRequestListResult>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3301</RequestGuid>
    <SAFNumber>1</SAFNumber>
    <RequestDate>03/24/2007</RequestDate>
    <Requestor>Michael</Requestor>
    <IssuedToDepartment>1</IssuedToDepartment>
    <IssuedToArea>3</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>Problem Details........Problem
    Details........</Problem>
    <SeverityLevel>3</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3302</RequestGuid>
    <SAFNumber>2</SAFNumber>
    <RequestDate>02/21/2006</RequestDate>
    <Requestor>Bill</Requestor>
    <IssuedToDepartment>1</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>Problem Details........Problem
    Details........Problem Details........Problem
    Details........Problem Details........</Problem>
    <SeverityLevel>1</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3303</RequestGuid>
    <SAFNumber>3</SAFNumber>
    <RequestDate>01/06/2007</RequestDate>
    <Requestor>Jonathan</Requestor>
    <IssuedToDepartment>8</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>string</Problem>
    <SeverityLevel>1</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3304</RequestGuid>
    <SAFNumber>4</SAFNumber>
    <RequestDate>03/27/2007</RequestDate>
    <Requestor>Bill</Requestor>
    <IssuedToDepartment>7</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>Problem Details........Problem
    Details........Problem Details........Problem
    Details........Problem Details........</Problem>
    <SeverityLevel>3</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3305</RequestGuid>
    <SAFNumber>5</SAFNumber>
    <RequestDate>12/21/2006</RequestDate>
    <Requestor>Mike</Requestor>
    <IssuedToDepartment>4</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>string</Problem>
    <SeverityLevel>2</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3306</RequestGuid>
    <SAFNumber>6</SAFNumber>
    <RequestDate>04/02/2007</RequestDate>
    <Requestor>Nick</Requestor>
    <IssuedToDepartment>2</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>Problem Details........Problem
    Details........Problem Details........Problem
    Details........Problem Details........</Problem>
    <SeverityLevel>3</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    <SafRequestListVO>
    <RequestGuid>3F2504E0-4F89-11D3-9A0C-0305E82C3307</RequestGuid>
    <SAFNumber>7</SAFNumber>
    <RequestDate>03/27/2007</RequestDate>
    <Requestor>Sandeep</Requestor>
    <IssuedToDepartment>4</IssuedToDepartment>
    <IssuedToArea>2</IssuedToArea>
    <IssuedByDepartment>string</IssuedByDepartment>
    <Problem>Problem Details........Problem
    Details........Problem Details........Problem
    Details........</Problem>
    <SeverityLevel>2</SeverityLevel>
    <CurrentState>string</CurrentState>
    </SafRequestListVO>
    </GetRequestListResult>
    </GetRequestListResponse>
    </mx:XML>
    </mx:Application>

    Michael, I am sorry, but I myself have significant difficulty
    with xml namespaces. I have managed to get some examples working
    but only by trial and error and studying up on Namespace in the
    docs.
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=582
    I am just not good enough with them to be able to tell you
    what you need to do.
    Tracy

  • Datagrid with comboBox headerRenderer question

    Hi All,
    I have a comboBox as header renderer in my datagrid.
    How can I fire a function that it is in my main form (where the datagrid is) when I change the selected item in the comboBox?
    Thanks
    Johnny

    Why my HTML Code didn't show.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml"
                 labelField="label" dataProvider="{acCombo}" rowCount="20"
                 change="onSelectionChange(event)" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.dataGridClasses.DataGridColumn
                import mx.rpc.events.ResultEvent;
                [Bindable]private var acCombo:ArrayCollection = new ArrayCollection ([{id:1, label:"Private"},{id:2, label:"Public"}]);
                private var _ownerData:Object;
                public function init():void
                    //init code
                override public function set data(value:Object):void
                    if (value is DataGridColumn ){
                    }else
                        super.data = value
                override public function get data():Object
                    return _ownerData;
                override public function setFocus():void
                    super.setFocus();
                    open();
                private function onSelectionChange(e:ListEvent):void
            ]]>
        </mx:Script>
    </mx:ComboBox>

  • DataGrid with dynamic comboboxes

    I need to design a dataGrid with comboboxes in one column. These comboboxes should all have different dataProviders based on a value from column 1. What would a general approach be?
    Thanks

    The renderer's data property is the data for the entire row so you can get the column1 data and assign the combobox's dataprovider accordingly.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Custom DataGrid problems with Comboboxes

    I am using a custom datagrid with comboboxes and
    colorpickers. I found this code on the web and adapted it to work
    with my code. The only problem is that if you pull down a combobox
    and then click somewhere outside without selecting anything, it
    seems to erase the data in the dataprovider arraycollection and so
    'value' in the set data method becomes null.

    This is not a bug if I understand you properly. I believe most people would wish anything which is obtained via the tv to be backed up, which is why the content is transferred. If you want it to remain available on the tv you will need to sync it back to it.

  • FB4b1: Datagrid with data driven Combobox

    Hi,
    I would like to implement a datagrid with a datadriven combox in FB4b1.
    The database should store "only" values, but should show a different labeltext in the grid.
    When the users load this Grid the stores values should be uses to set the comboboxes.
    That sounds easy but I haven't found a easy way to implement that!
    1.) I need to overrite the "save column" function, so that the shown labeltext is not saved, but its db-values.
    How can I do this?
    2.) I need to build the combox in the datagrid, but there is nnothing like"combox.value="myValID" ( that would be all in vb.net)
    Do I have to loop manually over the selectedIndex until I found my savedValue?
    Like
    http://www.boyzoid.com/blog/index.cfm/2006/11/22/Flex-Custom-Components-and-Custom-Methods
    Is there an easier way to do this?
    Thanks for any pointers!
    Martin Zach

    Each item in comobobox has a label and a data value associated with it.
    The following should work if you were to access data of a selected combo box item, without looping through the items. If it is a string value then
    mylabel.text = myCombo.selectedItem.data.toString() would show / store the associated data with the combobox item for the label text, you can replace mylabel with the datagrid's dataprovider for your requirements.
    Hope this helps
    -Sunil

  • Bind user generated info to DataGrid & edit with comboboxes

    In my app, the user enters data which gets stored into a
    class. I then wish to display this info in a DataGrid with three
    columns corresponding to the data entered (2 strings and 1 number).
    Is there an easy way to get this into the DataGrid by using binding
    or do I have to do manual insertion of the data?
    Also, I'd like to let the user edit the DataGrid. But I don't
    want him to be able to just type whatever he wants, I'd rather give
    him a pop-up or combobox with the relevant options.
    Any suggestions about this approach?

    When you say the data gets stored in a class, do you mean an
    object? One way would be to store the data in a user data value
    object and then bind the object parameters to your DataGrid. If
    there are multiple users, you could put the object in an
    ArrayCollection and bind that to your DataGrid.
    You could then use an itemRenderer or itemEditor for each
    column that would allow the user to update the values with
    comboBoxes and the updates would be reflected in the stored object.
    Vygo

  • Combobox in Datagrid with different values

    Hi All,
    I have a datagrid. One of the columns in the datagrid is set
    to display a combobox as the ItemRenderer. Now, the data for the
    combobox is different for each row. How do I set up the data
    provider for the combobox in such a scenario.
    For example : I have a collection of Shirt objects.
    public class Shirt {
    public String id;
    public String type;
    public String[] color; //this is an array
    This should be displayed in the datagrid, with the Color
    column rendered as a combobox. The colors will be different for
    each shirt.
    Thanks
    CS

    Yes. Some more detail:
    in the function,
    override public function set data(value:Object): void {
    the "value" parameter will contain a refernce to an entire
    "Shirt" instance.
    So you can assign the comboBox.dataProvider=value.color;
    Now, It is more complicated than this, because you will want
    the combobox to show the correct value for each row, right?
    For this to happen, you will need a selectedColor property on
    Shirt. When the user chooses a color, you will need to update this
    property with the selection.
    Next, your renderer must read the value of selectedColor and
    set the comboBox.selectedIndex.
    If selectedColor contains the *index* of the color then you
    have it easy. If it contains the color name itself, then you will
    have to for-loop over the color array until yom match the
    selectedColor. then you will have the index and can set
    selectedIndex.
    ComboBox does not support setting the value directly. It is
    pretty easy to extend combo to do this. There are several examples
    out there. I posted a link to one on CFLEX.net
    Tracy

  • Datagrid with a datadriven combox

    Hi,
    I would like to implement a datagrid with a datadriven combox.
    The database should store "only" values, but should show a different labeltext in the grid.
    When the users load this Grid the stores values should be uses to set the comboboxes.
    That sounds easy but I haven't found a easy way to implement that!
    1.) I need to overrite the "save column" function of the generated code from FB4b1, so that the shown labeltext is not saved, but its db-values.
    How can I do this?
    2.) I need to build the combox in the datagrid, but there is nnothing like"combox.value="myValID" ( that would be all in vb.net)
    Do I have to loop manually over the selectedIndex until I found my savedValue?
    Like
    http://www.boyzoid.com/blog/index.cfm/2006/11/22/Flex-Custom-Components-and-Custom-Methods
    Is there an easier way to do this?
    Thanks for any pointers!
    Martin Zach

    Hi Martin,
    Couple of questions
    Are you using LCDS as your backend?
    Are you using the Adobe data modeler and deploying your model on to your LCDS server?
    If so, then you could try something called derived properties, which actually do not require a database column and you could compute its value based on the value of a existing column.
    You can find more info about this on
    http://labs.adobe.com/technologies/livecycle_dataservices3/videos/
    http://labs.adobe.com/technologies/livecycle_dataservices3/
    Thanks
    -Sunil

  • Sorting Datagrid

    argh, frustrating!
    Is it really possible that I cant sort a datagrid with script
    when user presses the button.
    Lets say datagrid have three columns. Col 1, col 2 and col 3.
    I have three buttons that lead user to the datagrid and each
    of them should sort the datagrid by the column user clicked
    (equivalent button)?

    Just sort the underlying collection. Assuming your using an
    arrayCollection
    do the following:
    userList.source.sortOn(["org","name"]);
    This is a collection of user objects where I sort by org and
    name.
    Then either reset the grids dataprovider or send out a
    Collection changed event:
    var c:CollectionEvent = new
    CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
    userList.dispatchEvent(c)

  • Need for a Datagrid with variableRowHeight="true" and custom Item Renderer to display exact rows

    Hi again, developers:
    I'm in a search of a datagrid  with certain characteristics:
         - variableRowHeight = "true"
         - only one column
         - each row must have a custom item renderer with possibly different heights, and a fixed width
         - the datagrid must show always every item in the data provider with no vertical scroll bars, what means that the datagrid height must have always the exact height sum of all the item renderers it is displaying.
         - and no extra empty rows must appear in the last positions of the datagrid
    The last two requirements are something difficult to achieve... for some reason, empty rows appear at the last positions of the datagrid. I post what i've managed to get:
    <mx:Script>
         <![CDATA[
         private function resize():void
                    if (dg.dataProvider)
                        var h:Number = dg.measureHeightOfItems( -1, dg.dataProvider.length);
                        dg.height = h;
         ]]>
    </mx:Script>
    <mx:DataGrid id="dg" width="530" horizontalCenter="0" verticalScrollPolicy="off"
            dataProvider="{dp}"
            wordWrap="true" variableRowHeight="true" showHeaders="false" dataChange="resize()" height="{dg.measureHeightOfItems(-1,dg.dataProvider.length)}" click="Alert.show(dg.rowCount.toString());">
            <mx:columns>
                <mx:DataGridColumn headerText="ID" width="50">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:TextArea height="{Math.random()*100}" wordWrap="true" backgroundColor="{Math.random() * 16777216}" paddingTop="0" paddingBottom="0"/>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>

    Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
    I'll update this thread if I manage to do it.

  • Strange Behaviour on DataGrid with ArrayCollection as DataProvider

    I have a Datagrid with an ArrayCollection as DataProvider, the arrayCollection is partially generated by a remoteObject call, the dataprovider seems to works at least until I try to edit the field...
    By the RemoteObject I only receive an ArrayCollection with the field `ip`, but the datagrid looks for the fields ip, check and save...
    If I add/edit this new field it works, but only under particular condition
    The DataGrid:
    <s:DataGrid id="datagrid" left="10" right="10" top="136"
           dataProvider="{listaIPCheck}" bottom="10" requestedRowCount="4">
              <s:columns>
                    <s:ArrayList>
                         <s:GridColumn dataField="ip" headerText="Asset"/>
                         <s:GridColumn dataField="check" headerText="Inventory"/>
                         <s:GridColumn dataField="save" headerText="Salvataggio"/>
                    </s:ArrayList>
               </s:columns>
    </s:DataGrid>
    The Script:
       [Bindable]private var listaIPCheck:ArrayCollection;
        private function ro_resultHandler(event:Event=null):void
          listaIPCheck = new ArrayCollection();
          listaIPCheck = ro.getListUpdate.lastResult;
          heap = 0;
          // Read Below {POINT #1}
          init3();
        private function init3():void
         // Read Below {POINT #2}
         if (heap<listaIPCheck.length)
            // omitted the initialization of the process p
            p.addEventListener(NativeProcessExitEvent.EXIT, onExit);
            try{
              p.start(startupInfo);
            }catch(e:Error){}
        private function onExit(e:NativeProcessExitEvent):void {
            // Read below {POINT #3}
    Here is my code, now as you can see there are 3 line where I wrote to read below...
    Let's assume to put this simple `for` instead of the commented line (once at a time)
        for (var k:Number=0;k<listaIPCheck.length;k++)
          listaIPCheck.getItemAt(k).check = "checkVal";
          listaIPCheck.getItemAt(k).save = "saveVal";
    This code always work in the 3 points, so at the end of the call the ArrayCollection is always filled with the new values, but the datagrid refresh the items only in POINT #1 and POINT #2
    Why not in Point #3???

    Thank you Amy, but adding the properties in the server side did not work...
    The workflow of the program is that:
    1) I get the ArrayCollection (listaIPCheck) contatining some information  (function ro_resultHandler)
    2) I start an external process and grab the output data (function init3)
    3) read and use the data from the process (function onExit)
    Now the problem I have is regarding the refresh of the datagrid, this datagrid has the ArrayCollection (listaIPCheck) as DataProvider.
    So:
    - If I put the for loop instead of the comments  ( // Read Below {POINT #1} ) or
    ( // Read Below {POINT #2} )  it works, the ArrayCollection is updated and the datagrid is refreshed
    - Whereas if I put the for loop instead of  ( // Read Below {POINT #3} ) , it won't work.. or at least, the ArrayCollection is correctly updated, but the datagrid is not refreshed at all and I have to use .refresh()

  • HTMLLoader problem with comboBox

    hi guys
    I'm trying to loader pdf file using XML to retrieve the URL  and I have CombBox to list all the files ,and I need to load another file every time I change the silder for the CombBox
    the problem is the pdf file load only first time and dosent  change if I select another one from the list, I dont know what the the probelm I tried manything like removeChild and I tried to use container but no change, only first time the file loaded
    this is the code
    cb_list.addEventListener(
    SliderEvent.CHANGE,changehandler);
    function changehandler(e:Event):void {
        var sort1:String=cb_list.value;
        var id:String = myXML.tip.(title == sort1)[email protected]();
         //trace(id)
        var slectedtip = myXML.tip.(title == sort1).fulltip.text();
        tit_label.text=myXML.tip.(@ID == id).title .text();
        date_label.text=myXML.tip.(@ID == id).date.text();
        full_tip.text=myXML.tip.(@ID == id).fulltip.text();
         var flashfileURL = myXML.tip.(@ID == id).picURL.text();
        swfURL.text=flashfileURL;
        var url:String = new String();
        url= myXML.tip.(@ID == id).picURL.text().toXMLString();
        var requestpdf:URLRequest=new URLRequest(url);
         var container:Sprite = new Sprite();
        var pdf = new HTMLLoader();
        pdf.height=stage.stageHeight-150;
        pdf.width=stage.stageWidth-270;
        pdf.y=100;
        pdf.x=260;
        pdf.load(requestpdf);
           pdf.addEventListener(Event.COMPLETE, completeHandler);
        function completeHandler(event:Event):void {
            addChild(pdf);

    [problem with combobox comes infront of popup window|http://forum.java.sun.com/thread.jspa?threadID=5291468]

  • Problem with combobox gets dispalyed infront of popup window

    when ever popup window is open and kept on combobox ,combobox appears in front or overlaps the popup window,where exactly i have to check the code.which place of code i have to look into... plz help if there is any problem with css then plz specify which property i have to look into..

    [problem with combobox comes infront of popup window|http://forum.java.sun.com/thread.jspa?threadID=5291468]

Maybe you are looking for

  • Report on Excise Part 2 details

    Hello friends, I want following report on excise to be extrated from SAP 1.GR No.& date 2.Part II number 3. Excise invoice no. & date 4. Vendor name 5. Duty amount The details are available in foll tables J_1IPART2 - all details available except Exci

  • Oracle equivalent of SQL IDENTITY Column

    Is there an Oracle equivalent of the MS SQL and Sybase IDENTITY column that creates an automatically incrementing number for each row added? Thanks in advance. Andy Llewellyn [email protected]

  • Active PDF with CF  MX7

    Hi, I support an application. Which was on CF5 and it has been migrated to CF7. In this we populate some information on a PDF using active pdf. We use a "SetFormFieldData" . Syntax is like - pdf.SetFormFieldData("field" , "value" , -998) This field i

  • How to save favorites in librivox application

    How to save favorites in the Librivox application on iPhone 5s?  Even the book currently in progress does not show anywhere and I have to search it every time.  It however, resumes from the place I left when I do find it in the search bar

  • STR to STO conversion fine with ME59 but not ME59n ????

    Hi Guys, We are planning on moving to ME59n for PR to PO conversion. When I try to convert STR to STO with ME59n  it is giving me the error message ; - Item category U not allowed with document type - Doc. type UB should be used for suppl. site DC06