Telerik Forums
UI for Blazor Forum
1 answer
1.3K+ views

My question specifically relates to the use of Radio Group, but could apply to other controls as well. Where the documentation talks about value binding vs data binding, this is in relation to the source data (i.e. the collection of options a user can choose from), and not the selected value. Taking the following example:

<TelerikRadioGroup @bind-Value=@selectedValue Data=@sourceList TextField="ATextProperty" ValueField="AnIntProperty"></TelerikRadioGroup>

In this case in my code I can have my selectedValue be an int (to match the value field). But lets say, following the example from the documentation, I want to bind the selected object, not a property of the object, like this:


<TelerikRadioGroup @bind-Value=@selectedValue Data=@sourceList TextField="GenderText" TValue="GenderModel"></TelerikRadioGroup>

Is there a way to do something like this? I haven't been able to get it work. I have tried using ValueChanged as well, this way:


<TelerikRadioGroup @selectedValue Data=@sourceList TextField="ATextProperty" ValueChanged="@((v) => OnValueChanged(v))"></TelerikRadioGroup>

And this way:


<TelerikRadioGroup @selectedValue Data=@sourceList TextField="ATextProperty" ValueChanged="@((GenderModel v) => OnValueChanged(v))"></TelerikRadioGroup>
But the value passed in to OnValueChanged is always null.
Marin Bratanov
Telerik team
 answered on 05 Aug 2021
1 answer
137 views
Is there a way to Export Selected items from the Grid? If not, I'm guessing the easiest way would be to create our own Export functionality?
Marin Bratanov
Telerik team
 answered on 05 Aug 2021
1 answer
713 views

When I select an option in a radio group, the selection is focused (I can see the styled highlighting) but not selected. When the radio group is blurred (loses focus), the selected item now appears selected.

 

Figure: Item selected and programmatic selection successful, but radio button is not checked

 

Figure: Once I click out of the radio group, the selected button is checked

Baires
Top achievements
Rank 1
Iron
 answered on 05 Aug 2021
4 answers
416 views

Hi

After the update I get the following error message:


/...Views/ViewRoute.razor(13,13): Error CS0012: The type 'SortDescriptor' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.DataSource, Version=2.0.10.0, Culture=neutral, PublicKeyToken=29ac1a93ec063d92'. (CS0012) 

the package is installed...nevertheless I get the error

<PackageReference Include="Telerik.UI.for.Blazor" Version="2.26.0" /> <PackageReference Include="Telerik.DataSource" Version="2.0.10" />

 

yet I get the error at this position
  GridState<Wegpunkte> desiredState = new GridState<Wegpunkte>()
        {
            SortDescriptors = new List<SortDescriptor>()
        {
                new SortDescriptor {Member = "TourPos", SortDirection = ListSortDirection.Ascending}
            }
        };
is there a solution for this?
Thank you very much
Joana
Telerik team
 answered on 04 Aug 2021
1 answer
559 views

I'm trying to make the Editor a bit restricted for my users on specific pages. I have the following requirements:

  • Only a specific font be applied from the get-go. No font selection
  • Prevent pasting of other fonts
  • Have only one font in the font combo
    • Allow a default style of Ariel, 8 for normal text
    • Allow two types of headings
    • Allow Bold, Italic and underline style

Is it possible to lock it down?

Dimo
Telerik team
 answered on 04 Aug 2021
1 answer
120 views

Users would like any row selected not be filtered out of display.  

new FilterDescriptor(nameof(Selected), FilterOperator.IsEqual, true)?
Marin Bratanov
Telerik team
 answered on 03 Aug 2021
1 answer
679 views

I do NOT wish to expose my database structures to front-end clients of my API.  I use flattened Data Transfer Objects (DTO) to communicate between client and server.  So, I want to use the DataRequest pieces to generate my own queries against the database to retrieve the data,  I see no harm in using Data Transfer Objects (DTO) in returning a DataResponse object.

That is way more manual than your code samples or documentation shows.

Can you point me to information about parsing filters, sort orders, paging, no grouping (thankfully).  I'll take it from there. 

Oh, is there a decoupled control for building filters that could be applied to a grid?  It seems the only two options are Menu or Row.  It would seem a decoupled filter control would be terrific for saving a filter configuration as well.

Marin Bratanov
Telerik team
 answered on 03 Aug 2021
1 answer
321 views

The Telerik.DataSource nuget package has been updated to major version 2 with a dependency on netstandard 2.1. This causes issues for older services that are still using the full .net framework. For example, we are moving to a microservice architecture, where microservices are targeting .net core 3.1+, but the monolith the functionality is being cut out of is still using .net framework (and will use it until it dies a horrible fiery death). The communication between the microservices and monolith is based on contract assemblies, that have to target netstandard 2.0 for compatibility. Now, one of these microservices would like to expose a query API for a backoffice UI microservice using the Telerik.DataSource DataSourceRequest/DataEnvelope contract for convenient binding to Telerik widgets. The contract assembly for this communication is however also used by the old monolith to cover functionality not yet cut out to modern microservices.

Now, to the question. Is there in the works (or in the stars) a separation of the Telerik.DataSource actual contract package (the aforementioned DataSourceRequest "DTO" structure, targeting netstandard 2.0) and the implementation package (targeting netstandard 2.1)?. I've played around a bit with the source code and it looks feasible from my point of view, just not sure it would be worth the effort on your end. I do imagine though that more customers will run into this issue when migrating? I would be glad to help (with a pull request maybe) if you are interested and think that this would be worthwhile (I do realise this would be a breaking change)...

Radko
Telerik team
 answered on 03 Aug 2021
1 answer
213 views

I am testing a chart with bar lines but the horizontal legend at the bottom all the numbers collapse with the others

It also happens in other charts where so many numbers or dates that are not legible, is there any workaround to avoid this and reduce the number of numbers/intervals?

Alberto
Top achievements
Rank 1
 updated question on 03 Aug 2021
5 answers
2.4K+ views
Greetings, could you help me with the information on how I obtain a keyDown event in the grid, or a row of this, what happens is that I need to obtain when the user presses the delete key in order to eliminate the current row that he is selecting.

I use Blazor 2.25 web server
vs 2019
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
 updated answer on 01 Aug 2021
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?