Telerik Forums
UI for Blazor Forum
9 answers
3.3K+ views

Hi,

Does the grid support click/double click events or is there any way I can support it on a given column. I'm building the columns dynamically as I am binding to custom types. The grid is only ever in read-only mode. I also have some columns that have anchors/links in them which is working fine. But when I double click anywhere other than a link I want to do an action using the context of the row.

 

Thanks,

Nick.

Marin Bratanov
Telerik team
 answered on 06 May 2020
1 answer
70 views

Hi, 

I was testing the creation of a new project in visual Studio 2019, using the template : CRUD, form, chart - Client App. (Telerik UI for Blazor 2.12.0)

All the solution creation is ok. After, i define the Client project as Startup project, to test it but after F5, when i want to check the page GRID.RAZOR, the datas are not loaded. The call to the WeatherForecast service sent the reponse as text/html instead of Json. 

I didn't "touch" any code and in the service, Http.GetFromJsonAsync is used. 

Can anyone help me to understand why then content-type is not fine ?

Thanks

Marin Bratanov
Telerik team
 answered on 06 May 2020
5 answers
808 views

Hi,

In our project we handle a lot of data and try to use the Telerik Grid for it. Most of time consuming (async) actions trigger a spinner to show when the user waits for a result.

With a few thousand lines in the grid even changing the page size can take a while. Here we would like to have a spinner as well.

Is there a specific event to hook to achieve this?

 

Best regards,

Rayko

Marin Bratanov
Telerik team
 answered on 06 May 2020
1 answer
87 views

I updated to 2.12 a little while ago. First thing I did was open the demos solution, in VS 2019 16.6 preview 5. After fixing my local Nuget pointer to 2.12, I did a Nuget restore, then did a solution Build. 100s of warnings in the output window. Don't recall this when building previous version Demos project.

Then created a new project using same VS version, and chose Telerik CRUD/Form/Chart template, Blazor server. That build is throwing the Async warnings I'm familiar with from the WeatherForecastService Error CS1998 about the lack of an awaits keyword. Is this something you mean to suppress in Editor.config?

Same warnings thrown during build with VS 2019 16.5.4

Marin Bratanov
Telerik team
 answered on 06 May 2020
5 answers
412 views

Hi..

I can't seem to get the 'floating textbox' like in the demos to work. Also how a can I apply Material to just this component?

 

In _Host.chtml I have

    
    <script src="_content/telerik.ui.for.blazor/js/telerik-blazor.js" defer></script>


    <link href="favicon.ico" rel="icon" type="image/x-icon" />
  

    <link href="telerik-themes/bootstrap/dist/all.css" rel="stylesheet" /

 

In startup.cs I have

   services.AddTelerikBlazor();

 

My component looks like this

 

@page "/NameAddress"


<span class="TitleBlue"> Name + Address</span>


<div class="box-content">
    <h4>Company Name</h4>

    <TelerikTextBox Label="Company Name"></TelerikTextBox>

</div>

@code {


}

 

Any ideas?  Thx in advance

 

 

 

 

      

Svetoslav Dimitrov
Telerik team
 answered on 05 May 2020
3 answers
528 views

Hi

Is it possible gray out disabled date on Calendar control ??

Tnx

Svetoslav Dimitrov
Telerik team
 answered on 04 May 2020
1 answer
237 views

Is there a way to handle the case of long list of tabs? When the window is too narrow and the tabs don't fit, the last tabs get cut off.

<TelerikTabStrip>
    @foreach (var item in new[] {"First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", "Eighth", "Ninth", "Tenth"})
    {
        <TabStripTab Title="@item">
            @item tab content.
        </TabStripTab>
    }
</TelerikTabStrip>

 

 

Svetoslav Dimitrov
Telerik team
 answered on 04 May 2020
2 answers
222 views

I want to put an icon on the tab, example a google font icon

I tried something like this (so you hopefully can see where I'm going):

<TelerikTabStrip @bind-ActiveTabIndex="@ActiveTabIndex">
    <TabStripTab Title="Sofia">
    </TabStripTab>
    <TabStripTab Title="London">
    </TabStripTab>
    <div class="material-icons project tab-item">
        security
        <TabStripTab Title="Azure RBAC">
        </TabStripTab>
    </div>
</TelerikTabStrip>

 

Morten
Top achievements
Rank 1
 answered on 01 May 2020
1 answer
412 views

Is there a way to make the Window, when used as a modal, responsive? Looking for it to act similar to a standard Bootstrap modal (https://getbootstrap.com/docs/4.0/components/modal/#optional-sizes).

Svetoslav Dimitrov
Telerik team
 answered on 01 May 2020
1 answer
158 views

I have a very simple datagrid. I'm brand new to Telerik and Blazor.

My grid works until I add in the EditMode enum. 

I get a null reference exception on my _Host.cshtml file at this line:

1.<component type="typeof(App)" render-mode="ServerPrerendered" />

Below is my whole .razor page.

01.@page "/crud"
02. 
03.@using Portal.Data
04.@using Microsoft.Extensions.Logging;
05. 
06.@inject LicenseService licenseService
07.@inject ILogger<LicenseInfo> MyLogger
08. 
09.<h1>Crud</h1>
10. 
11.<TelerikGrid Data="@licenseData"
12.             AutoGenerateColumns="true"
13.             EditMode="@GridEditMode.Popup">
14.</TelerikGrid>
15. 
16.@code
17.{
18.    private List<Portal.Data.Licenses> licenseData { get; set; }
19. 
20.    private async Task<List<Licenses>> GetLicenseData()
21.    {
22.        var licenseData = await licenseService.GetLicensesAsync();
23.        return licenseData;
24.    }
25. 
26.    protected override async Task OnInitializedAsync()
27.    {
28.        try
29.        {
30.            licenseData = await GetLicenseData();
31.        }
32.        catch (Exception ex)
33.        {
34.            MyLogger.LogError(ex.Message);
35.        }
36.    }
37.}
David
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 30 Apr 2020
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?