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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to render the columnchooser inside Grid's toolbar?

Platform: JavaScript |
Control: ejGrid |
Published Date: February 12, 2018 |
Last Revised Date: February 12, 2018

This Knowledge base explains the way of how to render the columnChooser inside the grid toolbar.

Solution:

We can add the columnChooser inside the grid toolbar using dataBound event in grid.

The following code example explains the above behavior.

  1. Render the grid.

JS:

 

MVC:

 

ASP:

 

ASP.NET CORE

                                                                                                                                                 

Angular

 

  1. In DataBound event we have called the common method name “columnChooserPosition” to append the column chooser element inside the grid toolbar initially (when grid loading initially)
  2. In actionComplete event we have called the same method to append the column chooser element inside the grid toolbar for any further action takes place in grid.

TS file

 

 

JavaScript:

 

The following output will be the result of the above code example

C:\Users\Manisankar.durai\Desktop\sshot-1.png

Figure: shows the column chooser inside the grid toolbar

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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