Hello,
I have some kind of selection problem.
Drag selection didn't work at items outside the viewport.
Attach an image that can help you understand the content.
When there are 5 items and they are long enough to be out of viewport, drag them from the top to the bottom to select only the items in viewport and not the items outside.
However, a full selection is made through a full selection command, such as ctrl+a.
How do I select items outside of viewport? Is there any other way but to be selected on the behind code?

I have a GridView and I am using a CellStyleSelector to set the background color of different cells depending on some conditions and it is working fine.
Now I would like to be able to select a row and change the background color of the whole row, right now it is only working on the cells that are not using the CellStyleSelector.
I have seen that I can change the color of the selected row, like this:
<Style TargetType="telerik:GridViewRow"> <Setter Property="SelectedBackground" Value="LightGray"/> <Setter Property="MouseOverBackground" Value="DarkGray" /></Style>
But how can also be changed on cells with CellStyleSelector?
Hello,
I have a RadWindow with 5 buttons, with only one or two of them visible at a given time. I would like, for example, that the Escape keyboard key has the Close action when in view mode and the Cancel Changes action when in edit mode.
To do this I use the tk:RadWindow.ResponseButton="Cancel" attribute for both buttons.
The problem is that the RadWindow logic is to look for the first button with this attribute and simulate a Click event on this button. I suggest that you make a small change to this behavior, to look for the first visible and enabled button with this attribute. By Visible, I mean with the Visibillty property set to Visible.
I know that I can process the Escape key myself, but why reinvent the wheel?
Best regards

Goo day.
How can I trigger the Add New Row on the DataGrid using a separate button. Are there any sample program available for this?
I also need to have a Button to trigger Edit and Delete of a selected row.
Thank you.

Now I have the honor of being the first to write something on the subject. :-)
I would like to display a callout in the lower right corner of my window - similar of what NotifyIcon does in the taskbar. The documentation mentions some "Absolute..." placements, but is very sparse in explaining the usage. It should just behave like the usual "Toaster" components that are often used on webapplications.
Regards
Heiko
Hello, I have a document with a predefined structure locked by read-only ranges. Users are allowed to edit only small portions of it in the middle. But I cannot find a way to prevent them editing the beginning of the document before the first read-only range or at the end of the document after the last read-only range. Is there some way to achieve this?
Best regards,
Vitalij

Hello, and thank you in advance for your help.
I am attempting to have a a column that would change the way it displays data based off an enum value in another column using MVVM. For a reason I have not been able to find, there are two issues happening.
My column that has different data types displaying has a stackpanel that contains three bound objects, a textbox, textblock, and bool. On each of these is a converter that will refer to the Enum where the logic will set one to visible and the other two to collapsed.
Currently, the binding is working, but the only way to see the value is to click on the field. Also, only one row shows the data, if I select another field the data disappears and shows the new data (and the correct data persists and shows if I click it again). Another problem is that the converter only fires when I click the field, even though it is not bound to a click style event.
Do you have any idea why data is not showing up when unless the boxes are clicked? Do you how to show the data on all rows?
Here is my code:
Xaml:
<telerik:GridViewColumn Header="Action" Width="150">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadComboBox ItemsSource="{Binding Path=ActionSource}"
SelectedValue="{Binding Path=Action}"
DisplayMemberPath="Description"
SelectedValuePath="Value"
Name="actionBox" />
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
<telerik:GridViewColumn Header="Value" Width="*">
<telerik:GridViewColumn.CellEditTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBox Text="{Binding Path=RenamedName, Mode=TwoWay}"
cal:Bind.Model="{Binding}"
IsReadOnly="False"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Renamed}" />
<TextBlock Text="{Binding Path=Ignore, Mode=OneWay}"
cal:Bind.Model="{Binding}"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Ignore}" />
<telerik:RadComboBox ItemsSource="{Binding Path=MappableComponentName, Mode=TwoWay}"
SelectedItem="{Binding Path=Remapped, Mode=TwoWay}"
DisplayMemberPath="Name"
DropDownWidth="auto"
cal:Bind.Model="{Binding}"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Map}"
Width="200" />
</StackPanel>
</DataTemplate>
</telerik:GridViewColumn.CellEditTemplate>
</telerik:GridViewColumn>
Converter:
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string actionsBoxValue = value.ToString();
string param = parameter.ToString();
switch (actionsBoxValue)
{
case "IGNORE":
if (param == "Ignore")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "RENAMED":
if (param == "Renamed")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "MAP":
if (param == "Map")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "CREATE":
{
if (param == "Create")
{
return "Visible";
}
else
{
return "Collapsed";
}
}
default:
return null;
}
}
Let me know if there is any additional information that might be helpful. Have a great day!

Hi,
I would like to implement a feature like below with NavigationView.
1. I use NavigationView to show a list of countries as items, say UK, USA, Australia, etc.
2. The first NavigationView Item is called "Overview". It basically displays all the countries on a TileView.
3. When user clicks one Tile on the "Overview", say "UK", I want to jump to the "UK" item of NavigationView to disaply detailed information on UK
How can do that on a MVVM way? I guess I maybe able to use SelectedItem of RadTransitionControl to achieve this, but I am not sure how exactly I can do this.
Appreciate any help.
Thanks.
Hello.
I am now customizing the demo source for "DiagramDesignToolBox", a diagram program for WPF.
Here I am trying to customize the shape controls in the ToolBox to suit my needs and drag and drop them to display on the interface.
In my ToolBox of the program, I want to display only the shape controls as shown in the picture.
So, I added custom shape controls to the toolbox by referring to https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/raddiagrams-drag-drop.
But here, all others can perform draw drop, but only one shape control (end shape) cannot accurately perform draw drop.
This is my code follow as:
- XAML:
<ListBox x:Name="xListBox" Grid.RowSpan="2" Grid.Column="2">
<ListBox.Resources>
<Style x:Key="DraggableContainerShape" TargetType="telerik:RadDiagramContainerShape">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>
<Style x:Key="DraggableShapeStyle" TargetType="telerik:RadDiagramShape">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>
</ListBox.Resources>
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Start"
Geometry="{telerik:FlowChartShape ShapeType=StartShape}"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Task"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Gateway"
Geometry="{telerik:FlowChartShape ShapeType=DecisionShape}"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape
Width="100"
Height="100"
Geometry="{telerik:CommonShape ShapeType=EllipseShape}"
Style="{StaticResource DraggableShapeStyle}">
<telerik:RadDiagramShape.ContentTemplate>
<DataTemplate>
<Ellipse Width="50"
Height="50"
Fill="#FF333333"
/>
</DataTemplate>
</telerik:RadDiagramShape.ContentTemplate>
</telerik:RadDiagramShape>
</ListBox>
- C#:
public Example()
{
InitializeComponent();
DragDropManager.AddDragInitializeHandler(xListBox, OnDragInitialize);
service = diagram.ServiceLocator.GetService<ISerializationService>();
}
private void OnDragInitialize(object sender, DragInitializeEventArgs args)
{
args.AllowedEffects = DragDropEffects.All;
SerializationInfo serializaedInfo;
if (args.OriginalSource is RadDiagramShape)
{
RadDiagramShape draggedShape = args.OriginalSource as RadDiagramShape;
List<RadDiagramShape> shapes = new List<RadDiagramShape>();
shapes.Add(draggedShape);
serializaedInfo = SerializationService.Default.SerializeItems(shapes);
}
else
{
RadDiagramContainerShape draggedShape = args.OriginalSource as RadDiagramContainerShape;
List<RadDiagramContainerShape> shapes = new List<RadDiagramContainerShape>();
shapes.Add(draggedShape);
serializaedInfo = SerializationService.Default.SerializeItems(shapes);
}
args.Data = serializaedInfo;
}
Please help me.