Hi, I am using Telerik RadScheduleView in my WPF projet.
How to remove / disable the cross for delete schedule (cross in the right corner schedule / appointment)
and how to adjust the height of the time schedule?
Thanks
I have an app with scores of .xaml files, and dozens of xaml fields that are in turn bound to dozens of backing properties. Right now, this is all a flat namespace. Each xaml represents a “UserControl” (one UserControl per xaml).
A problem is that every backing property (dozens)
lives in a single object. I want to control
specific backing properties using specific classes. For instance, I might want the Admin page xaml fields
to all be bound to an Admin object while the Status area fields might be bound
to a Status object.
How can
I do this? Right now, I only have the option of binding
every field in the xaml's to a single name space.
For
instance, I want to say something like:
File:
UC_AdminView.xaml: --- bind the fields
here to the AdminView backing object
<UserControl x:Class="Gui.View.UC_AdminView"
… >
<StackPanel x:Name="AppInfo">
<Label Content="{Binding AdminView.AppName}"
… />
...
- and -
File:
UC_StatusArea.xaml: --- bind the fields
here to the StatusArea backing object
<UserControl x:Class="Gui.View.UC_StatusArea"
… >
<StackPanel x:Name="StatusStuff">
<Label Content="{Binding StatusArea.Name}"
… />
…
I would like to add some transparency to the vertical trackball line style.
Thanks.
I need to bind hundreds of thousands of objects to TreeListView, potentially up to ~1-1.5 million at peak. Right now on my test set binding 350k of those objects takes 15-20 seconds. Is there any way to achieve at most a few seconds performance?
I am working with existing data structure that is not homogeneous: root rows in my tree are objects, child roots are their fields which could also be potentially objects. They also can cross-reference each other, so creating all the structure at once would lead to endless recursion, that's why child rows are only created when the root is expanded. I don't think this actually matters much in this case, as I am talking about hundreds of thousands of root rows, they will be collapsed by default and expanded only one by one.
But this means I have a slim wrapper around my initial data to create a class suitable for TreeListView binding which makes data homogeneous. There are only 5 columns/properties, and creating all of those objects and a bindable collection of them only takes ~1 second in my code, it seems that the rest is spent "pushing" data to UI.
Another important thing is I just need to display a "snapshot" with that much data, it's static, there will be no changes to the collection, only manual editing of cells values user can perform (wrapper implements INotifyPropertyChanged). I tried adding a range of items at once with suspended notifications, recreating bindable collection from a previously prepared list each time it's loaded, but they all seem to offer the same 15-20 secs performance on a 350k set. Even then scrolling, roots expanding and filtering performance is terrible.
I was looking at VirtualQueryableCollectionView, but as I understand, it doesn't work with local data, for example, from a list? Pagination is also something I was looking at, but then search/filtering only works within current page. Is there anything else I can do to make it faster?
Hello,
I am using the RadPropertyGrid EditorAttribute to define the editor for a property. Currently, I only have the ability to pass the TargetProperty to my editor through this attribute. However, I would like to be able to pass some extra properties such as filters (not necessarily through binding).
My current code looks like this:
[Telerik.Windows.Controls.Data.PropertyGrid.Editor(typeof(MultipleTagsEditorPreview), "Value", Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.None)]public ObservableCollection<TagConfiguration> Tags {get;set;} //Full block removed for brevityWhat I would like to do is something like this:
[Telerik.Windows.Controls.Data.PropertyGrid.Editor(typeof(MultipleTagsEditorPreview), "Value", Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.None, "Filter1,Filter2,Filter3")] public ObservableCollection<TagConfiguration> Tags { get;set;}For obvious reasons, I can't create a new editor for every combination of filters. I think it might be easier to inherit the EditorAttribute class and override it to contain a Filters property and have my own constructor that calls the base constructor. But I am not sure how to pass my properties to the editor once it has been instantiated by the RadPropertyGrid. Is there some behavior that I can override to do this? For example:
MultipleTagsEditorPreview editor = Activator.CreateInstance(this.EditorType);editor.Filters = this.Filters; //this is where I would pass the filters to my editorreturn editor;
Any help would be appreciated,
Thanks
Hello,
I need help for changing WPF RadGridView Row Color Based on checkbox event.
Since Radgrdiview has more than 1000 records most of the record are invisible,
so due to virtualization below code is not working , row color changes when user scroll grdiview
this.userGridView.CurrentCell.ParentRow.Background = Brushes.Red;
RadGridView of the screen is created dynamically and in the grid one of column is containing checkboxes.
Based on requirements row color of checkboxes which are checked are green and unchecked check box row color are grayed.
If one of the unchecked check box is marked as check from user its row should change to "Red" and if again unchecked it should be "Dark Gray".
I need help to code dynamically from xaml.cs
Please find below code snippet which I have tried.
this.AddHandler(CheckBox.CheckedEvent,
new RoutedEventHandler(CheckBoxChecked));
private void
CheckBoxChecked(object sender, RoutedEventArgs e)
{
if
(userGridView.CurrentCell != null)
{
?????????????
}
}
Hello Telerik,
I'm using RadGanttView and I want to change the main customtask color. Actually, it is Orange (default).
I know is it possible to Hilight all of Summarys Tasks (my target), but Hilight is Red, and I don't know how I can change his color.
Which way is better ? Change the Hilighted Task Color or apply a color for my custom task ?
The CustomMainTask (Summary Task) is created like this :
var task = new CustomGanttTask();task.Start = variableAffichee.dateDebut;task.End = variableAffichee.dateFin;task.Title = viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString(); //variable = une tâche principale variableAffichee.codeVariabletask.TitreColonne = task.Title;task.Description = task.Title; // this.viewModel.ListeVariables.Find(v => v.Id == variableAffichee.idVariable).Code.ToString();task.BackgroundColor = new SolidColorBrush(new Color { A = 0, R = 0, G = 170, B = 0 }); //System.Windows.Media.Brushes.SteelBlue; But the last line, BackgroundColor hasn't got any effect on the task. This is the same problem for Description and Title properties.
The CustomTask Class :
public class CustomGanttTask : GanttTask { public Brush BackgroundColor { get; set; } public string Affectation { get; set; } public int IdCommentaire { get; set; } public string TitreColonne { get; set; } }
I attached a screenshot to show you my result.
Can you help me ?
Thank you !
Hi Telerik,
When setting a Dock Panel's IsActive property to true, the Panel will "slide" out over top of all other active windows, even if the application is not "Active" or has been minimized. The effect is that the sliding effect will show even when the application is minimized and other applications are active (i.e. Microsoft Word, etc.) and it can become disruptive. Could you please let us know if this is the intended behavior? We'd like the behavior of when setting IsActive to true, to not show the sliding effect when the application is not active or has been minimized.
Is there a property we can set so that the Panel does not appear as "top-most" when setting the Panel's IsActive property to true?
Please advise.
Kind regards.
Hi,
I have one column in RadGridview With combobox once I click on add new row , select a item in combobox and click somewhere in grid the value is not committing .Only when I select other row or click on the row header it is committing.I want to commit my cell data once I lose focus from that cell.How to achieve it??
Regards,
Nagasree.
Hi,
I tried to add patterned brushes for Categories to edit appointment dialog. the patterned brushes is similar to "tentative" timemarker in SDK samples.
but don't how to do it.
such as:
this.categories.Add(new Category("Unconfirmed project", myHatchBrush));
thanks,
-Jacky