2 Replies Latest reply on Apr 1, 2008 4:21 PM by ntsiii

    Filter DataGrid from combobox

    satishreddy536 Level 1
      i am filtering my datagrid based on combobox selectedvalue
      inside the datagrid am having 1 more combobox which is causing an issue

      here is my filterfunction
      public function filterStudentsGrid():void {


      public function typeFilter(item:Object):Boolean {
      if (studentTypeCB.selectedItem != "All"){
      return item.studentType == studentTypeCB.selectedItem; //this line causing error
      } else {
      return true;

      my combobox is like
      <mx:ComboBox labelField="Student Type" id="studentTypeCB" dataProvider="{studentTypeArray }" change=" filterStudentsGrid();"/>

      now my problem is that as soon as i selected studenttype from combobox am getting this error

      ReferenceError: Error #1069: Property studentType not found on String and there is no default value.

      i don't understand why am getting this error after dismissing this error am able to save the selected value from combobox in database.