Hi
i have a treeview control in a wpf form
the user wants to jump and select an item when he presses any letter on the keyboard
so i did just that with the treeView_TextInput event and on capturing text i found the desired item and selected it like this:
treeView.SelectedItem = found;
treeView.BringItemIntoView(found);
treeView.BringIntoView();
My problem is that after the item is selected, the keyboard navigation will not work from the newly selected item.
as a matter of fact, the navigation will move from the previously selected item that the user selected with the mouse and not from the one the code selected
is that a bug?
thank you
Hello,
I'm trying to create a custom SelectionMiniToolbar but I am encountering several issues.
I've tried some examples found here but I still have problems.
First of all I'm unable to remove the Title Bar from the RadRichTextBoxWindow and also I'm unable to position correctly the Window to appear where the default SelectionMiniToolbar would appear.
I would really like to have an example that shows how to declare a custom SelectionMiniToolbar and how to position it correctly as the default toolbar does.
Right now all the code that I have is:
RichTextBoxFormatToolbar.xaml
01.
<
richTextBoxUI:RadRichTextBoxWindow
x:Class
=
"Views.RichTextBoxFormatToolbar"
03.
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
04.
xmlns:mc
=
"http://schemas.openxmlformats.org/markup-compatibility/2006"
05.
xmlns:d
=
"http://schemas.microsoft.com/expression/blend/2008"
06.
xmlns:richTextBoxUI
=
"clr-namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs;assembly=Telerik.Windows.Controls.RichTextBoxUI"
07.
ResizeMode
=
"NoResize"
WindowStartupLocation
=
"CenterOwner"
>
08.
09.
<
StackPanel
Orientation
=
"Horizontal"
>
10.
11.
<
Button
>Test</
Button
>
12.
13.
</
StackPanel
>
14.
15.
</
richTextBoxUI:RadRichTextBoxWindow
>
RichTextBoxFormatToolbar.xaml.cs
01.
[CustomSelectionMiniToolBar]
02.
public
partial
class
RichTextBoxFormatToolbar : RadRichTextBoxWindow, ISelectionMiniToolBar
03.
{
04.
public
RichTextBoxFormatToolbar()
05.
:
base
()
06.
{
07.
InitializeComponent();
08.
}
09.
10.
public
void
Hide()
11.
{
12.
Owner =
null
;
13.
Close();
14.
}
15.
16.
public
void
SetOpacity(
double
opacity)
17.
{
18.
Opacity = opacity;
19.
}
20.
21.
public
void
Show(Point location, RadRichTextBox radRichTextBox)
22.
{
23.
SetOwner(radRichTextBox);
24.
Show();
25.
}
26.
}
Thanks a lot for the help
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
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
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
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.
<
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
>
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