Hello there,
In the RadGridView, when the grid is grouped by a column, each group header row has an arrow icon on the left hand side pointing up or down to indicate whether the group is expanded or not. Is it possible to change that icon to a custom icon?
Thanks
Russell
I attached a small project illustrating a problem. I have combo boxes and text boxes on the control. When I do not apply any properties on my components and start the application my tab order is perfectly fine. I hit tab and it goes to first combo cox then to cext etc. Exactly the way tab index is set up. But as soon as I add property IsEditable="true" to my combo box it messes it up. When I start application it omits combo box and it goes straight to text box, then it omits another combo box and it goes again straight to text box. Please advice how to fix this tab problem issue. I want to have this editable and have tab index going top down and left right.
Second question. I applied style with ThemeType=telerikControls:Windows8Theme how can I have yellow rectangle around the focused combo box this theme gives gray one which is very hard to recognize.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestTelerikTabStop"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="TestTelerikTabStop.MainWindow"
xmlns:telerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<!-- Please comment in and out IsEditable property to see effect on tabindex
Please help yelow rectangle on focused combobox in Windows8Theme theme
-->
<Style x:Key="RadComboBoxStyle" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerikControls:Windows8Theme, ElementType=telerik:RadComboBox}}" TargetType="telerik:RadComboBox">
<Setter Property="Height" Value="23" />
<Setter Property="FontFamily" Value="Calibri"/>
<Setter Property="ClearSelectionButtonContent" Value="Clear"/>
<Setter Property="ClearSelectionButtonVisibility" Value="Visible"/>
<Setter Property="IsEditable" Value="True"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="Focusable" Value="True"/>
</Style>
</Window.Resources>
<DockPanel DockPanel.Dock="Top">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" MinWidth="265"/>
<ColumnDefinition Width="Auto" MinWidth="517"/>
<ColumnDefinition Width="Auto" MinWidth="517"/>
</Grid.ColumnDefinitions>
<telerik:RadComboBox x:Name="radComboBox" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" TabIndex="0" IsTabStop="True" Style="{StaticResource RadComboBoxStyle}" Width="131">
<telerik:RadComboBoxItem Content="Adam"/>
<telerik:RadComboBoxItem Content="Alex"/>
<telerik:RadComboBoxItem Content="Andrew"/>
</telerik:RadComboBox>
<telerik:RadComboBox x:Name="radComboBox1" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" TabIndex="2" IsTabStop="True" Style="{StaticResource RadComboBoxStyle}" Margin="0,1" Width="131">
</telerik:RadComboBox>
<telerik:RadComboBox x:Name="radComboBox2" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" TabIndex="3" IsTabStop="True" Style="{StaticResource RadComboBoxStyle}" Width="143">
</telerik:RadComboBox>
<telerik:RadComboBox x:Name="radComboBox3" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" TabIndex="5" IsTabStop="True" Style="{StaticResource RadComboBoxStyle}" Margin="0,1" Width="143">
</telerik:RadComboBox>
<TextBox Grid.Row="1" Grid.Column="0" Margin="0,0,134,0" TabIndex="1"/>
<TextBox Grid.Row="1" Grid.Column="1" Margin="0,0,374,0" TabIndex="4"/>
</Grid>
</DockPanel>
</Window>
Hi,
When i select "automatic conversion" for minor tick lenght and major tick lenght, and if i put a large zoom, i have this problem (Attach file).
This is normal?
How can i just put 6:00/6:15/6:30/6:45 instead of 6:00/6:1515/6:3030/6:4545?
Thanks
Hi
I would like to ask if there is an easy solution to create a grid on the x-axis of a datecontinuous axis.
e.g. every x second/minute/hour depending on the total timespan shown in the chart there will be a tick/grid line. independent if there exist a value for that specific datetime
thanks for your help!
Hi
I need to drag and drop from / to GridViewColumnGroup of RadGridView.
I haven't found any example or guide how to do it.
Setting up DragDropManager events (like DragInitializeHandler, DropHandler ... ) to RadGridView doesn't work on GridViewColumnGroup.
Drag and drop from / to GridViewCells and GridViewHeaderCells works, but GridViewColumnGroup doesn't.
Does anyone know how to drag and drop from / to GridViewColumnGroup?
Hey,
I am using a custom AppointmentSelectionBehaviour to prevent the user from selecting Appointments with more than 2 different resource types. This works correctly. The problem is that I wish to bind to the selected appointments. There is a property on the RadScheduleView called "SelectedAppointments" but I am not able to bind to it. Am I doing something wrong? I want to be able to modify the selected appointments in my view model.
Thanks
Hi, I’m having trouble implementing drag & drop of custom appointments into RadScheduleView and would be thankful if anyone could point me in the right direction.
I have a ListBox (standard WPF} which contains some items (files to be played). User can drag these items and place them onto RadSchedule (play time). I figured out how to enable dragging and transform the data into Appointment. I can see the created item when it’s being dragged over schedule view, but when I release the mouse /Drop/ nothing happens.
Item is not added to bound Appointments collection, nor is any *Drop event being raised. I should note there is a “Forbidden” mouse cursor icon when dragging.
When I drag
& resize appointments, that are already present in collection, everything
works as expected.
I was even
able to reproduce it with this simplified example:
public
class
MainWindowViewModel
{
public
MainWindowViewModel()
{
appointments.Add(
new
Appointment()
{
Start = DateTime.Now,
End = DateTime.Now.AddHours(1),
Subject =
"Test"
});
}
//ItemsSource for listbox
private
ObservableCollection<
string
> strings =
new
ObservableCollection<
string
>() {
"First"
,
"Second"
,
"Third"
};
public
ObservableCollection<
string
> Strings
{
get
{
return
strings; }
set
{ strings = value; }
}
//ItemsSource for RadSceduleView
private
ObservableCollection<Appointment> appointments =
new
ObservableCollection<Appointment>();
public
ObservableCollection<Appointment> Appointments
{
get
{
return
appointments; }
set
{ appointments = value; }
}
}
Behavior to transform dragged string into appointment collection:
public
class
DropBehavior : ScheduleViewDragDropBehavior
{
public
override
IEnumerable<IOccurrence> ConvertDraggedData(
object
data)
{
if
(Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetDataPresent(data,
typeof
(ListBoxItem),
false
))
{
var lbItem = Telerik.Windows.DragDrop.Behaviors.DataObjectHelper.GetData(data,
typeof
(ListBoxItem),
false
)
as
ListBoxItem;
return
new
Appointment[] {
new
Appointment() { Subject = (
string
)lbItem.DataContext }
};
};
return
base
.ConvertDraggedData(data);
}
}
And final XAML:
<
Window
x:Class
=
"ScheduleViewTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:ScheduleViewTest"
Title
=
"MainWindow"
Width
=
"640"
Height
=
"480"
>
<
Window.DataContext
>
<
local:MainWindowViewModel
/>
</
Window.DataContext
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
/>
<
ColumnDefinition
Width
=
"15"
/>
<
ColumnDefinition
Width
=
"3*"
/>
</
Grid.ColumnDefinitions
>
<
ListBox
ItemsSource
=
"{Binding Strings}"
>
<
ListBox.ItemContainerStyle
>
<
Style
TargetType
=
"ListBoxItem"
>
<
Setter
Property
=
"telerik:DragDropManager.AllowCapturedDrag"
Value
=
"True"
/>
</
Style
>
</
ListBox.ItemContainerStyle
>
</
ListBox
>
<
telerik:RadScheduleView
x:Name
=
"scheduler"
Grid.Column
=
"2"
AllowDrop
=
"True"
AppointmentsSource
=
"{Binding Appointments}"
>
<
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:DayViewDefinition
/>
<
telerik:MonthViewDefinition
/>
</
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:RadScheduleView.DragDropBehavior
>
<
local:DropBehavior
/>
</
telerik:RadScheduleView.DragDropBehavior
>
</
telerik:RadScheduleView
>
</
Grid
>
</
Window
>
As for version I'm using "2013.2.611.45" and preferably would like to avoid updating (legacy app)
Thanks for help and suggestions in advance.
Matej