Adding controls dynamically to a datagrid

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

  1. #1

    Default Adding controls dynamically to a datagrid

    Hi,

    We have a requirement, where based on the UI type selected in a dropdown, a
    control should get added to the column of a grid dynamically. For e.g. if the
    user selects an option "Dropdown" in the dropdownlist a dropdown should get
    added to the column of the datagrid, and if he selects the option "TextBox" a
    textbox should be added.

    Any thoughts on this will really be appreciated.


    Brij_Mohan Guest

  2. Similar Questions and Discussions

    1. Dynamically Adding Controls
      I am trying to dynamically add controls to my page, but am having trouble with controls such as buttons. I have been able to add simple controls...
    2. Dynamically adding controls to a data repeater
      I would like to create a composite control based on a data repeater how do I dynamically add and bind child controls to it? I imagine this is not a...
    3. dynamically adding user controls
      I have a web form that has a button called "Add Blank Row". Every time this button is pressed a new "blank row" user control should be added to the...
    4. Dynamically adding different controls to different rows in DataGrid does not work
      Hi! I've got a datagrid which I dynamically want to add controls to, and the type of control depends on user rights for the item shown in the...
    5. Event not firing. Adding controls dynamically to UserControl
      I am adding controls to the UserControl dynamically and then loading the UserControl Dynamically.But I am facing problem with firing of click event...
  3. #2

    Default Re: Adding controls dynamically to a datagrid

    This should be easy in AS. The dropdown (ComboBox) is dispatches a 'change' event when the selection is made, and then you may need to apply the item renderer / item editor based on their selection.
    Greg Lafrance Guest

  4. #3

    Default Re: Adding controls dynamically to a datagrid

    Well, I would not characterize any significant itemRenderer work as "easy"!

    But indeed, that will be the solution.

    Advice: Do not attempt to create an itemRenderer from scratch. Find an
    example and modify it.

    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