Telerik Forums
UI for Blazor Forum
1 answer
192 views

I have a very simple scenario with a TelerikDropDownList, like the following:

<TelerikDropDownList Data="@foundComponents"
		     @bind-Value="@componentId"
		     ValueField="ComponentId"
		     TextField="Description">
</TelerikDropDownList>

Then, I have declared the required properties and then there is my method that loads the data in the "foundComponents" collection.

@code {
     protected string? componentId;
     protected IEnumerable<Component>? foundComponents;

     ...

     private async Task SearchComponentAsyncHandler()
     {
          foundComponents = (await JsonSerializer.DeserializeAsync<ZollerBrowseResult>(responseStream)).BrowseResult?.Select(x => x.Component);
     }
}

and this is my "ZollerBrowseResult" model and its related classes:

public class ZollerBrowseResult
{
	public required BrowseResult[]? BrowseResult { get; set; }
}

public class BrowseResult
{
	public required Component Component { get; set; }
}

public class Component
{
	public string? ComponentId { get; set; }
	[JsonPropertyName("Component.ComponentId")]
	private string Component_ComponentId { set { ComponentId = value; } }
	public string? Description { get; set; }
	public Article? Article { get; set; }
}

For some reason, when I run the application, the Dropdown doesn't show the Description property, it shows the class FullName instead.

 

I don't understand what I am doing wrong here.

Lorenzo
Top achievements
Rank 1
Iron
 answered on 25 Sep 2024
0 answers
136 views
I am having to do an analysis on the website I am building using your controls and found that the popover control cannot be triggered using the keyboard only (it must be triggered using mouse events, hover or click).  Are there any plans to adjust the functionality of this control to bring it into WCAG compliance?
Rick
Top achievements
Rank 2
Iron
Iron
 asked on 24 Sep 2024
0 answers
162 views

Hi, 

I am encountering an issue with the Telerik Grid in our Blazor project. Specifically, when there is only one record on the second page of the grid, and I delete that record, the grid does not automatically jump back to the first page, even after refreshing the grid.

Steps to Reproduce:

  1. Navigate to a grid with multiple pages.
  2. Ensure there is only one record on the second page.
  3. Delete that record.
  4. Observe that the grid does not return to the first page

I would appreciate any guidance on how to resolve this issue or if there are any workarounds you could recommend.

Thank you for your assistance!

Oliver
Top achievements
Rank 1
 asked on 24 Sep 2024
1 answer
392 views

Hello,

how can a tooltip be displayed on a disabled button?

I have a use case where the user should be informed of the reason for the disabled button through the tooltip.

Thank you in advance!

https://blazorrepl.telerik.com/GoENGaYV59uuC3IQ44

Tsvetomir
Telerik team
 answered on 20 Sep 2024
1 answer
118 views

Hi.

I have a requirement I'm stumped with. I want to get the folder name when click on the tree view. I found that Telerik has SelectedItemsChanged but it only works for the files/folders on content view.

I can't think of any way to do this - is it possible?

Thanks,

Hang Pham

Dimo
Telerik team
 answered on 20 Sep 2024
1 answer
293 views

Does anyone have some sample code showing how to populate a Telerik Blazor Grid with data from a MSSQL Stored Procedure? I am using a Blazor Server template and have got it populating from a table/class model, but not quite sure of the syntax for populating from a stored proc.  I will then want to implement CRUD operations.  Any help would be very much appreciated!

Dimo
Telerik team
 answered on 20 Sep 2024
1 answer
164 views

In Telerik themes, we see this z-index on .k-tooltip.  This would put it comfortably above some other high z-index values we had to use.

.k-tooltip {

    z-index: 12000;

}

 

However, it's held within a div class="k-animation-container telerik-blazor" which has low z-index such as 3 or 11.  This puts it below our z-index, which might be in the 900s.  Was there a reason this k-animation-container z-index was so low?

Dimo
Telerik team
 updated answer on 19 Sep 2024
1 answer
140 views

Hi.

I have a requirement I'm stumped with.  The client has a wizard and they want to enforce linear flow when moving forwards in the wizard, but they want it to be possible to skip back more than one step at a time.

So on any given step you can only go forwards one step, but you can go back more than one.

I can't think of any way to do this - is it possible?

Thanks,

Dean

Dimo
Telerik team
 answered on 18 Sep 2024
1 answer
235 views

Hi,

I am using Telerik UI for Blazor version 5.0.1 in my project, and a Veracode scan has identified a vulnerability in this version (see the attached image for details). Could you please advise on a solution to address this issue and how we can resolve it?

Thank you.

Dimo
Telerik team
 answered on 18 Sep 2024
1 answer
290 views

I have a bool property binded in two way to a dialog checkbox.

if i change the check value, the variabile inside the dialog in binded correctly, but the variable binded in the main component in not updated.

 

Check this sample, if i set the check and close the dialog, the parent compoent variable is not updated.

https://blazorrepl.telerik.com/ceuZbwah44LSdBQu06

 

how to solve?

 

Main.Razor

 

@if (IsDialogVisible)
{
   <CheckDialog @bind-CheckValue="CheckValue" OnClose="() => IsDialogVisible = false" />
}
<p>CheckValue is @CheckValue</p>
@code {
    private bool IsDialogVisible {get;set;} = true;
    private bool CheckValue {get;set;}

}

 

CheckDialog.Razor

<TelerikDialog @ref="Dialog" Visible="true" ShowCloseButton="false">
       <DialogContent>
       <TelerikCheckBox @bind-Value="CheckValue" OnChange="() => Dialog.Refresh()" />    
       Check test
       </DialogContent>
     <DialogButtons>
         <TelerikButton OnClick="() => OnClose.InvokeAsync()">Close</TelerikButton>
     </DialogButtons>
</TelerikDialog>
@code {
    private TelerikDialog Dialog {get;set;}
    
    [Parameter]
    public bool CheckValue {get;set;}
    [Parameter]
    public EventCallback<bool> CheckValueChanged {get;set;}
    [Parameter]
    public EventCallback OnClose {get;set;}
}

 

Dimo
Telerik team
 answered on 13 Sep 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?