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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to fix the first column and make it out of filter controlling?

Thread ID:

Created:

Updated:

Platform:

Replies:

145503 Jun 25,2019 09:53 PM UTC Jun 27,2019 05:53 AM UTC ReactJS 3
loading
Tags: ejGrid
A-User
Asked On June 25, 2019 09:53 PM UTC

Is there any API or attribute can fix the first column even the column is not selected in filter and re-filter.

Manivannan Padmanaban [Syncfusion]
Replied On June 26, 2019 05:02 AM UTC

Hi Allen, 

Thanks for contacting Syncfusion Support.  

Query: How to fix the first column and make it out of filter controlling? 

From the above query, we are able to understand you want to disable the filtering behavior of particular column. Using allowFiltering property, we can dynamically change the filtering behavior of particular column. Refer the below code example, 

……………………………. 
ReactDOM.render(    
<EJ.Grid dataSource = {window.gridData} allowPaging = {true} allowFiltering={true}> 
<columns> 
    <column field="OrderID"  allowFiltering = {false}/> 
    <column field="EmployeeID" /> 
…………………………… 
</columns>    
</EJ.Grid>, 
document.getElementById('Grid') 
); 


Please get back to us, if you need further assistance. 

Regards, 
Manivannan Padmanaban. 


A-User
Replied On June 26, 2019 10:11 PM UTC

Hi,

The allowFiltering = {false} doesn't work.

The column can be filtered even "allowFliltering" has been set as false.

Any suggestion? 

Thanks.

Manivannan Padmanaban [Syncfusion]
Replied On June 27, 2019 05:53 AM UTC

Hi Allen, 
 
Thanks for contacting Syncfusion Support. 
 
Query: The column can be filtered even "allowFliltering" has been set as false. 
 
We are unable to reproduce the reported issue at our end. Kindly refer the below code example, 
 
<div id="Grid"></div> 
     
  <script type="text/babel"> 
    $(function(){ 
     
    ReactDOM.render(  
      <div id="Grid2"> 
            <table > 
             <tr> 
          <td> 
            <EJ.Grid id="Grid_1" dataSource = {window.gridData}  allowPaging = {true} allowFiltering = {true}  > 
                     <columns> 
                <column field="OrderID"  allowFiltering={false}/> 
…………………………………. 
            </columns>    
                        </EJ.Grid> 
               </td> 
               </tr> 
          
           </table> 
           </div>,    
          document.getElementById('Grid') 
        ); 
     
     
    }); 
   </script> 
 
 
 
 
Output: 
 
See the below image OrderID column filtering is disabled. 
 
 
For your convenience we have created the sample, refer the below link. 
 
After referring the above sample, still facing the issue please get back to us with the below details. 
 
  1. Share the complete Grid code example.
  2. Share the Essential Studio version are you using.
  3. Reproduce the issue the shared sample or share the issue reproducing sample.
 
Provided details will help us, to resolve the reported issue as early as possible. 
 
Regards, 
Manivannan Padmanaban. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon