Search Bar Filter InPlaceEditor

For dropdowns in javascript InPlaceEditor, do we have the option to add a filter (search bar) ?

P.S: In inline edit (InPlaceEditor) and not in normal dropdowns..

Image_1020_1707295355592
Image_8939_1707295370515


2 Replies 1 reply marked as answer

KP Kokila Poovendran Syncfusion Team February 9, 2024 05:38 AM UTC

Hi Tarek AS,

Greetings from Syncfusion support!


We have reviewed your query regarding the option to add a filter (search bar) to dropdowns within the InPlaceEditor component in JavaScript. We are pleased to inform you that it is indeed possible to enable the filtering option for the DropDownList when integrated with the In-place editor component.


Please refer to the code snippet below:


let dropObjInPlaceEditor = new InPlaceEditor({

  mode: 'Inline',

  type: 'DropDownList',

  value: 'Canada',

  model: {

    dataSource: autocompleteData,

    placeholder: 'Find a country',

    allowFiltering: true,

    filterBarPlaceholder: 'Search here!',

  },

});

dropObj.appendTo('#dropdownEle');

 


In the code snippet provided, we have enabled the "allowFiltering" option in the Model configuration section, which allows users to filter the dropdown options. You can find a runnable sample at the following link:

Samplehttps://stackblitz.com/edit/rkdgqj-bfvsfu?file=index.ts,index.html


For more detailed information, please refer to our documentation: InPlace Editor Controls - Model Configuration


Should you require further assistance or have any additional questions, please feel free to reach out.



Marked as answer

TA Tarek AS February 12, 2024 08:06 AM UTC

Thanks Syncfusion Team! It worked!


Loader.
Up arrow icon