updating dataProvider

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

  1. #1

    Default updating dataProvider

    Hi, when updating the dataProvider attribute of a component, the component
    doesn't update according to this new state of the dataProvider. Say i have a
    LinkBar with dataProvider=links. links is an Array of objects. When adding or
    removing to this array, the linkBar doesn't update. With a datagrid it is the
    same problem: its dataProvider is changed, but the visualisation of the
    component isn't accurate: it only displays those elements that were in the list
    during initialization... Does anyone know how to update the component properly
    when the dataProvider changes? greetz

    allMyNicksAreTaken Guest

  2. Similar Questions and Discussions

    1. Updating Updating site map or archive dynamically
      Hi there! ;-) Posted in Site Design as well.... Anyone know if there is a way to use Contribute to automatically/dynamically update a site map...
    2. questions about dataProvider,please help me
      i am new to Flex.thank you for your help. According the "Developing Flex Applications", "The Array class implements the data provider API, so...
    3. Combobox Dataprovider
      I have just downloaded the 60 day trial edition, and am trying to populate a combobox from a java method that returns an array object. I am not...
    4. How to populate a DataProvider with XML and AS only
      Hi there, after having spent 2 hours, I decided to get some help from you. Here's what I'd like to do. I have an XML file that I'd like to...
    5. Updating AI Files causes position to 'bounce' when updating in Quark
      Is there any way to build Illustrator files so that no matter what edit you might come back and make to the AI file, when you update the modified...
  3. #2

    Default Re: updating dataProvider

    Use the dataProvider API methods, not the low-level array fintionality like
    "push", or myArray[n] = "whatever". These do not cause the dataProvider to
    emit the modelChanged event.

    Use addItem(), addItemAt() etc.
    [url]http://livedocs.macromedia.com/flex/15/asdocs_en/index.html[/url]

    Tracy

    ntsiii Guest

  4. #3

    Default Re: updating dataProvider

    when i use the methods of the DataProvider class on an array that acts like a
    DataProvider, does this mean the array itself is changed as well? Because i use
    the same array over and over again for several dataProviders. When one
    component changes its dataProvider, this needs to be reflected in all the
    opther componets that use the same array as dataProvider... thanks

    allMyNicksAreTaken Guest

  5. #4

    Default Re: updating dataProvider

    Yes, the dataProvider API works on the underlying array.
    Tracy
    ntsiii 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