Telerik Forums
UI for WPF Forum
2 answers
196 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
235 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
148 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
349 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
169 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
2 answers
270 views

Hi,

I am trying to conditionally format the contents of merged cells. For this I have implemented a MergedCellStyleSelector as per the examples. The setters all work as expected except for setting the foreground color. If I look at the live visual tree in VS I can see that the data gets presented in a text block which does not inherit from the foreground property set on the conditional style.

public class MergedSlotStyleSelector : StyleSelector
{
    public override Style SelectStyle(object item, DependencyObject container)
    {
        var info = item as MergedCellInfo;
        var cell = container as GridViewMergedCell;
        var column = cell.DataColumn;
        var ctx = cell.DataContext as MainViewModel;
        var vm = ctx.SectionElements.OrderBy(o=>o.Sequence).ToArray()[info.VerticalStart];
 
        var baseStyle = Application.Current.Resources["GridViewMergedCellStyle"] as Style;
        var background = new SolidColorBrush(Telerik.Windows.Controls.FluentPalette.Palette.AccentColor);
        var foreground = new SolidColorBrush(Telerik.Windows.Controls.FluentPalette.Palette.PrimaryMouseOverColor);
        var style = new Style(typeof(GridViewMergedCell), baseStyle);
        style.Setters.Add(new Setter(GridViewMergedCell.VerticalContentAlignmentProperty, VerticalAlignment.Center));
        style.Setters.Add(new Setter(GridViewMergedCell.HorizontalContentAlignmentProperty, HorizontalAlignment.Right));
        if (vm.IsRulingSegment)
        {
            style.Setters.Add(new Setter(GridViewMergedCell.BackgroundProperty, background)); //<-- THIS WORKS
            style.Setters.Add(new Setter(GridViewMergedCell.ForegroundProperty, foreground)); //<-- THIS DOES NOT WORK
            style.Setters.Add(new Setter(GridViewMergedCell.FontWeightProperty, FontWeights.Bold)); //<-- THIS WORKS
        }
        return style;
    }
}
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 16 Mar 2020
1 answer
110 views

Hi Telerik team,

I have a special case where it is required to find a row number automatically and later on save it to respective binded property.

I have gone through some of examples to find row indexes but can you please guide me how to set them to respective fields.

Vladimir Stoyanov
Telerik team
 answered on 13 Mar 2020
1 answer
278 views

I am trying to validate a Textbox that will hold an IP Address. I have a working example that works as expected

 

 <telerik:RadMaskedTextInput ValidationRegex="{x:Static maskedInput:ValidationHelper.IP}" x:Name="hueIpAddress" Height="23" Margin="203,39,0,0" VerticalAlignment="Top" Width="120" HorizontalAlignment="Left" 
                                    EmptyContent="Enter IP Address"
                                    InputBehavior="Insert"                 
                                    Mask="{Binding Path=Text, ElementName=Mask, Mode=TwoWay}"
                                    IsClearButtonVisible="False"
                                    SelectionOnFocus="CaretToEnd"
                                    TextMode="PlainText" 
                                    UpdateValueEvent="ProperyChanged"     />

 

But no matter what I do, I cannot get an event to fire when the value is updated. I have tried ValueChanged and ValueChanging, but none fire as expected, and I am not interested in playing the PreviewTextInput/KeyDown game which is unreliable. I want to be able to update a label on my page with the current value of the text box, and doing it via the handle method as I will need to do other stuff as well. 

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Mar 2020
2 answers
237 views

I need the time interval to be 1 minute. This makes the dropdown unusable. How can I disable or just remove the dropdown completely so it works like the old WinForms time picker? I saw this:

https://www.telerik.com/forums/how-to-remove-the-drop-down-button

but it's pretty old and I don't really want to mess with Expression Blend (if it even still exists?). I would also need the cursor keys and mouse wheel to increment/decrement the current value.

Or is it better to just try make the NumericUpDown work like a TimePicker?

Jason D
Top achievements
Rank 1
Veteran
 answered on 11 Mar 2020
5 answers
159 views

Hello,

As you can see in the attached screenshot, the first row has not a top red line.

Vicky
Telerik team
 answered on 11 Mar 2020
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?