2 Replies Latest reply on Jul 9, 2008 1:21 PM by dkit04

    Datagrid itemeditor issue

    dkit04
      I have a 2 datagrids that are bound together so that if you click on an item in the top, it shows up in the bottom. They are in a vdivided box and the box is in a custom panel. I have a combobox item editor in the "parent" datagrid, however when i click on it it disappears before i can make a selection. Has anyone had similar issues with an editor in a datagrid?
        • 1. Re: Datagrid itemeditor issue
          Rob Rusher
          Without seeing the code, I'm only guessing, but...

          On the datagridcolumn, try setting the itemRenderer="mx.controls.ComboBox"
          rendererIsEditor="true"
          editorDataField="selected"
          properties.

          This will show the ComboBox all of the time. Once you get it working this way, try it just as the itemEditor.
          • 2. Re: Datagrid itemeditor issue
            dkit04 Level 1
            I took a look at that, it gives me an error saying there is no default value. I'm guessing that's because i use the information from that combobox to be entered into an array collection. If the combobox doesnt close, i cannot access the value selected.

            Anyway, I messed around with the heights and widths which i had set at 100%. It seems to be a problem here. If I select a static number rather than a percentage it works, but i want the percentage so when i resize my custom panel, the grid sizes with it.