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. Image for the cookie policy date

Grid does not display records if the class is called ITEM

Grid does not display records if the class is called ITEM


<SfGrid TValue="FriulRubber.Nucleo.Vulcano.Data.Abstractions.Models.Item" AllowPaging="true">

    <SfDataManager Url="https://localhost:5003/odata/Item" Adaptor="Adaptors.ODataV4Adaptor"></SfDataManager>

    <GridColumns>

        <GridColumn Field="@nameof(FriulRubber.Nucleo.Vulcano.Data.Abstractions.Models.Item.Code)" HeaderText="Code" Width="120"></GridColumn>

        <GridColumn Field=@nameof(FriulRubber.Nucleo.Vulcano.Data.Abstractions.Models.Item.Description) HeaderText="Description" Width="150"></GridColumn>

        <GridColumn Field=@nameof(FriulRubber.Nucleo.Vulcano.Data.Abstractions.Models.Item.Id) HeaderText="Id" Width="130"></GridColumn>

    </GridColumns>

</SfGrid>



1 Reply

SP Sarveswaran Palani Syncfusion Team January 30, 2023 03:58 PM UTC

Hi Davide,

Greetings from Syncfusion support.

From your query, we suspect that you’re facing issue in using class name as “Item” in complex data binding in Grid component. Based on your shared code snippet, we prepared sample by binding complex data to the grid using class as “Item”. But we’re unable to reproduce the issue you are mentioning. Kindly refer the attached sample and reproduce the reported issue in shared sample or share  the simple issue reproducible sample to us. It’ll will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.

Regards,
Sarvesh


Attachment: SfGrid_ComplexData_df31e553.zip

Loader.
Live Chat Icon For mobile
Up arrow icon