Dropdown filtering instantly closes popup

Hi,


I'm using Nextjs 14 with syncfusion react grid version 24.2.9, in my Grid I have a dropdown with external data and foreignkey.

When I allow the filtering in the Dropdown, and open it, the dropdown instantly closes.

When I disallow the filtering, it works like expected.


Here is my Code:

                <GridComponent key={key} gridLines="Both" id='MarketinglistGrid' beforePaste={beforePaste} allowResizing={true} height="100%" width="100%" ref={g => grid = g}  loadingIndicator={loadingIndicator} beforeBatchSave={beforeBatchSave} commandClick={commandClick} queryCellInfo={tooltip} allowMultiSorting={true} allowSelection={true} allowSorting={true} actionComplete={reloadAfterChanges} dataBound={renderComplete} allowFiltering={true} selectionSettings={settings} pageSettings={pageSettings} filterSettings={filterOptions} editSettings={editOptions} toolbar={toolbarOptions} infiniteScrollSettings={infiniteScrollSettings}>
                            <ColumnsDirective>
                                <ColumnDirective headerText='Aktionen' commands={commands} filter={false} width={100} />
                                <ColumnDirective visible={setVisibility("Id", false)} field='caedbid' defaultValue={null} allowEditing={false} headerText='CAE-DB ID' width={150} isPrimaryKey />
                                <ColumnDirective visible={setVisibility("Mandat", true)} field='mandate' headerText="Mandat" editType='dropdownedit' foreignKeyField="id" foreignKeyValue="label" dataSource={mandates} defaultValue={1} width={150} />
                                <ColumnDirective visible={setVisibility("Name", true)} field='name' headerText='Name' allowEditing={true} width={150} defaultValue={null} type='string' validationRules={{required: true}} headerTemplate={customHeaderTemplate}/>
                                <ColumnDirective visible={setVisibility("Status", true)} field='status' headerText='Status' editType='dropdownedit' edit={{ params: { query: new Query(), dataSource: states, fields: { value: 'status', text: 'status' } } }} allowEditing={true} width={175} defaultValue={states[0].status} type='string' />
                                <ColumnDirective visible={setVisibility("Typ", true)} field='type' headerText='Typ' editType='dropdownedit' edit={{ params: { query: new Query(), dataSource: types, fields: { value: 'type', text: 'type' } } }} allowEditing={true} width={200} defaultValue={null} type='string' validationRules={{required: true}} headerTemplate={customHeaderTemplate}/>
                                <ColumnDirective visible={setVisibility("Beschreibung", true)} field='description' headerText='Beschreibung' allowEditing={true} width={200} defaultValue="" type='string' />
                                <ColumnDirective visible={setVisibility("Verantwortlicher", true)} field='responsible' headerText='Verantwortlicher' editType='dropdownedit' dataSource={users} edit={{params: {showClearButton: true}}} foreignKeyField='id' foreignKeyValue='name' allowEditing={true} defaultValue="" />
                            </ColumnsDirective>
                            <Inject services={[Freeze, Edit, Toolbar, Filter, Sort, Search, InfiniteScroll, CommandColumn, ForeignKey, Resize]} />
                        </GridComponent>

1 Reply 1 reply marked as answer

AR Aishwarya Rameshbabu Syncfusion Team April 3, 2024 03:00 PM UTC

Hi Harald Stapfer,


Greetings from Syncfusion support.


Upon reviewing your query, it appears that you are encountering an issue with opening the dropdown when filtering is enabled in it. This issue has been resolved in our Syncfusion package version 25.1.37. Therefore, we recommend upgrading your Syncfusion package to the latest version. Additionally, we have provided a sample with this version in NextJS, which is attached for your reference.


Release Notes: https://ej2.syncfusion.com/react/documentation/release-notes/25.1.37?type=all#grid

Sample: Attached


If you need any further assistance or have additional questions, please feel free to let us know.


Regards

Aishwarya R


Attachment: 187667_277ce77f.zip

Marked as answer
Loader.
Up arrow icon