Telerik Forums
UI for WPF Forum
3 answers
487 views

Hi,

 

I have a RadDateTimePicker which is databound to a class object when my form loads I want to display and empty value in order that the watermark content is displayed. I also want to display a date range when the date time picker is selected and in order to do this I am setting the display range values when the main window is loaded. My problem is that I am seeing the default null value  01/01/0001 00:00:00!  How do I achieve this behavior 

 

<telerik:RadDateTimePicker x:Name="DeldateTime" Width="160" TimeInterval="0:30:0" DateTimeWatermarkContent="Delivery Date\Time" SelectedValue="{Binding dtDeliverDate, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" Height="26" VerticalAlignment="Bottom" ToolTip="Delivery date - Select both Day and Time values!" TabIndex="4" IsTabStop="True"  />

Date range set on loaded event

Me.DeldateTime.SelectableDateStart = DateTime.Now.AddMonths(-3)
Me.DeldateTime.SelectableDateEnd = DateTime.Now.AddMonths(3)
Me.DeldateTime.DisplayDate = DateTime.Now

Property

Public Property dtDeliverDate() As DateTime
        Get
            Return Me.m_dtDeliverDate
        End Get
        Set(value As DateTime)
            Me.m_dtDeliverDate = value
            If IsDate(m_dtDeliverDate) Then
                Me.m_szDeliveryTime = Format(m_dtDeliverDate, "HH:mm")
            End If
            Me.SendPropertyChanged("dtDeliverDate")
        End Set
    End Property​

 

Nasko
Telerik team
 answered on 09 Nov 2015
4 answers
280 views

Hello Telerik

 

A double click on any node, edge, or text content of my Diagram display the underlying object type (c.f. attached image)

I succeeded to prevent this for the nodes, adding the following property to the Diagram in XAML:

ShapeDoubleClicked="diagram_ShapeDoubleClicked"

And in code-behind:

private void diagram_ShapeDoubleClicked(object sender, Telerik.Windows.Controls.Diagrams.ShapeRoutedEventArgs e)
      {
         e.Handled = true;
      }

However I would like to disable this behavior for anything on the Diagram.

I did try the same idea with the MouseDoubleClick event, but it didn't change anything: edges and texts still displays object types...

Is there a solution to this?

Thanks for your help,

Sylvain

Sylvain
Top achievements
Rank 1
 answered on 06 Nov 2015
7 answers
375 views
How would I go about enabling the tool tip for a slot in the RadScheduleView. I already have a tool tip defined for the appointment, but I need to provide the user with additional information about each slot when they are trying to decide where to make their appointment.

Thank you in advance,

Stephen
Claire
Top achievements
Rank 1
 answered on 06 Nov 2015
1 answer
398 views

Hi,

I have a rad grid view in my application and I like the power of the column filtering.

My xaml looks like this:

<telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding Entries}" IsReadOnly="True" CanUserReorderColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" RowDetailsVisibilityMode="Visible" SelectionMode="Extended">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="True"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Connections}" Header="Connections" IsReadOnly="True"/>
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

The gridview binds its itemssource to an observable collection. 

When someone is filtering on the connections column and one of the items connection property changes, the filtered content is not updated. The updated value does appear in the column however (thanks to INotifyPropertyChanged). I noticed that when the collection changes the filter does work. Is there a way to trigger a filter update as well when a property like connections is updated?

Kind regards

Dilyan Traykov
Telerik team
 answered on 06 Nov 2015
2 answers
171 views

Hi,

I must use a SecureString as a property type. Is it possible to edit the value in the PropertyGrid? How can I achieve this?

I already tried to get the value in the EditEnded event and tried to convert it on my own, but I do not get the value, it is null.

Thanks for your replies.

Richard
Top achievements
Rank 1
 answered on 06 Nov 2015
1 answer
63 views
In real case: I want to record a windows ​which have generated dynamically title. When using Telerik, cause the window title is different so it always get failure. I tried to change the caption with using '~' but it did not effect. So any workaround situation ? 
Konstantin Petkov
Telerik team
 answered on 06 Nov 2015
10 answers
354 views
I was wondering how to style dynamically-created clustered/stacked bar charts (created using ChartSeriesProvider), so that there is a border around each bar (i.e., be able to set BorderBrush and BorderThickness properties).  Here is a code snipped of the *.xaml without borders.

<telerik:RadCartesianChart.SeriesProvider>
               <telerik:ChartSeriesProvider Source="{Binding Data}">
                   <telerik:ChartSeriesProvider.SeriesDescriptors>
                       <telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Sales" CategoryPath="Article">
                           <telerik:CategoricalSeriesDescriptor.Style>
                               <Style TargetType="telerik:BarSeries">
                                   <Setter Property="CombineMode" Value="Stack" />
                                   <Setter Property="local:ChartUtilities.SeriesStackGroupKey" Value="{Binding StackGroup}" />
                                   <Setter Property="LegendSettings">
                                       <Setter.Value>
                                           <telerik:SeriesLegendSettings Title="{Binding NameInLegend}"/>
                                       </Setter.Value>
                                   </Setter>
                               </Style>
                           </telerik:CategoricalSeriesDescriptor.Style>
                       </telerik:CategoricalSeriesDescriptor>
                   </telerik:ChartSeriesProvider.SeriesDescriptors>
               </telerik:ChartSeriesProvider>


Thanks!
Petar Marchev
Telerik team
 answered on 06 Nov 2015
1 answer
159 views

Hi,

 I insert a table to a RichTextBox and formatting it with both built-in UI and programmatically as http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/document-elements/features-tables.html#formatting-a-table-via-the-built-in-ui . However when I'm adjusting the height of table row, by programmatically it can be shorter than the default size when font size is 8 and by cursor the min height is the default height when the table is created. Is there anyway to make the mouse drag the row height smaller then that?

Thanks,

Yiping

Todor
Telerik team
 answered on 06 Nov 2015
3 answers
159 views

I'm using a GridViewImageColumn to display images that are smaller than the cell.

How do I change Horizontal Orientation or Vertical Orientation in XAML to let the image appear e.g. on top or on bottom of the cell?

Stefan Nenchev
Telerik team
 answered on 05 Nov 2015
1 answer
126 views

I have a problem with the Telerik Grouping. I can reproduce the error like this (Q3 2015):

  1. Load a grid which contains about 8 which allows multi selection (amount does not matter)
  2. Select one item (let's assume the first)
  3. Group over a column, so that 4 collapsed groups appear
  4. If i try to open a group, this will open and also the group, which contains the selected item​

This behaviour is not as the user expect, because only the selected group should expand, not the one containing the selected item.

Maybe some one has a solution,

 Thank you!

Dilyan Traykov
Telerik team
 answered on 05 Nov 2015
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?