Telerik Forums
UI for WPF Forum
3 answers
187 views

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?

LindenauAtSOG
Top achievements
Rank 2
 answered on 04 Jun 2020
6 answers
936 views

     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!

Vladimir Stoyanov
Telerik team
 answered on 04 Jun 2020
4 answers
151 views

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>

Susmitha
Top achievements
Rank 1
Veteran
Iron
 answered on 04 Jun 2020
1 answer
207 views

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?

Ivan Petrov
Telerik team
 answered on 03 Jun 2020
1 answer
393 views
If you have your windows taskbar set to auto hide it won't show when you move your cursor to the edge of the screen when a TabbedWindow is maximized.
Is there a workaround for this or is this a bug that you will fix?
Martin Ivanov
Telerik team
 answered on 03 Jun 2020
2 answers
102 views

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

 

 

Martin Ivanov
Telerik team
 answered on 03 Jun 2020
1 answer
95 views

 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

Vladimir Stoyanov
Telerik team
 answered on 03 Jun 2020
0 answers
125 views

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

Marko
Top achievements
Rank 2
Iron
 asked on 03 Jun 2020
1 answer
288 views

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... 

Martin Ivanov
Telerik team
 answered on 03 Jun 2020
6 answers
185 views

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"
    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>
Kathy
Top achievements
Rank 1
Veteran
 answered on 02 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?