Telerik Forums
UI for WPF Forum
1 answer
190 views

Hi all,

I am working on a WPF application using Telerik and coded in C# .NET.
My following question goes over an ASP .NET page using the model “Code behind” to implement the logic of the page.

Presently, I have a <telerik:RadGridView> for which the scrollbar moves at the same time as the RadGanttView chart scrollbar.

But I am facing to an issue : 

I would like to get the MinorTick actual width and apply it to the RadGridView columns.

I edited a copy of the template of the GanttView in order to find (I hoped) the width value of the MinorTick. I did not find it.

I accessed the MinorTick's Interval and I tried to apply it to the RadGridView columns, but I cannot.

How could I do to have RadGridView columns with the same width as the one from the RadGanttView chart columns ?


Any help or tip will be much appreciated :)

Yana
Telerik team
 answered on 23 Aug 2016
1 answer
231 views

I am using the TreeListView to display a class hierarchy.  All classes have a base class called Node.  Many parents have children of different types but they are all of type Node. 

The tree displays just fine until I filter on the "FC" column then I get the following exception:  

Additional information: Unable to cast object of type 'TMW.i61850.Model.DataSet' to type 'TMW.i61850.Model.LogicalDevice'.  

The LogicalDevice happens to be the root item in the tree in this case and the DataSet happens to be a grandchild of the LogicalDevice.  Both DataSet and LogicalDevice are of type Node.  

All Column binding is bound to properties that only exist on the Node class.  

<telerik:RadTreeListView ItemsSource="{Binding}"  x:Name="TreeView" Grid.Row="1" IsFilteringAllowed="True"  AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False"

            CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" BeginningEdit="BeginningEdit"  CellEditEnded="CellEditEnded" DistinctValuesLoading="TreeView_DistinctValuesLoading">
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}"/>
            </telerik:RadTreeListView.ChildTableDefinitions>

            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn  Header="Name" Width="300" DataMemberBinding="{Binding Name}"  />
                <telerik:GridViewDataColumn  Header="Value" Width="200" DataMemberBinding="{Binding Value}" />
                <telerik:GridViewDataColumn  Header="FC"  Width="200" DataMemberBinding="{Binding FC}"  />
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>

Stefan Nenchev
Telerik team
 answered on 23 Aug 2016
1 answer
150 views

In ouer  project we use the Docking manager for the Aplication layout.  Some Overviews are  to the Bottom and the one (with Program mesages to the right sight). Its not nice when  the user accidently short the mouse curser over the Pane button and it apears. Learning abaut the docking i've got the idea that the pre popup and auto hide tiemout can be set but i didnt find any property to set them up.

the next propblem is thesome times the panels doesnt hides when the other Panel got the focus. Some times i must click to the right part of subcontrols(such as textbox or combobox to make the panel hide).

Nasko
Telerik team
 answered on 23 Aug 2016
5 answers
135 views

Hi,

I'm trying to create a view based on WeekView and with a footer recapulating specials appointments (named Tasks).
This would look like attached file (ExpectedSchedulerView.png).

The most handy way would be having 2 RadSchedulerView (classic one on top, lightened MonthView on bottom). But I experiment some issue having two RadSheduleView both visible and with different behaviour.

A second and cleaner way would be having an other AppointsPanel/TimeRulerLinesPanel in the RadScheduleViewControlTemplate. That way I'm being blocked by encapsulation : Arrange/MeasureOverride throw exception (NullRef) because the new template child isn't properly initialized.

Then my questions are :

* Is there a known issue about multiple RadScheduleView ? (I already searched for it but got nothing relevant)
* Is extending RadScheduleViewControlTemplate a proper solution or is there an easier/cleanier/more efficient one ?

Thanks,

Romain
Top achievements
Rank 1
 answered on 22 Aug 2016
3 answers
284 views

hi dear developers,

I need to customize the connections in raddiagram just like the attached shape. i reviewed the forum and only find an example that change the color of the connection but i need a more complex connection as it is attached. how can i do that?

al
Top achievements
Rank 1
 answered on 22 Aug 2016
3 answers
171 views

hi dear supporters,

I need to change the shape of connectors of a shape to a custom shape that is a jpg or other image formats.

how can I do that?

al
Top achievements
Rank 1
 answered on 22 Aug 2016
3 answers
126 views

hi dear developers,

i am using raddiagram in wpf.

for shapes, i have used custom shapes and a text where both image and text are added to a stackpanel and the stackpabnel is setted to be the shape content.

now i need to find the item in the diagram by hit test but the hit test brings the textblock or image instead of raddiagram shape. i need the hit test to bring back the raddiagram shape not image or text block. (i also have used IsHittestvisible property to prevent image and text block from catching by the hit test but by using this, the hit test bring nothing).

al
Top achievements
Rank 1
 answered on 22 Aug 2016
5 answers
123 views

Hi,

I have an issue of when I click on a connector with text block content, the diagram control either selects the incorrect connector or does not select anything at all.  It appears a bit random but is quite repeatable.

I have attached a video of the first scenario: https://www.dropbox.com/s/i7wwxon7iqy6hr1/Telerik%20Diagram%20selection%20issue.mp4?dl=0

(Download video as the video may lose video quality)

In this video the middle connector is already selected.  I then click the connector on the far left and you will see the connector on the far right is selected instead.

Here is the sample code:

<Window x:Class="TelerikWpfApp1.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="800" Width="800">
    <Grid>
        <telerik:RadDiagram>
            <telerik:RadDiagramConnection
                StartPoint="100,100"
                EndPoint="100, 500"
                ConnectionType="Polyline"
                SourceConnectorPosition="Auto"
                StrokeThickness="2"  
                ToolTipService.IsEnabled="True"
                SourceCapType="Arrow1"
                TargetCapType="Arrow2"
                ZIndex="4">
                <telerik:RadDiagramConnection.Content>
                    <TextBlock Text="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"     
                               Background="Yellow"
                           FontFamily="Arial"
                           FontSize="10"
                           Visibility="Visible"
                           FontWeight="Normal"                          
                           RenderTransformOrigin="0.5, 0.5"
                           Padding="0, 15, 0, 0">
                        <TextBlock.RenderTransform>
                            <RotateTransform Angle="90"/>
                        </TextBlock.RenderTransform>
                    </TextBlock>
                </telerik:RadDiagramConnection.Content>
            </telerik:RadDiagramConnection>
            <telerik:RadDiagramConnection
                StartPoint="140,100"
                EndPoint="140, 500"
                ConnectionType="Polyline"
                SourceConnectorPosition="Auto"
                StrokeThickness="2"  
                ToolTipService.IsEnabled="True"
                SourceCapType="Arrow1"
                TargetCapType="Arrow2"
                ZIndex="4">
                <telerik:RadDiagramConnection.Content>
                    <TextBlock Text="BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"                          
                           Background="Yellow"
                               FontFamily="Arial"
                           FontSize="10"
                           Visibility="Visible"
                           FontWeight="Normal"                          
                           RenderTransformOrigin="0.5, 0.5"
                           Padding="0, 15, 0, 0">
                        <TextBlock.RenderTransform>
                            <RotateTransform Angle="90"/>
                        </TextBlock.RenderTransform>
                    </TextBlock>
                </telerik:RadDiagramConnection.Content>
            </telerik:RadDiagramConnection>
            <telerik:RadDiagramConnection
                StartPoint="180,100"
                EndPoint="180, 500"
                ConnectionType="Polyline"
                SourceConnectorPosition="Auto"
                StrokeThickness="2"  
                ToolTipService.IsEnabled="True"
                SourceCapType="Arrow1"
                TargetCapType="Arrow2"
                ZIndex="4">
                <telerik:RadDiagramConnection.Content>
                    <TextBlock Text="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"                          
                           Background="Yellow"
                               FontFamily="Arial"
                           FontSize="10"
                           Visibility="Visible"
                           FontWeight="Normal"                          
                           RenderTransformOrigin="0.5, 0.5"
                           Padding="0, 15, 0, 0">
                        <TextBlock.RenderTransform>
                            <RotateTransform Angle="90"/>
                        </TextBlock.RenderTransform>
                    </TextBlock>
                </telerik:RadDiagramConnection.Content>
            </telerik:RadDiagramConnection>
        </telerik:RadDiagram>
    </Grid>
</Window>

 

Is there a workaround for this?

 

 


Chris
Top achievements
Rank 1
 answered on 22 Aug 2016
2 answers
1.3K+ views

Hello, I am trying to restrict a floating window to be resized manually. In addition, I want a user control to fill out the space it needs and have the floating window adjust to its content. Is this possible?

My XAML:

   <telerik:RadDocking x:Name="radDocking" Height="1" Width="1">                 <telerik:RadSplitContainer InitialPosition="FloatingOnly" telerik:RadDocking.FloatingLocation="100,400"                                                                                telerik:RadDocking.FloatingSize="800,500">                     <telerik:RadPaneGroup>                         <telerik:RadPane x:Name="ScheduleControlPane" CanUserPin="False"  Header="Kontroll" Loaded="ScheduleControlPane_Loaded"                                                          IsHidden="{Binding Path=IsChecked, ElementName=ScheduleControlToggleButton, Converter={StaticResource invertedBooleanConverter}, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">                             <controlviews:ControlView HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DataContext="{Binding ControlViewModel}"></controlviews:ControlView>                         </telerik:RadPane>                     </telerik:RadPaneGroup>                 </telerik:RadSplitContainer>             </telerik:RadDocking>

Tore
Top achievements
Rank 1
 answered on 22 Aug 2016
5 answers
590 views
Hi,

I am trying to create a hierarchical grid with both parent and child have the extra same number of columns. I would like to align the columns of the child grid with the parent grid when expanded. Is there a way to customize?

Thanks
Stefan
Telerik team
 answered on 22 Aug 2016
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?