Telerik Forums
UI for WPF Forum
2 answers
95 views

I have followed the advice on this forum post below by adding and removing a dummy object in my collection.

https://www.telerik.com/forums/force-filtering-to-refresh-when-values-in-existing-rows-are-updated#wbilJhXXv02aibtG_c5tTQ

This will force a RadGrid to show data that meets the filters criteria after the filter has been applied.

Unfortunately this breaks my cell flashing user control, which relies upon FrameworkElement.IsLoaded being true but is always false when doing the suggested fix from the forum post.

This is because the user control now being instantiated in CreateCellElement on each update rather than being reused.

How can I send a sample project? You can see when you run the solution, if you filter on the InAuction column and set it to true, you will see the rows being added but no cell flashing for the StockPrice column.

How can I fix the issue?

Martin Ivanov
Telerik team
 answered on 08 Jun 2020
5 answers
333 views
I have a couple Boolean properties on my object that by default are being rendered as Check Boxes.  I have put a Data Template Selector class in place to provide a new template that uses a simple TextBlock.  The problem is instead of the TextBlock showing True or False (which it does by default) I want it to show Yes or No.  So I also created a simple class that implements IValueConverter to change Booleans to Yes or No.  Because I have multiple similar properties I want to reuse the same data template.

<utils:PropertyEditorTemplateSelector.YesNoTemplate>
   <DataTemplate>
      <TextBlock telerik:AutoBindBehavior.UpdateBindingOnElementLoaded="Text" Text="{Binding Converter={StaticResource YesNo}}" />
   </DataTemplate>
</utils:PropertyEditorTemplateSelector.YesNoTemplate>

I thought using the AutoBindBehavior would do the trick (and it might I could be using it wrong) but when my value converter is called I am passed the Parent object and not just the value of the property being rendered. 
I have a feeling my Binding expression for my Text property on the data template is wrong but I am unable to figure out the proper value.

Thanks.
Martin Ivanov
Telerik team
 answered on 08 Jun 2020
5 answers
253 views

hi my friends

I wanna to use radcombobox in editable mode to search with two key words

by employee id and employee name

for each key word I wanna to show employee name in radcombobox

example:

table from database

id             name

----           ---------

10            jack

20            ali

30            dany

search by employee id like picture 1.

search by employee name like picture 2.

 

Don
Top achievements
Rank 1
 answered on 05 Jun 2020
1 answer
226 views

Hello,

 

I'm working in an application with the RadGantView. We are using maybe in a special way by puttin multiple event on a same row playing with margins to avoid overlap.

As a result I written a visualization behavior to yield right elements and container selector.

 

That's for the context. Now I'm facing an issue with refresh of the gantt timeline. I can't figure out why it doesn't update after effective changes.

I attach a little gif of the visual I have for now and we can notice that is does not update when wanted. Note that after some wierd manipulation in the application the timeline finally gets updated with the right position.

 

Thanks by advance.

 

Cheers,

Alexandre

Alexandre
Top achievements
Rank 1
 answered on 05 Jun 2020
3 answers
206 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
1.0K+ 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
170 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
232 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
431 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
119 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
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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?