Completed
Last Updated: 18 Jun 2025 09:40 by ADMIN
Release 2025 Q3 (Aug)
Rami
Created on: 17 Jun 2025 06:01
Category: Grid
Type: Bug Report
0
Grid creates CSS style with invalid property value

The Grid component creates an invalid property value in its style for the <table> tag like shown below (some of the contents omitted for brevity). Notice the "width: ;" which should have a value in it.

<table style="height: auto; width: ;"></table>

This can be observed for example by creating a page with the below code and the using the browsers developer tools to examine the elements. Both Grids will have their CSS width property be invalid.

<TelerikGrid Data="@data" AutoGenerateColumns="true">
</TelerikGrid>

<TelerikGrid Width="200px" Data="@data" AutoGenerateColumns="true">
</TelerikGrid>

@code {
    private List<Product> data = new () { 
        new Product() {
            Id = 2,
            Name = "Hello product"
        }    
    };

 public class Product {
        public int Id { get; set; }
        public string Name { get; set; } = string.Empty;
    }
}

1 comment
ADMIN
Dimo
Posted on: 17 Jun 2025 15:05

Thanks, Rami, we will look into that.

I am also awarding you some Telerik points.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.