This is a migrated thread and some comments may be shown as answers.

responsive grid

5 Answers 534 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 16 Jan 2020, 10:34 PM

I am using the vue grid wrap with the bootstrap theme and I wonder how I can make my columns responsive or at least keep their size on a smaller screen and can scroll, for that set a width in my component for this reason not Does it work for example

<kendo-grid-column :field="'employee'" :width="160"></kendo-grid-column>

any ideas?

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 Jan 2020, 02:05 PM

Hi Fernando,

The Responsive Columns functionality is available for the Wrapper Grid. The syntax is as shown below:

<kendo-grid-column :media="'(min-width: 150px)'"
                                 :field="'ProductID'"
                                 :title="'ID'"
                                 :width="200"></kendo-grid-column>

This could be observed live at the following demo:  https://stackblitz.com/edit/thw3jx-wpwiyt?file=index.html

Let me know if you have any questions.

Regards,


Nikolay
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Fernando
Top achievements
Rank 1
answered on 17 Apr 2020, 03:05 PM
the behavior of min-width is not what was expected, apparently, in my case I forgot to mention that I use: filterable-mode = "'row'" and when the buttons to add and remove filters appear, the column is uncomfortable, some observation or help ? here is the example: https://stackblitz.com/edit/thw3jx-wh2wd7?file=index.html
0
Nikolay
Telerik team
answered on 21 Apr 2020, 02:15 PM

Hi, Fernando,

I would suggest setting minScreenWidth to the desired columns. This will make the column hidden if the screen size is less than the predefined pixel value:

<kendo-grid-column :min-screen-width="500"

This can be examined live in the following demo:

Let me know if this helps.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Fernando
Top achievements
Rank 1
answered on 22 Apr 2020, 04:17 AM
so is it not possible to have columns with a fixed width? and if the screen is smaller the scroll should help me to scroll, that's what I'm looking for
0
Nikolay
Telerik team
answered on 24 Apr 2020, 06:45 AM

Hello Fernando,

This is the default Grid behavior. When the columns have predefined width (all columns must have width) upon resizing the container a horizontal scroller appears allowing the users to scroll to reach the columns that are no longer visible. This can be examined in the following demo:

Let me know you have further questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Fernando
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or