Hi,
I am using Quick search on ListGrid (displaying top of the Grid) and below are the field definition :
<field>
<name>facilityCode</name>
<title>Facility</title>
<type>text</type>
<optionDataSource>facilityDSDMI</optionDataSource>
<filterEditorType>ComboBoxItem</filterEditorType>
<required>true</required>
<valueField>facilityCode</valueField>
<prompt>Facility</prompt>
<displayField>facilityCode</displayField>
<autoFetchDisplayMap>false</autoFetchDisplayMap>
<allowEmptyValue>false</allowEmptyValue>
filterEditorProperties operator ="iContains"/>
</field>
The requirement is, User can type in the Facility Dropdown instead of selecting value from drop down. To achieve this, used <filterEditorType>ComboBoxItem</filterEditorType> .
First time whenever user enter value in the Facility , List Grid is displaying data based on the substing entered in the Facility.
Next time if user search by Facility, it is not working even request is not going to backend. Also in both the cases the Search value is not displaying in the Facility Dropdown.
If I refresh the search, it seems all the search criteria mentioned before is appending into the criteria :
FYI:
criteria:[
{
fieldName:"facilityCode",
operator:"iStartsWith",
value:"abc"
},
{
fieldName:"facilityCode",
operator:"iStartsWith",
value:"xyz"
}
....
]
Please let me know how to fix the issue?. Let me know if any other details required from my side.
SC Version :
SmartClient Version: v9.0p_2013-08-16/Enterprise Development Only (built 2013-08-16)
Thanks !!!
I am using Quick search on ListGrid (displaying top of the Grid) and below are the field definition :
<field>
<name>facilityCode</name>
<title>Facility</title>
<type>text</type>
<optionDataSource>facilityDSDMI</optionDataSource>
<filterEditorType>ComboBoxItem</filterEditorType>
<required>true</required>
<valueField>facilityCode</valueField>
<prompt>Facility</prompt>
<displayField>facilityCode</displayField>
<autoFetchDisplayMap>false</autoFetchDisplayMap>
<allowEmptyValue>false</allowEmptyValue>
filterEditorProperties operator ="iContains"/>
</field>
The requirement is, User can type in the Facility Dropdown instead of selecting value from drop down. To achieve this, used <filterEditorType>ComboBoxItem</filterEditorType> .
First time whenever user enter value in the Facility , List Grid is displaying data based on the substing entered in the Facility.
Next time if user search by Facility, it is not working even request is not going to backend. Also in both the cases the Search value is not displaying in the Facility Dropdown.
If I refresh the search, it seems all the search criteria mentioned before is appending into the criteria :
FYI:
criteria:[
{
fieldName:"facilityCode",
operator:"iStartsWith",
value:"abc"
},
{
fieldName:"facilityCode",
operator:"iStartsWith",
value:"xyz"
}
....
]
Please let me know how to fix the issue?. Let me know if any other details required from my side.
SC Version :
SmartClient Version: v9.0p_2013-08-16/Enterprise Development Only (built 2013-08-16)
Thanks !!!
Comment