Telerik Forums
UI for WPF Forum
1 answer
129 views

https://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-filter-radchart-using-the-gridviews-compositefilterdescriptor

I was following the above post regarding using a GridView and CompositeFilterDescriptor to filter a chart, however, I noticed that the example only applies to RadChart, and not RadChartView. When I attempted to implement it on a RadChartView item, I was met with a missing reference error because CartesianChart (in my case) does not have a reference to FilterDescriptors.

Is there any way to achieve this same effect with the current RadChartView? I would really like to avoid having to use a RadChart in my application if possible.

Thanks!

Vladimir Stoyanov
Telerik team
 answered on 07 Apr 2020
2 answers
348 views
Hello there,

we are using the RadDiagram to create a kind of hierarchical view, where the connections should show some information about the connection itself.

I've tried to use the Horizontal-/VerticalContentAlignment for this, but since the different directions of the connections I haven't found a solution that worked for all connections yet.

I've attached a picture of our momentary existing diagram. The text for the connections is correctly placed on connections to the left, but not to the right.

Here is the style we are currently using:
<Style x:Key="EdgeStyle" TargetType="telerik:RadDiagramConnection">
                        <Setter Property="SourceCapType" Value="Arrow1" />
                        <Setter Property="VerticalContentAlignment" Value="Center"/>
                        <Setter Property="HorizontalContentAlignment" Value="Left"/>
                        <Setter Property="ContentTemplate">
                            <Setter.Value>
                                <DataTemplate DataType="diagramStuff:DiagramEdge">
                                    <TextBlock HorizontalAlignment="Left" Margin="-20,10,0,0" Background="#F3FFFFFF" Text="{Binding Description}" />
                                </DataTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>

It would be perfect, if the text could be positioned right beneath where the connection "meets" the Shape (I've marked the spot on the screenshot in yellow), but I have no idea how to accomplish this.

Could you please help me out how we could accomplish this?


Petar Mladenov
Telerik team
 answered on 07 Apr 2020
1 answer
179 views

Hello,

I'm having an issue that so far seems to affect only one out of about eight users that have tested so far. When the user drags a pane to the main docking compass and hovers, the highlighted section indicating where the pane will dock to is incorrect. But the pane does end up docking correctly.  The real problem is when the user tries to dock to the left root compass. The section does not highlight and letting go of he mouse does not dock to the left.  This only happens for one user. The user is on a laptop and remotes into the test server via RDP.  The user seems the same results when RDPing into 3 other test servers.  The other seven users are also using an RDP session but everything works correctly for them.  I've attached an example of the misplaced arrows (you can see that the right root compass arrow is moved in a bit) and hover as well as an example of what it looks like for everyone else.

I have not overridden any behaviors for the docking drag and drop or any styling for the compass.  I'm curious if anyone knows of why this would only be happening to one user. My first thought was screen resolution but I do not see anything out of the ordinary for that user.

Thank you,

Tara

Kalin
Telerik team
 answered on 07 Apr 2020
3 answers
158 views

We've got a custom control which inherits RadTabbedWindow. I.e:

 

<telerik:RadTabbedWindow x:Class="MyCustomTabbedWindow">...</telerik:RadTabbedWindow>

 

MyCustomTabbedWindow binds to a viewmodel and so on, and works fine. However, when it creates a new window by dragging a tab out of it, the new window (event.NewWindow) is of the base type (RadTabbedWindow), not MyCustomTabbedWindow...

 

Is it possible to fix this somehow so that the newly created window is of the correct type? At the moment we've done a workaround which creates the new window in the event handler and cancels the original event, but that feels... like a workaround :)

 

Any suggestions on how to go about doing this?

Mattias
Top achievements
Rank 1
 answered on 07 Apr 2020
2 answers
319 views

Hi, can someone show me a simple way how to set "mat:ThemeEffectsHelper.IsAcrylic" to false? I was not able to create a new style based on DialogWindowStyle without getting errors.

Thanks!

Regards
Heiko

Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 06 Apr 2020
5 answers
195 views

Is there a way to add a header row to the DropDownItemTemplate in the RadAutoCompleteBox?

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Apr 2020
3 answers
361 views

How to create a Rad Diagram canvas with fixed height and width and get only the positive quadrant (x,y) in the view port?

The issue is when I add shapes to the canvas it can be dragged to any quadrant of the canvas, which I want to restrict.

In any case the shapes should not go outside the positive x,y coordinates. I could not find any setting or implementation related to this any samples.

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Apr 2020
4 answers
1.0K+ views

We currently having issues using the RadMultiColumnComboBox when we change property on the view model which we are binding to.  

1.  We have multiple items with properties and one property is connected to the ComboBox.

2. We select one item in the view and the connected property is displayed in the ComboBox correctly.

3. We select a different item with the same value in the connected property, but the ComboBox does not display any text (null text).

4. Selecting another item with different value in the connected property results in displaying text again in the ComboBox.

 

For example items could be employees with a display name (DisplayName) property. We have a list of employees populated as item source provider. 

The DisplayMemberPath in the ComboBox is set to the DisplayName property.

The SelectedItem property is set to the employee. We also have three more ComboBoxes on the same page that behave correctly (just binding to different properties) and cause no issue.

 

Any idea what could go wrong?

 

Regards, Martin

Martin
Top achievements
Rank 1
 answered on 06 Apr 2020
3 answers
220 views
I would like to always freeze the first physical row and column whenever a sheet is selected. However the Freeze Panes method always indexes into whichever rows and columns are currently in the viewport, which might be anywhere on the sheet. How can I get the viewport to scroll to first physical row and column on sheet change?
Dimitar
Telerik team
 answered on 06 Apr 2020
5 answers
197 views
Hello,

I'm using a RadScheduleView in my project, and it works fine most of the time. But I have had two cases where I get a System.ArgumentException right at the begining when I load my app, whitout being able to do anything about it.

some details :

my app opens at first on a screen containing a radScheduleView.
the radScheduleView is mannulay set to the user's preference (what views he wants, what dayStartTime / dayEndTime, FirstDayOfWeek etc...) in code behind

so what I do is I clear the ViewDefinitionsCollection and then add exactly the views I want, depending on those settings.

here is the function that adds the ViewDefinitions :

/// <summary>
/// Adds a new ViewDefinition in the Collection
/// </summary>
/// <param name="viewDefinitionId">id of the view</param>
/// <param name="viewDefinitionName">display text for the view (localized)</param>
private void AddViewDefinition(int viewDefinitionId, string viewDefinitionName)
{
    ViewDefinitionBase viewDefinition = null;
    int activeViewDefinitionIndex = ScheduleView.ActiveViewDefinitionIndex;
 
    switch (viewDefinitionId)
    {
        case 0: ScheduleView.ViewDefinitions.Add(viewDefinition = new DayViewDefinition { Title = viewDefinitionName, TimerulerMajorTickStringFormat = "{0:t}     " }); break;
        case 1: ScheduleView.ViewDefinitions.Add(viewDefinition = new WeekViewDefinition { Title = viewDefinitionName, TimerulerMajorTickStringFormat = "{0:t}     " }); break;
        case 2: ScheduleView.ViewDefinitions.Add(viewDefinition = new WeekViewDefinition
                    {
                        Title = viewDefinitionName,
                        TimerulerMajorTickStringFormat = "{0:t}     ",
                        GroupFilter = obj =>
                        {
                            if (obj is DateTime)
                            {
                                var day = ((DateTime)obj).DayOfWeek.GetRecurrenceDay();
                                return (day & WorkingDays) == day;
                            }
                            return true;
                        }
                    }); break;
        case 3: ScheduleView.ViewDefinitions.Add(viewDefinition = new MonthViewDefinition { Title = viewDefinitionName }); break;
    }
 
    if (viewDefinition == null) return;
 
    viewDefinition.SetValue(IdProperty, viewDefinitionId);
    viewDefinition.SetValue(DayViewDefinition.EnableSmallAppointmentRenderingProperty, true);
 
    ScheduleView.ActiveViewDefinitionIndex = activeViewDefinitionIndex;
}

and the Issue I have seems to lies within this function (see attached screenshot for details on the exception)

do you have any idea what is happening here? (I don't)


as far as I can tell, this code should work fine to add new ViewDefinitions to the collection, but for whatever reason I get this Exception. I could catch it and move on but then again, I'd rather know what goes wrong than try to ignore it.

thanks
Martin Ivanov
Telerik team
 answered on 03 Apr 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?