Telerik Forums
UI for WPF Forum
1 answer
641 views
I'm trying to use the radtimeline to display the machine state in a period of time.
For example red item if the machine was stopped and green item if the machine was running.
I manage to have all items with the right color (green or red) and on the same row of the RadTimeLine control.
But I have some white gap between successive periods of time. (see screenshot)

My Xaml is :
<Grid.Resources>
           <DataTemplate x:Key="ProductionItemTemplate">
                    <Rectangle Height="50" HorizontalAlignment="Stretch" Fill="Red" Margin="0">
                    </Rectangle>
            </DataTemplate>
 
            <DataTemplate x:Key="NonProductionItemTemplate" >
                    <Rectangle Height="50" HorizontalAlignment="Stretch" Fill="Green" Margin="0">
                   </Rectangle>
            </DataTemplate>
            <local:CustomItemTemplateSelector x:Key="CustomItemTemplateSelector" NonProductionItemTemplate="{StaticResource NonProductionItemTemplate}" ProductionItemTemplate="{StaticResource ProductionItemTemplate}"/>
        </Grid.Resources>
         
         
        <telerik:RadTimeline x:Name="RadTimeline1"   PeriodStart="2016/01/01" PeriodEnd="2016/01/02" StartPath="StartDate" DurationPath="Duration" ItemRowIndexGenerator="{StaticResource NewLineRowIndexGenerator}"  ItemsSource="{Binding Data}" ItemTemplateSelector="{StaticResource CustomItemTemplateSelector}" >
 
 
            <telerik:RadTimeline.Intervals>
                <telerik:HourInterval />
            </telerik:RadTimeline.Intervals>
</telerik:RadTimeline>

I would like to have a continuous timeline without these white space.
Is there a workaround for this issue?
Martin Ivanov
Telerik team
 answered on 25 Oct 2016
6 answers
202 views

I'm implementing a quite complex filter definition. I have to add a custom filter with 2 controls in it

Starting from this sample http://demos.telerik.com/silverlight/#DataFilter/CustomEditors

The class I'm using to save the values is this:

    public class DeltaTime
    {
        public TimeSpan Start { get; set; }
        public TimeSpan End { get; set; }
    }

And the xaml template is:

                    <DataTemplate x:Key="DeltaTimeTemplate">
                        <StackPanel Orientation="Horizontal" DataContext="{Binding Value, Mode=OneWay}">
                            <telerik:RadTimePicker SelectedValue="{Binding Start, Mode=TwoWay, FallbackValue={x:Null}}" DateTimeWatermarkContent="Start" />
                            <telerik:RadTimePicker SelectedValue="{Binding End, Mode=TwoWay, FallbackValue={x:Null}}" DateTimeWatermarkContent="End"  />
                        </StackPanel>
                    </DataTemplate>

It seems working, or at least the controls is displayed correctly. But, when I'm passing all filters, this filter value is <Unset>

Stefan
Telerik team
 answered on 25 Oct 2016
0 answers
147 views

We have a Telerik WPF application that uses StyleManager at the moment, after changing to the noXml Binaries, we got the user controls working but the modules do not show anymore and no error is given, this particular application is too complex to create a sample project for, I wanted to know if maybe someone has encountered something like this or maybe the is a way to overcome it.

 

I have used fussion log, I have double checked all the implementations and the only thing i did was define the Theme in the App.Xaml using the dierct copy of the xaml files or using the Theme dll. The theme in question is the WPF 4.5 Telerik.Themes.Green.DLL. 

Mahlatse
Top achievements
Rank 1
 asked on 25 Oct 2016
4 answers
289 views

I am failry new to telerik and WPF and MVVM, so please forgive my lack on knowledge, I have a Shell that that uses directory searching to find modules that I can load into its regions, Each module has a few views that are have top level elementa radSplitContainer, A few of those views can be opened at one time and each has custom logic when the RapPane is closed

 

What I did was used event aggregation to publish the closed event, but I cant find a way to know what view called the close event without creating a reference to my view inside my viewmodell. I have tried 

 

 private void DockMain_PreviewClose(object sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)<br>        {<br>            if (e.Panes != null && e.Panes.Count() > 0 && e.Panes.ToList()[0].GetType() == typeof(RadPane))<br>            {<br>                if (_mainviewmodel != null)<br>                {<br>                    var test = e.Panes.ToList()[0].ParentOfType<RadSplitContainer>();<br>                    var bol = test.GetType().IsAssignableFrom(typeof(IModuleView));<br>                    //var test = e.Panes.ToList()[0].ParentOfType<RadSplitContainer>();<br>                    _mainviewmodel.OnPreviewClose(e.Panes.ToList()[0].ParentOfType<RadSplitContainer>() as IModuleView);//publish teh subscriber event<br>                }<br>            }<br>        }

 

to try and create an interface that both the view and viewModel would implement, but i can never find an object that supports the interface I just created or anyway I can tap into the close event  from the view instead of from the RapDock control.

Mahlatse
Top achievements
Rank 1
 answered on 25 Oct 2016
3 answers
152 views

Is there any example which demonstrates how to create and work with a custom third-party spell checker using Open Office?

I tried https://github.com/telerik/xaml-sdk/tree/8a76eafd48278d8278b4b61d1c2aeb3c0ac8750d/RichTextBox/NHunspellSpellChecking, but it is not working properly (all words are marked as incorrect). I used en_US.aff and en_US.dic files from en_us.oxt (http://extensions.openoffice.org/en/project/us-english-spell-checking-dictionary).

Thanks

Beata

Boby
Telerik team
 answered on 25 Oct 2016
2 answers
229 views
Is it possible to use your components are free for individual developers like syncfusion? For example WPF. Not everyone can buy these components to create a small application.
Seth
Telerik team
 answered on 24 Oct 2016
0 answers
126 views

Hello Telerik,

 

I want to display a ToolTip when mouse passing on specific cell (pink background cell), but I don't find the corresponding event.

 

I tried to use the CurrentCell but it's every time null. After, I tried to use the casted row to use its Properties Item CurrentCell to get attribut ('IsDiscontinuite') but the result it's every time true.

My work :

//Every Time null
if (((RadGridView)sender).CurrentCell.Background == new SolidColorBrush(Color.FromArgb(255, 255, 0, 255)))
 
//Every Time "True"
if (((MesureDynamicRow)((RadGridView)sender).CurrentCellInfo.Item).Properties.First().CoupureHisto)

 

So, I want to know what is the find event for this problem ?

 

Thank you very much !

 

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 24 Oct 2016
2 answers
141 views

I would like to handle a double click event on a connector. For shapes there is a OnShapeDoubleClicked, but I can't seem to find a way of handling the double click of an connector.

I tried handling the double-click event of the diagram itself, but can't seem to find the connector at the click location.

Is there an easy way to achieve this?

Roy
Top achievements
Rank 1
 answered on 24 Oct 2016
7 answers
352 views

This is my first time using the masked input and I could use some help. I don't want the placeholder, so I'm using Mask="". In this example, I want to restrict to positive integers only (or blank if it's an optional input). I can restrict the numeric version to digits only, but how do I prevent the negative sign?

I would actually prefer to use the normal masked input and simply limit it to the characters 0-9. However when I use Mask="", I have not been able to restrict the inputs using the FormatString. It's still allowing me to type anything.

Dinko | Tech Support Engineer
Telerik team
 answered on 24 Oct 2016
7 answers
242 views

I have the following exception popping up from time to time when I scroll fast or use sliders in RadGridView.

 

Exception: Exception thrown: 'System.Xaml.XamlParseException' in #####.exe

("Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.GridView.GridViewRow', AncestorLevel='1''. BindingExpression:Path=IsPinned; DataItem=null; target element is 'GridViewPinButton' (Name=''); target property is 'IsPinned' (type 'Boolean')"). Exception thrown: 'System.Xaml.XamlParseException' in #####.exe ("Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.GridView.GridViewRow', AncestorLevel='1''. BindingExpression:Path=IsPinned; DataItem=null; target element is 'GridViewPinButton' (Name=''); target property is 'IsPinned' (type 'Boolean')") 80.33s  [15528] <No Name>

 

I simply host RadGridView in UserControl:

 

    <telerik:RadGridView ItemsSource="{Binding #######}"
                         IsReadOnly="True"
                         RowIndicatorVisibility="Collapsed"
                         AutoGenerateColumns="False"
                         ShowGroupPanel="False"
                         GridLinesVisibility="Both"
                         ClipboardCopyMode="All"
                         SelectionMode="Extended"
                         FrozenColumnCount="1"
                         CanUserFreezeColumns="False"
                         Background="Transparent"
    >
        <telerik:RadGridView.Columns>

....


Dilyan Traykov
Telerik team
 answered on 24 Oct 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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?