Hello there,
We already manage drag and drop operations fine to a RadScheduleView target in an empty slot or on an existing Appointment. However we need to manage a drop event on a given resource on the left-hand side of the Schedule-View (resources displayed vertically here). I mean in this case, we do not drop on a time slot, but on a resource header.
Just to make it clear : if a drop occurs on a given slot, we can already create an appointment for that slot. Now we would like to provide an action "Create Appointment for that resource and find our the time slot automatically based on some business logic". You see?
So far, it seems the DragDropBehavior.CanDrop() method is not involved when we drag over the resource header on the left side of the ScheduleView.
Thanks
/Sébastien Lacroix
Windows8Palette.Palette.AccentColor = Color.FromArgb(0xFF, 0xE0, 0x00, 0x00);RadWindow.Alert(new DialogParameters{ Content = new TextBlock { Text = message, MinWidth = 200, MaxWidth = 450, TextWrapping = TextWrapping.Wrap }, Header = header, Theme = new Windows8Theme(), Owner = Application.Current.MainWindow});Windows8Palette.Palette.AccentColor = AppConfiguration.DefaultBlue;return header;
Hi,
At the moment, one of the columns has no filter. In my model, that column is a collection of strings. For the grid, I append them together separating by a comma.
Person.cs
Name
Collection<strings> Tags
John Doe, new List("Apples", "Oranges")
In my grid, it appears as "John Doe" in the first column and "Apples, Oranges" in the second column.
In my database, I do have a collection of all the tags, I was wondering if I can create a custom filter such that it'll check if it contains the tags I select to filter by.
<telerik:GroupHeaderTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector"> <telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <DataTemplate> <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/> </DataTemplate> </telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <telerik:GroupHeaderTemplateSelector.VerticalTemplate> <DataTemplate> <ContentPresenter Content="" Height="16" VerticalAlignment="Top" /> </DataTemplate> </telerik:GroupHeaderTemplateSelector.VerticalTemplate></telerik:GroupHeaderTemplateSelector>to
<telerik:GroupHeaderTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector"> <telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <DataTemplate> <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/> </DataTemplate> </telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <telerik:GroupHeaderTemplateSelector.VerticalTemplate> <DataTemplate> <ContentPresenter Content="{Binding}" Height="16" VerticalAlignment="Top" /> </DataTemplate> </telerik:GroupHeaderTemplateSelector.VerticalTemplate> </telerik:GroupHeaderTemplateSelector>
On Start, the application works (and displays its data) as expected
BUT,
I came across a MAJOR PROBLEM that you can reproduce in attached sample
When you collapse both items of the TreeView - then expand one (look at header of each row) - then collapse it - then expand it again, you can see that the header text has changed in a way I cannot re-enact (take a look at attached pictures)
My questions now are:
What causes this kind of behaviour?
Is there a way I can avoid this Problem?
What do you recommend, to achieve my Requirements?
P.S.: - The sample is one of yours (Telerik), with only the slight change/add of a binding
- Yes I even tried it with the latest telerik release 2017.1.117
- As it is still not possible to add a .rar file to a post in your forum I hosted the sample project at onedrive: https://1drv.ms/u/s!AqROZw-XiIMygxUHdEcNdVy83H-y
Hi,
I´d like to use the template ERP sample source code in my project study.
where can i dowload it?
Regards,
Yale
Developer
I'm trying to remove the built-in binding of the ESC key to the DiagramCommands.CancelEdit command. I've tried both approaches outlined here:
http://www.telerik.com/forums/override-keyboard-copy-paste-controls
with no success. The first approach successfully registers a new command, but the existing default command is still executed. I need to remove that default behavior.
Both the InputBindings and CommandBindings collections are empty after the diagram has been loaded, so I'm assuming that these default command handlers are stored elsewhere?
Am I approaching this the right way, or is there an easier way to handle this requirement?

Hello,
I want to set a custom user control as an entry for some properties (full MVVM support). If the user clicks the button a custom file selector (modal) should be shown. If the user selects a file, the file path should be shown in the textfield and also should be bind to the changed property in the propertygrid.
UserControl: A grid with a textfield and a button
<UserControl x:Class="EN.Editor.UI.ImageSelector" xmlns:local="clr-namespace:EN.Editor.UI" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" Width="100" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBox Grid.Column="0" Name="txtPath" Text="{Binding ImagePath, Mode=TwoWay}" /> <Button Grid.Column="1" Command="{Binding SelectFileCommand}" CommandParameter="{Binding}" Content="..." /> </Grid></UserControl>
ViewModel of the User Control (set as DataContext in Code behind)
public class ImageSelectorViewModel : ViewModelBase { private string imagePath; public DelegateCommand SelectFileCommand { get; private set;} public ImageSelectorViewModel() { this.SelectFileCommand = new DelegateCommand(x => SelectFile()); } public string ImagePath { get { return imagePath; } set { if (this.imagePath != value) { imagePath = value; OnPropertyChanged(() => ImagePath); } } } private void SelectFile() { FileSelector fs = new FileSelector("Choose file"); if (fs.ShowDialog() == CommonFileDialogResult.Ok) { this.ImagePath = fs.FileName; } } }
I set the user control as a custom editor attribute on the autogenerated item of my property grid
[Display(AutoGenerateField = true, Name = "Video Transition")] [Telerik.Windows.Controls.Data.PropertyGrid.Editor(typeof(ImageSelector), EditorStyle.None)] public string NavigateToMovie { get { return this.navigateToMovie; } set { if (this.navigateToMovie != value) { this.navigateToMovie = value; this.OnPropertyChanged(() => NavigateToMovie); } } }
I've tried many different ways, but the click command isn't triggered. If I replace the click command on the button with a Click event handler the file selector is shown, but the selected file path isn't set on the property in the property grid. I've also tried to set the targetProperty Attribute to "ImagePath" but also without success.
For better code separation I need the full MVVM style.
I've spent lot of hours to get this done - without success.
What's wrong with my code? Thanks.
Currently I'm using the themes Visualstudio2013 for gantt view.
I only want to change background in one case and others would like to normal in the themes .
I found the sample "Tasks with different color" in the SDK. But the sample didn't work well. the fonts color , progress bar color are reset.
Any suggestion for this situation?
Thanks
-Jacky
