• What is KendoReact
  • Getting Started
  • Server Components
  • Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Using fitColumns method to change the width of a column to fit its content

Environment

Product Version5.9.0
ProductProgress® KendoReact

Description

I want to change the width of the columns to fit the content.

Solution

The Grid's API has fitColumns method that will change the width of a given column to fit its content.

Following is an example demonstrating this approach:

Example
View Source
Change Theme:

In this article

Not finding the help you need?