We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ALLOW FILTERING only on subset of columns

Hello,

I have this grid and my customer want disable filter on columns:

- "Priority"

- "Scade il" 

- "Ultimo Aggiornamento"


So I must disable the filter icon (1) and so the popup filter must not appear (2)


Thanks

Alex


3 Replies 1 reply marked as answer

NS Nithya Sivaprakasam Syncfusion Team October 11, 2022 03:31 AM

Hi Alex,


Greetings from Syncfusion Support.


Query:” ALLOW FILTERING only on subset of columns”


From your query, we found that your want to disable the filter option for particular Grid columns. You can achieve this requirement by simply providing the column.allowFiltering property value as false in the Grid column. Please refer to the below code snippet,


For your reference, we have prepared a sample based on your query. In that sample, we have disabled the filter for the “OrderDate”, “Freight” and “ShipCountry” columns.


Code Snippet:


<ColumnDirective

              field="ShipCountry"

              headerText="Ship Country"

              width="150"

              allowFiltering={false}

            ></ColumnDirective>


Sample: https://stackblitz.com/edit/react-vtrd7r?file=index.js


Please get back to us if you need further assistance on this.


Regards,

Nithya Sivaprakasam.


Marked as answer

AL Alex October 11, 2022 03:37 AM

Thanks for you help. 

Alex



PR Padmini Ramamurthy Syncfusion Team October 11, 2022 06:42 AM

Hi Alex,


Please get back to us if you need any other assistance.


Regards,

Padmini


Loader.
Live Chat Icon For mobile
Up arrow icon