Telerik Forums
UI for WPF Forum
0 answers
263 views

Are there any versions of the Telerik WPF Binaries that use a .NET Runtime of 4.5 or greater? All of the versions I currently have available appear to be targeting a Runtime Version of 4.0.30319. This is in Visual Studio 2015 on Windows 10. The versions of the Telerik WPF Binaries I have available are 2015.3.1104 and 2017.2.503. I have tried using the .45 versions of both binaries and both appear to be targeting 4.0.30319.

We are currently seeing this exception in the Windows Event log after our application runs for a period of time and searching has found that one of the causes of this issue is known in .NET 4.0 and has been resolved in .NET 4.5 and higher.

This is the information from the Windows Event log for the issue causing our application to crash:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
   at System.Windows.Media.Composition.DUCE+Channel.SyncFlush()
   at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean, System.Nullable`1<ChannelSet>)
   at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr)
   at System.Windows.Interop.HwndTarget.HandleMessage(MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

 

If anyone can point me to a version of Telerik UI for WPF that uses a runtime of 4.5 or greater (or a list of released versions and the targeted runtimes) so we can try to see if that resolves our issue it would be much appreciated!

Drew
Top achievements
Rank 1
 asked on 19 Feb 2018
6 answers
382 views

Hi, I have RadPropertyGrid with auto generated property definitions. Some of the properties are numeric, and when something like letters is input in those properties, I get 'Value cannot be converted.." message.

So this is a settings form, and I should be able to forbid saving those properties if such conversion issue exists, but how can I check that on code side?

Vladimir Stoyanov
Telerik team
 answered on 19 Feb 2018
2 answers
332 views

I have some  RadPathButtons (inside a WrapPanel) with attached commands.  When the commands are enabled, I want the paths to show up in black.    Instead they show up in grey, even though the attached commands are enabled and do execute when I click them.  See the first attached image ("before_style.png") to see what I mean

<WrapPanel x:Name="ViewPanel"
           Background="{StaticResource GsBackgroundDark}"
           VerticalAlignment="Top"
           HorizontalAlignment="Stretch"
           Margin="0"
            >
 
    <tk:RadPathButton Margin="10 10 0 0"
                      Height="40"
                      Width="40"
                      IsEnabled="True"
                      Foreground="Black"
                      PathGeometry="{StaticResource HeightMapPathGeometry}"
                      Command="{Binding ShowHeightMapCmd}"
        />
 
    <tk:RadPathButton Margin="10 10 0 0"
                      Height="40"
                      Width="40"
                      IsEnabled="True"
                      ToolTip="Show Scan Images"
                      PathGeometry="{StaticResource ImagesGeometry}"
                      Command="{Binding ShowImagesCmd}"                                 
    />
</WrapPanel>

 

 

So, following Telerik's advice, I added a style resource to use in each of the button's PathStyle Property

 

<WrapPanel.Resources>
    <Style x:Key="MyPathStyle" TargetType="{x:Type Path}">
        <Setter Property="Fill" Value="Black"/>
        <Setter Property="Stroke" Value="Black"/>
    </Style>
</WrapPanel.Resources>

 

Then I set this resource as the PathStyle for each of the buttons.   For example (see line #7 below)

01.<tk:RadPathButton Margin="10 10 0 0"
02.                  Height="40"
03.                  Width="40"
04.                  IsEnabled="True"
05.                  ToolTip="Show Scan Images"
06.                  PathGeometry="{StaticResource ImagesGeometry}"
07.                  PathStyle="{StaticResource MyPathStyle}"
08.                  Command="{Binding ShowImagesCmd}"                                 
09./>

 

But then when I run my application again, the button icons don't look even recognizable.  It's like they've expanded far beyond the boundaries of the button, when all I did was try to change the color.  Look at the the second attached image ("after_style.png") to see what I mean

Can you tell me what I am missing?  I never expected merely applying a color to the paths would change their geometry.

Martin
Telerik team
 answered on 19 Feb 2018
3 answers
201 views

In the PivotGrid PivotFieldList demo, if I drag the field product on property aggregations, it shows the count of products.

But if I set a number format, it's ignored.

How can I use number format in this case?

Kalin
Telerik team
 answered on 19 Feb 2018
5 answers
774 views

Hello,

I use the PrintPreview Control with the PrintAndExportExtensions.cs as shown in the GridView/PrintPreviewWithSpreadsheet example, which works very nicely.

Now I would like to suppress the Windows PrintDialog which is shown after clicking the print button, since it blocks the UI and does not show the parameters correctly (instead of the previously in the PrintPreview Control selected parameters the dafault values are displayed but it seems the correct values are pased to the printer).

For selecting the printer, I would like to add a ComboBox to my view. Is there a way to pass the selected printer as a string or with PrintSettings to the RadSheet or the PrintPreview Control/ViewModel and suppress the Windows PrintDialog?

I also had a look at the example from this post: https://www.telerik.com/forums/printing-and-print-previewing-my-grid#r3qTgvsrCkiSP_PxTMubzA

but the PrintSettings in the CreateDocument method aren't used.

Any help would be appreciated.

 

Best regards

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Feb 2018
2 answers
146 views

Hi,

I am currently using the RadGridView and using the Office2016 theme, I am trying to switch to VisualStudio2013 theme but have discovered that it does not seem to work with ColumnWidth="*" and more generally when using something such as Width="25*" within a column header within a listbox itemtemplate. I also noticed that when stretching the window out and back the visualstudio2013 theme flickered a lot.

I have made a very simple project which highlights the issue, it uses the latest UI for WPF from the website.

It can be found here : https://www.dropbox.com/s/i9fp4g4a8bilqv9/TelerikRadGridViewBug.zip?dl=0

Also attached a screenshot showing the program running.

Thanks,
Martin

Sia
Telerik team
 answered on 16 Feb 2018
3 answers
240 views

Is there a way to add a text indicator inside a radial gauge?

I have already defined a radial gauge that shows values from 0 to 100 on its radial scale, and the current value in the center of the gauge. I would also like to add a similar gauge that shows text instead numbers in the center. E.g. "Processing", "Calculating", "Complete", ... Human readable status text.

RadialScale.Indicators seems to be a UIElementCollection, so I tried adding a TextBlock object in the collection. However, it is not shown.

Martin Ivanov
Telerik team
 answered on 16 Feb 2018
1 answer
725 views

I have a GridViewToggleRowDetailsColumn in the RadGridView. Now I want two things.

  1. Using down-arrow and up-arrow instead of plus and minus icon. The down-arrow is attached.
  2. I want the icon stick on the top. Now it is in the middle vertically.

Thanks for the sample code help.

 

Martin
Telerik team
 answered on 16 Feb 2018
11 answers
787 views
Greetings,

Today, we upgraded from the Q3/2010 controls to the Q2/2011 controls on our application. For the most part, everything upgraded without any problems. However, there's one discrepancy that has me stumped. I'm not sure about the best way to resolve this, so i wanted to get your help.

To illustrate the problem, I have a very simple RadGridView defined. The second column has a Background of "GhostWhite":

<Telerik:RadGridView x:Name="GridView" AutoGenerateColumns="False" Width="500" Height="500">
     <Telerik:RadGridView.Columns>
          <Telerik:GridViewDataColumn UniqueName="DateTime" Header="Date/Time"
               DataMemberBinding="{Binding DateTime}" IsReadOnly="True"
               DataType="{x:Type System:DateTime}" IsFilterable="True" />
          <Telerik:GridViewDataColumn UniqueName="Value" Header="Value"
               Background="GhostWhite" DataMemberBinding="{Binding Value}"
               DataType="{x:Type System:Decimal}" IsFilterable="True" />
            </Telerik:RadGridView.Columns>
        </Telerik:RadGridView>

When I populate my grid with items, the cells in the second column are missing the left side of their border. If I remove the Background attribute on the second column the cell's left side is back and looks just fine.

I was able to use Expression Blend/WPF Inspector to locate the "PART_CellBorder" border. It looks like the BorderThickness here may not account for the left side.

Is this by design? Is there are work around?

Thanks!
Stefan
Telerik team
 answered on 16 Feb 2018
2 answers
108 views

When I'm opening a RadCombobox, focus an item with the mouse, moving the mouse pointer out of the Combobox and thus loosing the focus, SelectionChanged is fired when I'm pressing the Enter key. I'd expect that no item would be selected in this case since no item is visibly highlighted, but instead an item gets selected (probably the item that was highlighted last by moving the mouse pointer).

Is this behavior intended?

Michael
Top achievements
Rank 1
 answered on 16 Feb 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?