BUG in AdvancedDataGrid?


editable not work advertised in documentation. (fb3 w sdk 3.5)

 

from docs "editable" property @ http://livedocs.adobe.com/flex/3/langref/mx/controls/advanceddatagridbaseex.html#editable:

"

if "item", item renderers in control editable.       user can click on item renderer open editor.

...

if "item summary", item renderers , summary cells can  edited.

"

 

this seems indicate if editable set "item" summary cells not editable. not case. here sample app shows "editable" property not work way.

 

<?xml version="1.0" encoding="utf-8"?>
<mx:application  xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute">
  <mx:advanceddatagrid  initialize="gc.refresh()" editable="item">
     <mx:dataprovider>
      <mx:groupingcollection id="gc">
         <mx:source>
          <mx:arraycollection>
             <mx:object day="1" hour="1" skill0="1"/>
             <mx:object day="1" hour="2" skill0="1.5"/>
             <mx:object day="1" hour="3" skill0=".25"/>
           </mx:arraycollection>
        </mx:source>
         <mx:grouping>
          <mx:grouping>
             <mx:groupingfield name="day">
               <mx:summaries>
                <mx:summaryrow  summaryplacement="group">
                  <mx:fields>
                     <mx:summaryfield datafield="skill0"/>
                   </mx:fields>
                </mx:summaryrow>
               </mx:summaries>
            </mx:groupingfield>
           </mx:grouping>
        </mx:grouping>
       </mx:groupingcollection>
    </mx:dataprovider>
     <mx:columns>
      <mx:advanceddatagridcolumn  datafield="day"/>
      <mx:advanceddatagridcolumn  datafield="hour"/>
      <mx:advanceddatagridcolumn  datafield="skill0"/>
    </mx:columns>
   </mx:advanceddatagrid>
</mx:application>

 

here screenshot of result showing summary  row editable:

editablenotworking.jpg

is correct functionality or bug? if correct, there way make summary cells read-only?

 

thanks,

matt

seems bug. can log it.

 

if have source advanceddatagrid, can make working changing - advanceddatagridbaseex.mouseuphandler()

change statement -

        else if (lastitemdown && lastitemdown != itemeditorinstance) 

to -

        else if (lastitemdown && lastitemdown != itemeditorinstance && isdataeditable(r.data)) 

 

please note not official tested fix, though seems work sample.



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO