1 Reply Latest reply on Mar 5, 2008 5:00 AM by

    datagrid item renderer

    smscentral Level 1
      i have a datagrid with one of the column's itemrenderer as button .when i click this button i want to load a module.

      i am able to see the alert message that module has been loaded but i cannot see the module being displayed.

      my buttonrenderer.mxml
      <mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml" label="Edit" click="loadModuleEditUser()">
      public var edituser:ModuleLoader;

      public function loadModuleEditUser():void{
      edituser = new ModuleLoader();
      edituser.addEventListener(ModuleEvent.READY, onModuleLoad);
      edituser.addEventListener(ModuleEvent.ERROR, onModuleError);


      public function onModuleLoad(e:ModuleEvent):void{
      Alert.show("loaded") // able to see this message on click


      public function onModuleError(e:ModuleEvent):void{
      Alert.show("could not load");

      but i dont see the module.....