3 Replies Latest reply on Jan 19, 2009 1:02 AM by

    Is it possible to make an item in combobox not be selectable ?

      In order to get a seperator in combobox , I am using follwing logic,
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      import mx.controls.Alert;
      public var arr:Array = [{label:"Test(1)"},{label:"Test(2)"},{label:"----------"},{label:"Test"},{label:"SimpleTe st"}]];

      public var str:String = "str";

      public function isItem(str:String):Boolean{
      return false;
      return true;


      <mx:ComboBox width="250" dataProvider="{arr}" >

      <mx:Label text="{data.label}" color="#000000" selectable="{outerDocument.isItem(data.label)}" >




      But it is not working. Is there any solution for this.

      Also i would like to know whether my approach is right to get a separator between two groups of elements in combobox.

      Thank You...