Telerik Forums
UI for WPF Forum
0 answers
60 views

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?

Kieron
Top achievements
Rank 1
 asked on 20 Jul 2017
1 answer
462 views

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>

                                    

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Jul 2017
2 answers
107 views

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?

Dilyan Traykov
Telerik team
 answered on 19 Jul 2017
3 answers
130 views

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.

Rosca
Top achievements
Rank 1
 answered on 19 Jul 2017
1 answer
116 views

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?

Martin Ivanov
Telerik team
 answered on 19 Jul 2017
4 answers
157 views
I have several dictionaries stored outside of the XAP file and I load the approriate one manually.   I did this in order to minimize the size of the xap.

To load the dictionary, I use the 'WebClient()' class and do the following in OpenReadCompletedEventHandler
System.IO.Stream st = e.Result;
dictionary = new RadDictionary();
dictionary.Load(st);
((DocumentSpellChecker)this.txtDesc.SpellChecker).AddDictionary(dictionary, CultureInfo.CurrentCulture);

The dictionary is loading properly, however adding to the dictionary only works for the session, which makes sense.  So my question is, how do I sync the .tdf file when the user selects "Add to dictionary".  I am able to capture the "DataChanged" event, so I guess in that event handler I just need to pass the dictionary ( or even better just the word) to my webservice and overwrite the existing .tdf.  How do I do that?

Also I realize this means all users will be editing the same .tdf, and that is not ideal, but right now it doesn't work at all and I just want to get it working.  I am still on the latest SL4 build.
Tanya
Telerik team
 answered on 19 Jul 2017
7 answers
126 views

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.

Yoan
Telerik team
 answered on 19 Jul 2017
6 answers
205 views

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

 

Dilyan Traykov
Telerik team
 answered on 18 Jul 2017
1 answer
139 views

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.

Ivan Ivanov
Telerik team
 answered on 18 Jul 2017
1 answer
176 views

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

Dilyan Traykov
Telerik team
 answered on 18 Jul 2017
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?