Declined
Last Updated: 09 May 2019 05:31 by ADMIN
Amit
Created on: 08 May 2019 03:39
Category: UI for Blazor
Type: Bug Report
0
Typo in your example https://demos.telerik.com/blazor-ui/grid/index

When following the Blazor UI code examples for the Grid, the source for index.cshtml contains the following:

@page "/grid/index"

@using Telerik.Blazor.Components.Grid
@using TelerikBlazor.Shared
@inject HttpClient Http

Notice that the using directive for the Shared component doesn't have a . separating Telerik and Blazor. It should read:

 

@using Telerik.Blazor.Shared
3 comments
ADMIN
Marin Bratanov
Posted on: 09 May 2019 05:31
Hi Amit,

We thought so too, so we intend to change the demos projects names and namespaces so it is clear that they are demos and not the actual components code/namespaces. If all goes well, the next release will have that improvement.

On updating the grid data - you need to use the grid events to call upon the data access layer and modify the collection the grid is bound to. You can read more in the following article: https://docs.telerik.com/blazor-ui/components/grid/editing/overview. You can also find a basic example that touches the current collection in this demo: https://demos.telerik.com/blazor-ui/grid/editing-inline. If you have further questions or issues with this, I suggest you open a formal support ticket where we can discuss this.


Regards,
Marin Bratanov
Progress TelerikUI for Blazor
Amit
Posted on: 08 May 2019 20:04

Ah thanks for the info. Confusing when we are trying to cut and paste into our own code to try it out.

 

Also, with respect to the Grid, when I add an item to the data collection bound to the grid, it won't update. How do I get the added item to update the content of the grid?

ADMIN
Marin Bratanov
Posted on: 08 May 2019 04:35
Hello Amit,

Thank you for reaching out.

This is not an error, but a reference to a separate project in the demos infrastructure. We use an ASP.NET Core hosted client-side approach and it consists of three projects - the ASP.NET Core backend, the Blazor client app, and a Shared project that mostly holds models, so both the server and the client app can use them. This last shared project is what the using statement refers to. 

You can see how this works out by downloading the zip archive and exploring the source of the demos: https://docs.telerik.com/blazor-ui/installation/zip.


Regards,
Marin Bratanov
Progress TelerikUI for Blazor