Telerik Forums
UI for WPF Forum
2 answers
297 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
126 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
121 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
261 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
135 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
299 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
883 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
141 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
146 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
1 answer
595 views

I have tried to migrate one project in a big solution to the new csproj SDK style

But I get this error
Error    MC1000    Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.OpenAccess, Version=2013.2.702.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'     Reports    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets

To avoid having nuget packages inside our git repository we have all the telerik packages on our own private nuget server

<PackageReference Include="Seges.Dms.Telerik" Version="1.0.2" />

<PackageReference Include="Seges.Dms.Telerik.Reporting" Version="1.1.0" />

And it seems that in the old style all the telerik packages inside our Seges.Dms.Telerik package are added individually, but when I look now in "Manage nuget packages" they both have the same.

One "funny" note is that on my machine in the Repository where I changed the code it builds, but if I do a new clone and build again I get the error and so do TeamCity and a fellew programmer

Also when looking at https://www.telerik.com/forums/could-not-load-assembly-telerik-openaccess it sounds like people have installed OpenAccess SDK, but this have never been installed on our Teamcity server or my machine, so didnt find any help in this

 

Old csproj https://paste.ofcode.org/RBMWb74Mh75PNLAEkkAiE9

New csproj https://paste.ofcode.org/udNjMVcJLTQRJhGM4uSSEw

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
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?