Lets say we have a program that can search files for specific content and then display searchresults in a RadGridView.
The program uses multiple threads to search through those files.
Our problem here is, that when those threads get many search results the Dispatcher will be flooded with Add-Operations.
This causes massive ui-freezes.
My first approach to solve this issue was to "buffer" those searchresults and only invoke Add-Operations every second.
This is better but still freezing the ui.
So my question here is, is there a recommended way to setup a DataSource for RadGridView for this usecase?
Do I need to do stuff with CollectionViewSource?
Good day,
Following the instruction in your "Getting Started" section, after just updating the UI for WPF modules, I created a simple MenuItem under my Menu to test it out.
The code is rather simple:
private void Loadingtest(object sender, RoutedEventArgs e)
{
var dataContext = (SplashScreenDataContext)RadSplashScreenManager.SplashScreenDataContext;
dataContext.ImagePath = "";
dataContext.Content = "Loading";
dataContext.Footer = "Please wait, this might take several minutes";
dataContext.MouseCursor = Cursors.Wait;
dataContext.IsProgressBarVisible = true;
dataContext.IsIndeterminate = true;
if (!RadSplashScreenManager.IsSplashScreenActive) {
RadSplashScreenManager.Show();
Thread.Sleep(7000);
RadSplashScreenManager.Close();
}
Problem is whenever I click that menuitem it performs the 7 second wait and then flashes the loading screen for a moment before closing it again.
Tried it as well in WindowLoaded event as well as a Rendered event, both do the same things.
Tried to do Dispatcher.Invoke, Dispatcher.BeginInvoke as well as a new Tread with a run. All goes the same way. Both in Debug and Release modes. Also, trying to do something like changing the title in between throws an exception about the running thread not being able to access it, as if the whole execution were moved to a new thread after the SplashScreenManager.Show();
Example of the one that causes an error:
private void Loadingtest(object sender, RoutedEventArgs e)
{
var dataContext = (SplashScreenDataContext)RadSplashScreenManager.SplashScreenDataContext;
dataContext.ImagePath = "";
dataContext.Content = "Loading";
dataContext.Footer = "Please wait, this might take several minutes";
dataContext.MouseCursor = Cursors.Wait;
dataContext.IsProgressBarVisible = true;
dataContext.IsIndeterminate = true;
if (!RadSplashScreenManager.IsSplashScreenActive) {
RadSplashScreenManager.Show();
this.Title = "Title Test";
Thread.Sleep(7000);
RadSplashScreenManager.Close();
}
Thanks a bunch!
I'm using this XAML in a small demo application.
The RadWizard is not showing up at all with Telerik version 2015.2.728.40, but works fine with version 2015.1.420.45.
I got the xaml from http://docs.telerik.com/devtools/wpf/controls/radwizard/getting-started
I'm trying to figure out *why* this isn't working.
<Window x:Class="Test.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
xmlns:csc="clr-namespace:ClientSignatureCapture.Views;assembly=ClientSignatureCapture"
Title="Shell" Height="700" Width="700">
<Grid>
<telerik:RadWizard x:Name="radWizard" >
<telerik:RadWizard.WizardPages>
<telerik:WizardPage Content="My Wizard Page Content" />
</telerik:RadWizard.WizardPages>
</telerik:RadWizard>
</Grid>
</Window>
Hi,
I have my own popup (class that inherits from System.Windows.Controls.Primivites.Popup) that contains textbox, close button and a RadColorPicker.
The problem is when DropDownContent of RadColorPicker shows, I select color and DropDownContent hides, also with my Popup. It looks like MouseDown event is responsible for color selection, it hides DropDownContent and then MouseUp event hides my popup because mouse is actually out of Popup bounds.
Is there any possibility to not pass this event higher when color is selected and just simply close DropDownContent without any further event handling or something?
Is there anyway to replace the [+]-button in TabbedWindow-control, through AdditionalTemplate or similar. I would like to replace it with
a splitbutton or dropdown menu.
(if the answer involves this article https://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-editing-control-templates,
please be specific to what file Im supposed to change in, Im new to Telerik)
Thanks in advance
Hi
Can user set radgridview format? for example set each cell fore & back color ,font name & size ,....
I could not find ConditionalFormattingForm for radgrid 2019
thank you
Hello,
I am using a RadCartesianChart plotting a CandlestickSeries. When I zoom in i would like to have it more fit. The candles in the screenshot for example are very small and leave a lot of empty space. What would be the best way to make the candles use all of the available space and when you Increase/Decrease the zoom the candles to adjust accordingly.
Regards
Hi,
I would like to bind my itemsource to my view model using FindAncestor but it fails to find my usercontrol.
ItemSource ="{Binding DataContext.ContextMenuItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}"
However, by binding like this, without specifying the data context:
ItemSource ="{Binding ContextMenuItems}"
It binds to my view model properly for the first time and does not bind properly when i reopen the context menu and gives me the object type as its header...
I'm able to change the default error text, but I want the text to be red. Here is my xaml:
Thanks for your help.
<
xfDashboards:DashboardParameterControlBase
x:Class
=
"OneStream.Client.Silverlight.Dashboards.XFCalendarButtonControl"
xmlns:xfPagesCS
=
"clr-namespace:OneStream.Client.Silverlight"
xmlns:xfSharedUI
=
"http://onestream.com/sharedUI"
xmlns:xfDashboards
=
"clr-namespace:OneStream.Client.Silverlight.Dashboards"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"layoutRoot"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Loaded
=
"layoutRoot_Loaded"
>
<
Grid.Resources
>
<
Style
x:Key
=
"calendarStyle"
TargetType
=
"telerik:RadCalendar"
BasedOn
=
"{StaticResource RadCalendarStyle}"
>
<
Setter
Property
=
"AreWeekNumbersVisible"
Value
=
"False"
/>
</
Style
>
</
Grid.Resources
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"auto"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadDatePicker
x:Name
=
"DatePicker"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Margin
=
"0"
Padding
=
"6,4,6,4"
Foreground
=
"{StaticResource DarkBlueTextBrush}"
Grid.Row
=
"1"
Grid.Column
=
"1"
DisplayFormat
=
"Short"
DateSelectionMode
=
"Day"
ErrorTooltipContent
=
"Enter a valid date"
CalendarStyle
=
"{StaticResource calendarStyle}"
>
</
telerik:RadDatePicker
>
</
Grid
>
</
xfDashboards:DashboardParameterControlBase
>