Telerik Forums
UI for WPF Forum
1 answer
235 views
Hello , I hope you are well.

I have a problem and I need help , I'm working on a WPF project with Telerik UI , my issue is turning about CRUD System 

I Have those things : 
 - Entity Model Auto generated 
 - Dynamic RadDataForm with dynamic Data source for each Table in my Entity model.
 - SQL Server DataBase 

When I load my DataContext , the dataform dynamicly generated with Model types ( Ex : text feild for string types , date Picker for DateTime types ... ) unitil now all is good.

First problem : 

So for Float types when I add a new item and leaving the text field empty is working because it's not required in my data annotations but when I put a value and I change my mind after by let the value empty I got the error Validation message " input string format is incorrect " , knowing that my ( int , float ) values in my Model is Nullable ( I tried Nullable<flaot> and float? ) both cases the same error.

Note : I tried with the ( sdk-projects Telerik  and Demos - Telerik UI for WPF ) examples and same result. 

Second problem : 

In the RadDataForm for numeric values do I can't insert decimal numbers normally ? ( Ex: I wanna write 5.2  I found that I have to write 52 and use arrows position between ( 5 and 2 ) and then put the ' point (.) '

Thank you .
Martin Ivanov
Telerik team
 answered on 18 Mar 2020
1 answer
98 views

Hi,

The Radwindown show incompletely  when restoring from minimum state, just like there is no fresh to most of window area.

I asked in the SO site , but there is no answer. 

 

https://stackoverflow.com/questions/59711037/telerik-radwindow-render-incompletely-when-setting-allowtransparency-false

 

Thanks.

Martin Ivanov
Telerik team
 answered on 18 Mar 2020
1 answer
356 views

Hi.

 

I would like to obtain a donut-like graph similar to the one in the image. How could I put text inside a donut graphic?

 

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Mar 2020
1 answer
76 views

I have a large dynamic number of series to display on a RadCartesianChart (series will be generated using a SeriesProvider). Groups of series will share a common vertical axis (such as 5 series on axis A, and another 5 series on axis B).  All series will be of the same type.

 

If possible, I'd like to use a palette for automatically assigning the colors to each series.  However, the series on Axis A should have one group of colors (e.g. various shades a red), and the series on Axis B should have a different group of colors (e.g. various shades of blue). 

 

 

Is there a way to use a separate palette for each group of series, or associate a group of series with a given group of PaletteEntries?  Since all series will be of the same type, I assume I can only create one SeriesEntry collection in a custom palette for this series type.

 

 

Or are my best options to manually assign the appropriate PaletteEntry to each series, or forget the palette altogether and just manually assign the desired colors?

Martin Ivanov
Telerik team
 answered on 17 Mar 2020
1 answer
783 views

I'm trying to modify the tab control's header background and border with the style triggers when the tab is selected but nothing seems to be working and the code also doesn't shows any error message.

Below is the XAML of the control:

<telerik:RadTabControl x:Name="presetTab" Grid.Row="1" Margin="0,5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
   ScrollMode="Item" HeaderBackground="#F7F3F2"
   ItemsSource="{Binding Source={StaticResource DataSource}, Path=Tabs}"
   ContentTemplateSelector="{StaticResource ContentSelector}">
<telerik:RadTabControl.ItemContainerStyle>
<Style TargetType="telerik:RadTabItem">
<Setter Property="BorderBrush" Value="#BCBCBC"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="HeaderForeground" Value="Black"/>
<Style.Triggers>
<Trigger Property="telerik:RadTabItem.IsSelected" Value="True">
<Setter Property="BorderBrush" Value="#BCBCBC"/>

<Setter Property="BorderThickness" Value="1"/>

</Trigger>
</Style.Triggers>
</Style>
</telerik:RadTabControl.ItemContainerStyle>
</telerik:RadTabControl>

I need to apply the same border style as normal when the tab is selected and the background color will be different.

I tried the IsSelected property both in Data Trigger and in Style Trigger but both is not working. What am I doing wrong.

Regards,

Karthik N

Vicky
Telerik team
 answered on 17 Mar 2020
2 answers
182 views

Hello

I have a Grid with dynamic object on DataSource with AutoGeneratedColumns.

When I open a filter on any column, i only have 4 options : "equals / not equals / null / not null"

How can I activate "contains" when my colum is string ?

To reproduce, you can test on 'BindingToDynamicObject' project on sdk (https://github.com/telerik/xaml-sdk/tree/master/GridView/BindingToDynamicObject)

Thanks for your help

JC
Top achievements
Rank 1
 answered on 17 Mar 2020
5 answers
207 views
Hello,

My application shows a series of diagrams and implements a back-forward functionality on them. I do this by changing GraphSource.

However, I would like to preserve the position and zoom of the diagrams as the user goes back and forth. I'm trying to do this by setting the Position and Zoom properties on RadDiagram. However, the view is not correctly restored. I've verified that the correct position and zoom values are being set.

What is the recommended way to do this?
Petar Mladenov
Telerik team
 answered on 17 Mar 2020
1 answer
130 views

Hello,

 

I've implemented a Pivot Grid in an application and noticed that the date format doesn't follow the localization (in this case French).

The dates will always be displayed in [MM/dd/yyyy hh:mm:ss]

 

After some research, I've created a DateTimeGroupDescriptor to fix the displayed format.

However, it breaks the "Label filter" option (ex: when filtering with "is greater than 01st Jan 2019", it still displays 2011 entries).

If I don't use the group descriptor, it works fine.

 

How can I fix this? (my goal is to display the dates in the following format [dd/MM/yyyy] while preserving the Label filter option)

 

By the way, I'm using the latest R1 2020 SP1 update.

Let me know if you need more information.

 

Side note: when using the UI culture fr-FR, the sorting label is incorrects

It says "Classer de A à Z" for "Sort Z to A" instead of "Classer de Z à A" ;)

Martin Ivanov
Telerik team
 answered on 17 Mar 2020
1 answer
314 views

I am using QueryableCollectionView (QCV) together with EF Core 3.1.2 as a datasource for RadGridView. As soon as I set an AggregateFunctions on a DataColumn in my grid EF Core throws an error:

System.InvalidOperationException
  HResult=0x80131509
  Message= Processing of the LINQ expression '(GroupByShaperExpression:
KeySelector: (1), 
ElementSelector:(EntityShaperExpression: 
    EntityType: SalesOrderHeader
    ValueBufferExpression: 
        (ProjectionBindingExpression: EmptyProjectionMember)
    IsNullable: False
)
)' by 'RelationalProjectionBindingExpressionVisitor' failed. This may indicate either a bug or a limitation in EF Core. See https://go.microsoft.com/fwlink/?linkid=2101433 for more detailed information.
  Source= Microsoft.EntityFrameworkCore.Relational

I consider this as a serious bug. The way EF Core 3.x supports query evaluation has changed drastically compared to former versions (as mentioned in the link inside the error message) and it seems that Telerik's query building is not taken this fact into account.

It is quite simple to reproduce the error:

1. Create a .NET Core 3 WPF project with Telerik.UI.for.Wpf.NetCore 2020.1.218
2. Add EF Core 3.1.x package
3. Create a DbContext with just one table (which is enough to reproduce the error)
4. Create a QCV from the table
5. Place a RadGridView and bind it to the QCV

Everything should work as expected. Now place an AggregateFunction like CountFunction on one DataColumn and you should see the error. There is also a similar issue in this thread:

https://www.telerik.com/forums/todatasource-throws-exception-using-ef-core-3-0-with-groups

At the moment I am migrating a WPF application from .NET 4.6.1 to .NET Core 3 and I rely heavily on QCV. I would be very grateful for any help!

Regards
Heiko

 

Vladimir Stoyanov
Telerik team
 answered on 16 Mar 2020
3 answers
156 views

Fairly new, and I hope this isn't a dumb question, but...

When I create a RadTimeBar by its lonesome, and bind values to the PeriodStart/End, SelectionStart/End everything works as expected. If I use it in a ItemTemplate in a RadListBox, intervals no longer show.

Any ideas?

 

 

 

 

Bryan
Top achievements
Rank 1
 answered on 16 Mar 2020
Narrow your results
Selected tags
Tags
+? more
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?
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?