DataGrid - update contents and maintain sort selection

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default DataGrid - update contents and maintain sort selection

    I have a DataGrid whose 'dataProvider' is bound to an ArrayCollection. At some
    points in time the ArrayCollection is replaced with a new set of data provided
    to the application. This causes the DataGrid to be reloaded essentially, which
    also causes the users sort selection to be reset. How can I keep the sort
    selection when replacing the data?

    anoweb Guest

  2. Similar Questions and Discussions

    1. Print contents of DataGrid
      Hi, I want to print the contents of datagrid. I tried using printJob but it only prints what is displayed on the page. How can I print the whole...
    2. Crash with selection tool after 3.0.1 update
      I am experiencing the same issue after updating to 3.0.1 - I have ssen the other post and tried disabling hardware graphics accelleration, which did...
    3. Print contents of a datagrid
      Is there a way to push a print button to print the just the contents of a datagrid. I have the actionscript for the button, but it seems to print...
    4. Maintain check list status in datagrid with paging
      Hi all, I need to maintain the status of checkbox in a datagrid that should not get affected when traversing through pages. The complete...
    5. Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
      Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp...
  3. #2

    Default Re: DataGrid - update contents and maintain sortselection

    There may be an easier way to do this, but I set a headerRelease handler on the
    dataGrid and keep track of which column is being sorted. When it is time to
    replace the dataProvider, it is possible to sort my dataProvider based on the
    last user click of the header.

    It's not elegant, but it works. With this method I'm able to store the user's
    preferred sort between executions. (that would be application executions.
    Not the user)

    javamonjoe Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139