Telerik Forums
UI for Blazor Forum
0 answers
426 views

I use blazor chart component and it works quite fine. The problem starts when printing the current html page (CTRL+P) then the chart gets cut off on the right side and does not scale correctly. As you can see in my screenshot the table above the chart is scaled ok but the chart is cut off.

What can I do to print the chart in a correct way?

Regards
Heiko

Heiko
Top achievements
Rank 1
Iron
Veteran
 asked on 22 Mar 2022
0 answers
994 views

I have experience with Linq Expressions and like to implement my own. 

The gridState.FilterDescriptors.Add method accepts anything of interface IFilterDescriptor.

However, when I give it my own implementation of IFilterDescriptor, it compiles fine but then throws an error during runtime:

System.InvalidCastException: 'Unable to cast object of type 'MyFilterDescriptor' to type 'Telerik.DataSource.FilterDescriptor'.'

I thought to inherit Telerik.DataSource.FilterDescriptor and Telerik.DataSource.CompositeFilterDescriptor and override the CreateFilterExpression method, but that didn't work either, as it always ends up calling the method in the base FilterDescriptor.

Is this by design, or is there a way now or in the future to implement my own IFilterDescriptor?

Thanks.

Alex
Top achievements
Rank 1
Iron
Iron
 updated question on 22 Mar 2022
0 answers
128 views

Hello everyone,

Is there a possibility to set some properties regarding the design of the grid for example:
- header background color
- rounded corners
- interlaced, flat design for the rows, now it's interlaced by default, I mean, a row white, a row grey, by flat I mean all rows in the same color, white for example

I know that this changes can be done from CSS but if I do them I don't want to influence the design for the active row for example, so I'm interested if there can be a much nicer solution.

Thank you,
Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 21 Mar 2022
1 answer
152 views

I am using TreeList and a custom template on a column to display user avatar. I also need to sort and filter on this column. However when combine all of these features (sort and filter) on a template column, it doesn't work. There are 2 scenarios:

- When enable sort, the filtering works

- When disable sort, the filtering doesnt work

Is there any work around solution for this? I am using UI for Blazor 3.0.1

 

My snippet

https://blazorrepl.telerik.com/mQuxlWkD32B5eGay33

Radko
Telerik team
 updated answer on 21 Mar 2022
0 answers
150 views

Hi,

We're new to Teleric UI control and we plan to build a one page on Blazer client and use Blazor server in the Server side. 

The server contains business logic to connect to a Azure DB.  On client side, we provide a simple textbox to input search parameter and trigger a DB search. The result will be returned by several stored procedure kind of functions. 

On the client side, we hope to display a tree.  When user click the root node, it'll expand with 3 child nodes. We hope to do data binding to a data table in the node. 

Does TreeList  or TreeView control support that functionality?

Thanks,

Ellen

Ellen
Top achievements
Rank 1
 asked on 21 Mar 2022
1 answer
531 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.2K+ 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
176 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
111 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.8K+ 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?