[flexcoders] Re: Custom ComboBoxCellRenderer Issue

2005-06-11 Thread send2martin
hi buddy 

 i belive this will help u and its not so comlex

  function setValue( str : String, item : Object, selection : 
String ) : Void
  {
if ( item == undefined )
{
  comboLabel.visible = false;
  combo.visible = false;
  return;
}

if ( selection == normal || selection == highlighted )
{
  comboLabel.text = item[ getDataLabel() ];
  combo.visible = false;
  comboLabel.visible = true;
}
else if ( selection == selected )
{
  selectedItem = item;
  
  for( var i = 0; i  combo.dataProvider.length; i++ )
  {
if( combo.dataProvider[i] == item[ getDataLabel() ] )
{
   combo.selectedIndex = i;
   break;
}
  }
  comboLabel.visible = false;
  combo.visible = true;
  combo.setFocus( false );
}
  }



--- In flexcoders@yahoogroups.com, Pradeep Chaudhary 
[EMAIL PROTECTED] wrote:
 Hi,
 This is my second post regarding custom cell renderer issue. I'am
 trying to create a custom ComboBoxCellRenderer to be used in 
DataGrid.
 By default label is selected Item label value. On clicking in the 
cell
 ComboBoxCellRenderer is displayed with selected value. But the
 ComboBox never disappears when i click outside it. This is similar
 problem that i faced in custom DateCellRenderer.
 
 Can anybody please suggest what I'm missing.
 
 Attached is source code for the ComboBoxCellRenderer
 
 Thanks in advance,
 Pradeep




 
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/
 




[flexcoders] is there any way to get rid of the settings tab in the context menu

2005-05-25 Thread send2martin
 

   




 
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/
 




[flexcoders] can i invoke an exe in windows from any event in mxml file

2005-05-12 Thread send2martin
hi

 i an a newbe to flexand i dont know if this question is answered 
already if pls redirect me to that .. else help me to find if i can 
load a windows application .. from a mxml event ... 

 i need to opena MS acess file at runtime (onclick)

 thnk in advance 




 
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/
 




[flexcoders] can i save my data to a Excel spreadsheet

2005-05-12 Thread send2martin
 hi

 i would like to know if there is a way to export my data from a data 
grid to a .xls file ..


thnk in advance




 
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/