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

Grid autosize broken

4 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 14 Mar 2018, 08:30 AM

Hi I am using on an MVC project the grid autosize functionality successfully (version: R2 2017 2017.2.504.545). Now on another project I have to use the .NET Core (version: R1 2018: 2018.1.117.0) but the autosize functionality does not work anymore. I have investigated the two solutions and it seems that when I use grid.Scrollable(s => s.Height("auto")) it generates "height: auto" instead of the configuration: "scrollable: {  height: auto }"

Is this function as design? What are the alternatives to this issue?

4 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 19 Mar 2018, 06:45 AM
Hello, Dan,

Thank you for the details and locating the difference in the generated jQuery options.

I can confirm that this is an issue with the current version of Kendo UI Grid.

I created an issue in our GitHub repository and forwarded it to our developers for fixing. You can track its progress at:

https://github.com/telerik/kendo-ui-core/issues/4093

For now, there is no available workaround as the height options is applied initially and can only be modified not removed if one is found it will be added to the GitHub issue for reference.

Additionally, I updated your Telerik points for bringing this to our attention.
 
Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 18 Jun 2018, 12:20 PM

Hi Stefan,

Has this really bean solved?

According to this page

https://www.telerik.com/support/whats-new/aspnet-core-ui/release-history/ui-for-asp-net-core-r2-2018-uiaspcore-2018-2-516

at Grid Fixes appears the text "The scrollable(s => s.Height("auto")) property is not correctly applied to the ASP.NET Core wrapper"

I have downloaded the nuget package version Telerik.UI.for.Asp.Net.Core 2018.2.516 and the problem is not solved.

Has the issue been solved also on the nuget package? 

0
Stefan
Telerik team
answered on 19 Jun 2018, 07:38 AM
Hello, Dan,

I have tested this on my end and the property was correctly applied in the latest version.

Please check the attached example for reference.

Please have in mind that sometimes file from the older version could be cached and the fix is not loaded. 

If the issue still occurs in the real application, please provide an example, so we can inspect it locally.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 19 Jun 2018, 08:09 AM

Hi Stefan,

Sorry about the inconvenience. Indeed after I cleared the nugget cached the issue was indeed solved. Not ideal way but good to know in the future.

Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or