2 Replies Latest reply on Apr 24, 2009 8:42 AM by ntsiii

    Can I use 2 itemrenderer in one datagrid column

    FangAvatar Level 1

      Can I use 2 itemrenderer in one datagrid column?

      Code:
      for(var i:int=0;i<xmldata.row.length();i++)
                          {
                               if(String(xmldata.row[i].website)!='no'){
                              co_name.itemRenderer = new ClassFactory(websitelabel);
                          }
                               if(String(xmldata.row[i].website)=='no'){
                               co_name.itemRenderer= new ClassFactory(websiten);
                               }
                          }

      Please help me,thanks in advance.