I have a ViewModel that has a list of "ScheduleItems" (custom appointments) which is set as the AppointmentSource on my ScheduleView.
When I update a single (custom) property on a ScheduleItem - I need to effectively loop through all the appointments on the same resource and decide whether I need to update a property on them too based on another factor - but I do not have access to the ScheduleItems/AppointmentsSource list from my single ScheduleItem?
Hi I am trying to add context menu for treelistview which has selectionmode as "Extended" value.
1)I want to show context menu when user selects multi rows and performs right click operation
2) Also I want to know how to get selected Items to my View model.
based on selected items only (I mean selected rows) I have to populate Items in my context menu which is again need to be binded in one of ViewModel property. Items source for contextmenu should be bind to collection of items from my View mode.
Here is my code which is same as the code present in sample application
======================
<telerik:RadTreeListView x:Name="RadTreeListView1"
AutoExpandItems="{Binding IsChecked, ElementName=AutoExpandItemsCheckBox, Mode=TwoWay}"
IsReadOnly="True"
ItemsSource="{Binding Folders}"
Width="600"
MinHeight="300"
Height="550"
CanUserFreezeColumns="False"
RowIndicatorVisibility="Collapsed"
ColumnWidth="*">
<telerik:RadTreeListView.ChildTableDefinitions>
<telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" />
</telerik:RadTreeListView.ChildTableDefinitions>
</telerik:RadTreeListView>
================================
Example menu items binding is as below .
<telerik:RadContextMenu DataContext="{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource Self}}" ItemsSource="{Binding MenuItems, Mode=Default}" ItemContainerStyle="{StaticResource ContextMenuItemStyle}" Visibility="{Binding Path=MenuItems.Count,Converter={StaticResource NumberToVisibilityConverter}}" />
<Style x:Key="ContextMenuItemStyle" TargetType="{x:Type telerik:RadMenuItem}" BasedOn="{StaticResource {x:Type telerik:RadMenuItem}}"> <Setter Property="Command" Value="{Binding MenuCommand}"/> <Setter Property="CommandParameter" Value="{Binding DataContext, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type telerik:RadContextMenu}}}"/> <Setter Property="IsSeparator" Value="{Binding IsSeparator}"/> <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/> <Setter Property="Header" Value="{Binding Content}"/> <Setter Property="ItemsSource" Value="{Binding Children}"/> <Setter Property="FontWeight" Value="Normal"/> <Setter Property="IsChecked" Value="{Binding IsChecked}"/> <Setter Property="IconTemplate"> <Setter.Value> <DataTemplate> <uxt:UxtXamlImage Width="16" Height="16" Template="{Binding DataContext.Icon, Converter={uxt:StringToResourceConverter}, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadMenuItem}}}"/> </DataTemplate>
</Setter.Value>
</Setter>
</Style>
In a project I've used a telerik grid view with aggregade function (see the attached image).
I want to add in the row group other information like the delivery date. How it's possbile to add these information without use grouping function?
Hello all,
I am using a RadStacked100DataBar in order to display a percentage like fill bar (like in the attached image).
The value/s can change on refresh data, I would need an animation of the colored bar width changing. Is there a way to achieve this?
Thank you.
Hello,
In Raddiagram, when i set IsRotationEnabled property to true, i am able to use in-build rotate arrow for rotation.
How can i customize the size of this rotate arrow?
System.IO.Stream st = e.Result;
dictionary =
new
RadDictionary();
dictionary.Load(st);
((DocumentSpellChecker)
this
.txtDesc.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);
Quite awhile back I posted a change request on the feedback portal to get support for the RadWizard in the Document Outline window of Visual Studio. Unfortunately, I've been informed that even after nearly two years it's still not on their plans due to low demand.
The Document Outline is an amazing feature with Visual Studio that allows you to quickly see the hierarchy of your WPF XAML. This is invaluable when you have complex layout -- which you probably have unless you're dealing with trivial solutions. Most controls enumerate all their children. The RadWizard swallows it up and displays nothing (image added to illustrate the difference).
I'd appreciate everyone reading this to take a look at the Document Outline feature if you're not already familiar with it, and once you do I hope you'll see why the RadWizard needs the support and then please go and upvote my feedback.
Hello
is it possible, to bind the Edit-Button to a Command in ViewModel?
If it's not possible: could i place a Custom-Button (with VM-Command-Binding) inside the RadCollectionNavigator?
Kind regards
Birgit
Hello,
There is an issue when RadGridView does not re-evaluate row item if filter property of viewmodel (datacontext of the row) was changed.
For example, RadGridView contains the FilterDescriptor to display all customers where address property is "Address1". It works fine i.e. RadGridView shows only customers where address property equals to "Address1. But then I'll change the address property of viewmodel item from "Address1" to "Address2". And I can see this row on GridView. Expected behavior is RadGridView should filter out customer where address property equals to "Address2".
Is here any workaround?
Thank you,
Yuriy.
Hi,
I tried to use "search as you type" on my GridViewComboBoxColumn. But it doesn't work.
When I type something on the search bar doesn't found anything on grid.
<
UserControl.Resources
>
<
CollectionViewSource
x:Key
=
"DirectionsCollectionViewSource"
x:Name
=
"DirectionsCollectionViewSource"
/>
</
UserControl.Resources
>
<
telerik:GridViewComboBoxColumn
UniqueName
=
"Direction"
Header
=
"Direction"
DataMemberBinding
=
"{Binding Path=Direction, UpdateSourceTrigger=PropertyChanged}"
SelectedValueMemberPath
=
"Value"
ItemsSource
=
"{Binding Source={StaticResource DirectionsCollectionViewSource}}"
DisplayMemberPath
=
"Label"
>
</
telerik:GridViewComboBoxColumn
>
Collection View Source is populated with the following values:
List<SSCStringValueObject> directions =
new
List<SSCStringValueObject>();
directions.Add(
new
SSCStringValueObject(
"O"
, "Out");
directions.Add(
new
SSCStringValueObject(
"I"
, "In");
return
directions;
Telerik version used: 2017.2.614.45
What am I missing? Can you provide me an example, please?
Thank you