Telerik Forums
UI for Blazor Forum
1 answer
487 views

Hello,

is there a way to avoid collapsing and/or expanding tree items depending on the value of a property from the data model ?

 

Additionally a feature request would be helpful: E.g.

Model:

class Node {
  public int Id {get;set;}
  public int ParentId {get;set;}
  public string Name {get;set;}
  public bool IsExpanded {get;set;}
  public bool IsCollapsed {get;set;}
  public bool CanExpanded {get;set;}
  public bool CanCollapsed {get;set;}
}

Bind properties IsExpanded/IsCollapsed to the tree => OnInitial render the node is expanded/collapsed

Bind properites CanExpanded/CanCollapsed to the tree => able to expand/collapse a tree node (and render the indicator differently)

 

Marin Bratanov
Telerik team
 answered on 19 Mar 2022
1 answer
1.1K+ views
I want to provide a dropdownlist with some known values.  There is a chance that the user will want to input another value other than in the dropdown.  Is there an example of having a dropdown list with either a optional value that can be specified in a textbox or such?
Marin Bratanov
Telerik team
 answered on 19 Mar 2022
1 answer
125 views

Hello, 

Any way possible that a custom method can be fired using the selected items from multiselect. There is absolutely no where in the documentation to specify this. It is only provided SelectedItemsChanged that takes lambda. When trying to fire a custom method on selected items when the user clicks a button, the follwing   error is thrown: 

Argument 2: cannot convert from 'method group' to 'EventCallback' .

 

It is provided a link below : The lambda expression in the handler is required by the framework: https://github.com/aspnet/AspNetCore/issues/12226

It doesn't really make sense why this link has been provided as it takes you to a blog page and absolutely no solution is provided.


So may I ask, how do you fire a custom method only on the selected items?

Thank you.

7

Kind regards

 

Marin Bratanov
Telerik team
 answered on 18 Mar 2022
1 answer
91 views

Hello,

Any way possible that you can use GridCheckboxColumn multiple select and fire a custom method only for those selected items? I didn't see anywhere is the documentation if it's possible. Thank you

Marin Bratanov
Telerik team
 answered on 18 Mar 2022
1 answer
2.6K+ views

Problem Description

In my code currently we have a Telerik DropDownList that triggers a redraw of a TelerikGrid based on the option selected within the dropdown.  

The current challenge is that when the DropDownList selection is changed, the focus is still set to the DropDownList.  The effect this has is that when a user attempts to click the edit or add buttons within the Grid, the user has to click twice with the mouse.  The first click doesn't seem to do anything because it's that click that causes the focus to be taken off of the DropDownList, while the second click actually allows the desired action to be triggered.

Note below, how focus is still set to the dropdown

 

The problem is that the DropDownList doesn't have a Blur() event, and none of the Telerik Components within the page (Form, Grid, and all of their child components) have the SetFocusAsync() method.  

 

Current Solution in Place

The current solution we're using is to have an invisible TelerikTextBox on the page that we call SetFocusAsync on when a selection is made to the DropDownList. This is not the most ideal solution and I am reaching out to see if there is a better way to handle this.

 

Thank you so much, and enjoy your day!

ADAM

 

Apostolos
Telerik team
 answered on 18 Mar 2022
1 answer
304 views

Hi,

How do I add colors to the Editor text color picker in the editor?

The colors Red, Purple, Pink, etc are missing from the color picker.

The editor can support the missing colors, but they are included in the color picker.

 

Thanks,

Apostolos
Telerik team
 answered on 18 Mar 2022
0 answers
114 views
Hello!
Is is possible to replace default pager's buttons tooltip to TelerikTooltip?



Tooltips for "Go to next page", "Go to previous page" etc...
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 asked on 17 Mar 2022
1 answer
426 views

Hi, do you have a working sample of Cascading DropDownList with Virtualization?

My use case:

There are 2 dropdowns (A and B), dropdown B cascaded from A, dropdown B has virtualization turn on (large data) .

I want to use the onChange-virtualization so I can still use my standard bind-value.

I tried to follow your example https://docs.telerik.com/blazor-ui/knowledge-base/samples/dropdownlist-cascading-samples.zip from your article https://docs.telerik.com/blazor-ui/knowledge-base/dropdown-cascading

The problem with that "onchange-virtualization" sample is the second dropdown is still loading all the data

 

I already tried not calling GetAllproducts() but just calling Rebind() (on the productDropDown) now the problem is the selectedValue on the second dropdown won't change after the first dropdown value has been changed. This does not happened when I use non virtualization.

The other problem with Rebind(): the skip value is not reset to 0.

 

So do you have the latest sample for this common virtualization use case?

 

Thank you

 

 

 

Dimo
Telerik team
 answered on 17 Mar 2022
1 answer
83 views

Since upgrading from Telerik 3.0.1 to 3.1.0, DateInput controls no longer bind to properties for me. 

The following works in 3.0.1 but not 3.1.0

@page "/TestPage"

<p>Message: @Message</p>
<p>MyDate: @MyDate</p>

<TelerikTextBox @bind-Value="Message"></TelerikTextBox>
<TelerikDateInput @bind-Value="MyDate" Format="dd/MM/yyyy"></TelerikDateInput>

@code {
    public string Message { get; set; }
    public DateTime MyDate { get; set; }
}


Dean
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 16 Mar 2022
1 answer
95 views

I would like to limit how many nested groups in the Filter the user can make.  Something like MaxNestedDepth. 

Does something like this exist? I couldn't see it in the docs. 

Thanks.

PS: there is no tag for the Filter control, Grid was the closest related control I could find. 

Hristian Stefanov
Telerik team
 answered on 16 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?