Telerik Forums
UI for WPF Forum
5 answers
149 views
If you have a RadButton in a RadToolbar and the button properties are set in a style, those properties do not get applied at runtime.  If you set the properties directly on the button itself, then they do get set.  This was working before and broke in the latest release.

Example: 
<telerik:RadToolBar x:Class="ToolBarTest.View.ToolBars.StandardToolbarView"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                     xmlns:Controls="clr-namespace:ToolBarTest.Controls"
                     >
    <telerik:RadToolBar.Resources>
        <Style x:Key="Refresh" TargetType="telerik:RadButton">
            <Setter Property="ToolTip" Value="Refresh Set Via Property"/>
        </Style>
    </telerik:RadToolBar.Resources>
        
    <telerik:RadButton x:Name="Refresh" 
                       Style="{StaticResource Refresh}" 
                       Controls:ImageContentSetter.Source="/ToolBarTest;component/Images/document_refresh.png"
                       />
</telerik:RadToolBar>

With the above XAML, the Tooltip is NOT SET on the button.

While here:
<telerik:RadToolBar x:Class="ToolBarTest.View.ToolBars.StandardToolbarView"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                     xmlns:Controls="clr-namespace:ToolBarTest.Controls"
                     >
    <telerik:RadToolBar.Resources>
        <Style x:Key="Refresh" TargetType="telerik:RadButton">
        </Style>
    </telerik:RadToolBar.Resources>
        
    <telerik:RadButton x:Name="Refresh" 
                       Style="{StaticResource Refresh}" 
                       Controls:ImageContentSetter.Source="/ToolBarTest;component/Images/document_refresh.png"
                       ToolTip="Refresh"
                       />
</telerik:RadToolBar>

The tooltip IS SET on the button.

This might seem like a minor thing, but we have MANY buttons in our application and they all take advantage of property setting via styles.  There's NO WAY we are going to go change all of our XAML to work around this.  We cannot upgrade to the Q1 2013 release until this is fixed.
Petar Mladenov
Telerik team
 answered on 12 Jan 2018
4 answers
845 views
 <telerik:RadWindow
                x:Class="Testing.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:navigation="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
                    navigation:RadWindowInteropHelper.ShowInTaskbar="True"
                Header="RadWindow" Height="1000.098" Width="1315.286"
    >

This is the MainWindow.xaml

 

- I have removed the StartUrl in app.xaml

- I have changed MainWindow: Window To MainWindow: RadWindow

protected override void OnStartup(StartupEventArgs e)
{
    new MainWindow().Show();
    base.OnStartup(e);
}
I have added this to app.xaml.cs

 *------

When I run the wpf, a exe is running( as i can see in task manager), but nothing show up.

 

This is driving me crazy. Any help would be appreciated

Martin
Telerik team
 answered on 12 Jan 2018
1 answer
133 views

Hi.

We're aiming to use the grid view in application running in Windows Embedded 8.1 Industry Enterprise on a platform with an Intel Atom processor.

When we run the application we see a substantial memory leak when the grid view is repeatedly updated.
We don't see any memory leak when running the application in desktop Win 7.

I have a test project to reproduce the issue, but it seems you're not allowed to attach zip-files.

Joel
Top achievements
Rank 1
Iron
 answered on 11 Jan 2018
5 answers
149 views

Hi,
I'm relatively new with working of telerik wpf controls,
I'd like to create horizontal stacked bar(on y axis) with datetime scaled on x axis,
specially I have to deal with solutions for viewing states(every state has different colour) in one stacked bar (see enclosed pct..).

Is it case for RadCartesianChart or radtimebar, or please can you show me some example of it ?

Tomas

Stefan
Telerik team
 answered on 11 Jan 2018
3 answers
1.0K+ views
Hi Telerik Team,

We're using the latest GridView components, VS2015 C#, MVVM project and we're trying to use the info from your Custom Row Layout demo to customize the look of our rows.
This worked pretty well so far but now we're facing the problem having more than one RadGridView on one page.

Currently we're setting the GridViewRow template like in your demo.
But then every GridView on this page uses this template thus both grids look like our custom template.
Is there a way to specify different GridViewRow templates to two grids on one page?

And the second question is: How to create a selection highlight for a templated GridViewRow?

Currently the row shows up like we want it but selection highlight doesn't work anymore.
Maybe you've a demo how to achive this.
Even in your custom layout demo row selection doesn't seem to work.

I hope you can help me with both problems.

Thank you in advance for your efforts.

Best Regards,
Thomas
Stefan
Telerik team
 answered on 11 Jan 2018
3 answers
753 views

Hi,

Is there an easy way (= without having to use a complex ControlTemplate like in Kalin Milanovs answer (https://www.telerik.com/forums/how-to-change-the-selected-row-style)) to change the backgound color of the selected row ?

I've tried using a Trigger:

    <Style x:Key="DefaultTelerikGridViewRowStyle" TargetType="telerik:GridViewRow">
        <Setter Property="Height" Value="20"/>
        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Height" Value="24"/>
                <Setter Property="BorderBrush" Value="Green" />
                <Setter Property="BorderThickness" Value="3" />
                <Setter Property="FontWeight"  Value="Bold" />
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Background" Value="Red"/>
                <Setter Property="Foreground" Value="Green"/>
            </Trigger>
        </Style.Triggers>
    </Style>

This works fine for every property in the Trigger, except for the Background color.  How come ?

Kind Regards

 

Vladimir Stoyanov
Telerik team
 answered on 10 Jan 2018
1 answer
156 views

Hi

I need to dynamically create and delete RadDateTimePicker object. However, I can not fully delete the RadDateTimePicker. This can cause a memory leak. Let me give the sample example to illustrate my problem.

for(int b=0;b<10000;b++){

  for(int a=0;a<100;a++){
    RadDateTimePicker radDateTimePicker = new RadDateTimePicker();
    radDateTimePicker.InputMode = InputMode.DatePicker;
    radDateTimePicker = null;
  }
  long memory = GC.GetTotalMemory(true);
  System.Diagnostics.Trace.WriteLine(xxx.ToString() + " - " + (memory / 1000).ToString() + "K");
}

I found that If I set the InputMode the memory will keep increasing (Memory leak).  Otherwise, the memory will not keep increasing. Could you please help to solve this problem. 

 

Thank you very much

Imer
Telerik team
 answered on 10 Jan 2018
3 answers
1.6K+ views

Hello,

I am currently evaluating the Telerik WPF controls for use in our application. So far it's looking good but I have a question about how to build the project on a build server.

I understand that each developer needs their own licence, and each developer needs to install the controls on their development machine.

Currently I have installed the controls on my machine and my project references the .dlls from the Telerik install directory in Program Files. What do I need to do to build my project on our build server? Right now the build would fail because the build server does not contain the Telerik .dlls.

- Do I need to install the controls on the build server (rather than just copying the .dlls)?
- Do I need an additional licence for the build server?

Thanks,

Chris

Chris
Top achievements
Rank 1
 answered on 10 Jan 2018
1 answer
1.0K+ views

WPF, Caliburn.micro, mvvm.

My ViewModel have a BindableCollection<String> that is loaded with from 1 to 1000 string values.

In my view, I have a listbox that is bound to the collection. The list box shows all the data, but in one colunm with a scroll bar.  What I want is the data in three columns and scroll bars if the data can't fit.

 

Can anyone point me in the right direction?

Dilyan Traykov
Telerik team
 answered on 10 Jan 2018
4 answers
344 views

Hello!

I have a question about sorting string columns in the RadGridView component.

Lets say I have the following rows;

  • V1
  • V2
  • W1
  • W2 

When using the built-in sorting these are sorted as; V1, W1, V2, W2.

But here in Sweden the characters 'V' and 'W' are treated as separate characters.

So I would like these to be sorted as; V1, V2, W1, W2.

 

Is there some kind of setting I can use to resolve this or do I need to implement some kind of custom sorting?

 

Kind regards,

Fredrik

 

Fredrik
Top achievements
Rank 1
 answered on 08 Jan 2018
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?