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.
Unfortunately, activation email could not send to your email. Please try again.

How to render the columnchooser inside Grid's toolbar?

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

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8394 02/12/2018 02/12/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.