generate the bullet in first DataGridColumn when user inputing words,
also the DataGridColumn is editable,how to set the dataGridColumn's 
htmlText?
use the cellRender?

1.this is my flex page:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";  
initialize="initDg()">
<mx:Script>
<![CDATA[
import com.ActionRequiredVO;

 var ActionRequireds: ActionRequiredVO;
function initDg(){
        dg.addItem(new ActionRequiredVO('*'));
        }
]]>
</mx:Script>
    <mx:VBox width="98%"  verticalGap="0">
                
            <mx:HBox width="100%" height="63" >
              <mx:Text text="Action Required:" width="110" 
textAlign="right"/>
    
              <mx:DataGrid id="dg" editable="true" rowCount="2" 
width="85%" 
                dataProvider="{ActionRequireds}">
                <mx:columns>
                    <mx:Array>
                                            <mx:DataGridColumn 
columnName="actionRequired" headerText="Action Required" 
width="{dg.width*0.7}"/>
                        <mx:DataGridColumn columnName="assignedTo" 
headerText="Assigned To" width="{dg.width*0.15}"/>
                        <mx:DataGridColumn columnName="deuDate" 
headerText="Deu Date" width="{dg.width*0.15}"/>
                    </mx:Array>
                </mx:columns>
              </mx:DataGrid>
           
                          <mx:VBox>
              <mx:Button label="+" click="dg.addItem(new 
ActionRequiredVO('*'))"
                    cornerRadius="0" borderThickness="0" width="20" 
height="20" toolTip="Add new item"/>
                <mx:Button label="-" click="dg.removeItemAt
(dg.selectedIndex)"
                    cornerRadius="0" borderThickness="0" width="20" 
height="20"/>
              </mx:VBox>
            </mx:HBox>
          </mx:VBox>
</mx:Application>

2.action script
class com.ActionRequiredVO {

        public var deuDate : String;
        public var assignedTo : String;
    public var actionRequired :String;
   
        
        function ActionRequiredVO(actionRequired:String){
                
                this.actionRequired = actionRequired;
                
                
        }
  
   

}

thanks,I am glad to get your help




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to