This is a migrated thread and some comments may be shown as answers.
Zero Records Message
1 Answer 171 Views
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 2
Kelly asked on 15 Mar 2020, 06:01 PM
I would like to display a message where rows would be displayed in grid, when there are no records returned from the data source. Basically, a message with graphics and hyperlink that direct the user to a page to enter a new record. Is there any feature of the grid that would support this thy of workflow? Row Template maybe?

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 16 Mar 2020, 11:06 AM

Hello Kelly,

I have created a new Feature Request for creating a NoDataTemplate. You can Follow the implementation from this link: https://feedback.telerik.com/blazor/1457874-zero-records-message-nodatatemplate and i have given a Vote on your behalf.

As a workaround, in the meantime, I would suggest you use if / else statement where you render the grid only if there is information to be displayed like shown in the code snippet below:

@if(MyGridData == null)
{
    //Loading animation or any custom component (e.g. CreateNewItem)
} 
else { <TelerikGrid /> }

You can also see these Feature Requests on our Feedback Portal. They are not directly connected to what you have encountered, but will further enrich the functionality you described:

I have given your Vote for both of them, as well, and you can Follow the status updates on their implementation.

Regards,
Svetoslav Dimitrov
Progress Telerik

 UI for Blazor
Tags
Grid
Asked by
Kelly
Top achievements
Rank 2
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or