Telerik Forums
UI for WPF Forum
2 answers
86 views
Is there a tool?
maanshan
Top achievements
Rank 1
 answered on 29 Apr 2016
6 answers
211 views
Hello,
the Office2013 theme corrects the text of the header so that they are in uppercase.
This work correctly when we just set the header as a text, but not if we want to customize it, for example to add an image or something else. It seems that the theme takes the Text property of the header content, converts it to uppercase and use the result to display in the header. If the header content doesn't contain a Text property, nothing is displayed.

To see this in action, just create a WPF application, add the relevent assemblies and replace MainWindow.xaml with:
<Window
  x:Class="Test_GridView_header_Office2013.MainWindow"
  Title="MainWindow" Height="350" Width="525">
  <tk:RadGridView Margin="10">
 
    <tk:RadGridView.Columns>
 
      <tk:GridViewDataColumn Header="Direct text" />
 
      <tk:GridViewDataColumn>
        <tk:GridViewDataColumn.Header>
          <StackPanel>
            <TextBlock Text="Header with a stack panel" />
          </StackPanel>
        </tk:GridViewDataColumn.Header>
      </tk:GridViewDataColumn>
 
    </tk:RadGridView.Columns>
 
  </tk:RadGridView>
</Window>

If you run the application, you will see that the first header is displayed, but not the second one...
In all other themes I tested, including Windows8, both headers are displayed.

To correct the problem, I think that the best solution is to check whether the header has a Text proprty. If there is none, you should display the header as defined by the user, without changing it.

Patrick
Ivan Ivanov
Telerik team
 answered on 28 Apr 2016
3 answers
159 views

Hello, I am getting the following exception when using grouping in RadGridView. The problem is that the exception seems to happen not inside my code, 
but entirely inside Telerik RadGridView control, so I cannot catch the exception. Any tips how to catch this exception or better - avoid the exception from occuring?  I using the Telerik version 2016.1.217.40. My twitter handle is @Tore_Aurstad. Nice if you got any tips, we are closing in on our release date for our client which is using the Telerik WPF library heavily. 

Thanks,

 Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.GenerateScrollingStack

StackTrace:
   ved Telerik.Windows.Data.FuncExtensions.<>c__DisplayClass1`2.<ToUntypedFunc>b__0(Object item)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.GenerateScrollingStack(Object dataItem)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.NestedLayoutStrategy.ScrollRowIntoView(Object dataItem, Action`1 scrollFinishedCallback, Action scrollFailedCallback)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollRowIntoViewInternal(Object dataItem, Action`1 scrollFinishedCallback, Action scrollFailedCallback)
   ved Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass7f.<ScrollIntoViewAsync>b__7e()
   ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ved MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Yoan
Telerik team
 answered on 28 Apr 2016
1 answer
100 views

Hi,
we need saving the fields Alt and Tag of the images (ImageInline objects ) but when we try to export in docx using Export method of DocxFormatProvider these fields are lost.
Is there a way to save the values of these fields in docx format?

Thank you.
Regards.

Tanya
Telerik team
 answered on 28 Apr 2016
2 answers
233 views

I can't seem to find 3d chart demos either in the xaml sdk repository (https://github.com/telerik/xaml-sdk) or in the wpf demo application, is this feature no longer supported? I was trying to make a doughnut3d to work, but I get a StackTrace-less stackoverflow exception in runtime

.

 

Xaml:

 

<p></p><p>        <telerik:RadChart x:Name="radChart"<br>                          UseDefaultLayout="False"<br>                          Height="300"<br>                        ItemsSource="{Binding}"><br>            <Grid Margin="10"><br>                <Grid.RowDefinitions><br>                    <RowDefinition Height="Auto" /><br>                    <RowDefinition Height="*" /><br>                </Grid.RowDefinitions><br>                <Grid.ColumnDefinitions><br>                    <ColumnDefinition Width="*" /><br>                    <!--<ColumnDefinition Width="*" />--><br>                </Grid.ColumnDefinitions><br>                <telerik:ChartTitle Margin="0,0,0,10"<br>                                    HorizontalAlignment="Center"<br>                                    Content="Year 2008"<br>                                 Grid.Row="0"<br>                                    Grid.Column="0" /><br>                <telerik:ChartArea x:Name="webBrowsersShare2008Chart"<br>                                  Grid.Row="1"<br>                                   Grid.Column="0" /><br>                <!--<telerik:ChartTitle HorizontalAlignment="Center"<br>                                 Content="Year 2009"<br>                                 Margin="0,0,0,10"<br>                                   Grid.Row="0"<br>                                    Grid.Column="1" /><br>                <telerik:ChartArea x:Name="webBrowsersShare2009Chart"<br>                                  Grid.Row="1"<br>                                   Grid.Column="1" />--><br>            </Grid><br><br>            <telerik:RadChart.SeriesMappings><br>                <telerik:SeriesMapping CollectionIndex="0"<br>                                       ChartAreaName="webBrowsersShare2008Chart"><br>                    <telerik:SeriesMapping.SeriesDefinition><br>                        <telerik:Doughnut3DSeriesDefinition /><br>                    </telerik:SeriesMapping.SeriesDefinition><br><br>                    <telerik:SeriesMapping.ItemMappings><br>                        <telerik:ItemMapping FieldName="Value"<br>                                          DataPointMember="YValue" /><br>                        <telerik:ItemMapping FieldName="Description"<br>                                           DataPointMember="Label" /><br>                    </telerik:SeriesMapping.ItemMappings><br>                </telerik:SeriesMapping><br>                <!--<telerik:SeriesMapping CollectionIndex="1"<br>                                      ChartAreaName="webBrowsersShare2009Chart"><br>                    <telerik:SeriesMapping.SeriesDefinition><br>                        <telerik:DoughnutSeriesDefinition /><br>                    </telerik:SeriesMapping.SeriesDefinition><br>                    <telerik:SeriesMapping.ItemMappings><br>                        <telerik:ItemMapping FieldName="Value"<br>                                            DataPointMember="YValue" /><br>                        <telerik:ItemMapping FieldName="Description"<br>                                           DataPointMember="Label" /><br>                    </telerik:SeriesMapping.ItemMappings><br>                </telerik:SeriesMapping>--><br>            </telerik:RadChart.SeriesMappings><br>        </telerik:RadChart></p><p> </p>
Martin
Telerik team
 answered on 28 Apr 2016
1 answer
120 views

I have a diagram control, and I was drawing an arrow across it. I did this as ATP using Microsoft Coded UI. It recorded the sequence of steps correctly as well as the dragging, however, in the code behine it put  this statement as a comment.

 

System parameter 'Show window contents while dragging' is not set.This could lead to incorrect recording of drag actions

 

when running the ATP, when it comes to the stage of drawing the arrow, it just does not, stays there as though nothing is happening. Any advice whats happening? The particular windows system parameter is set to show contents when dragging. using windows server 2008 R2.

Petar Mladenov
Telerik team
 answered on 28 Apr 2016
5 answers
57 views
Hi. Please tell me - can I use telerik:CollectionEditor to edit content of telerik:RadTreeView? I've dug in Google about it but and don't find any information just about using telerik:CollectionEditor for editing content of telerik:RadTreeView. Thank you very much in advance. I bag your pardon for your time.
Eugene
Top achievements
Rank 1
 answered on 28 Apr 2016
2 answers
340 views

Hi,

in my mainwindow i have a radtabcontrol and i bind it to a collection of tabitems. Further i have datatemplates for each view (user control) and a datatemplateselector. Everything works without problems but once i set the IsContentPreserved property to true i get

System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set;  'ContentTemplateSelector' will be ignored. ContentPresenter:'ContentPresenter' (Name='')

here is my xaml:

<telerik:RadWindow.Resources>
       <DataTemplate x:Key="ContentTemplateApplicationSettings">
           <local:ApplicationSettings/>
       </DataTemplate>
       <DataTemplate x:Key="ContentTemplateConversionRules">
           <local:ConversionRules/>
       </DataTemplate>
       <DataTemplate x:Key="ContentTemplateProductionOrderConversion">
           <local:ProductionOrderConversion/>
       </DataTemplate>
       <localutil:MainMenuContentTemplateSelector x:Key="MainMenutemplateSelector"
               ApplicationSettingsTemplate="{StaticResource ContentTemplateApplicationSettings}"
               ConversionRulesTemplate="{StaticResource ContentTemplateConversionRules}"
               ProductionOrderConversionTemplate="{StaticResource ContentTemplateProductionOrderConversion}"/>
   </telerik:RadWindow.Resources>
   <Grid>
       <Grid.RowDefinitions>
           <RowDefinition/>
           <RowDefinition Height="Auto"/>
       </Grid.RowDefinitions>
       <telerik:RadTabControl x:Name="MainMenuTabControl"
                              IsContentPreserved="True"
                              ItemsSource="{Binding MainMenuTabItems}"
                              ContentTemplateSelector="{StaticResource MainMenutemplateSelector}">
           <telerik:RadTabControl.ItemTemplate>
               <DataTemplate>
                   <TextBlock Text="{Binding Header}" />
               </DataTemplate>
           </telerik:RadTabControl.ItemTemplate>
       </telerik:RadTabControl>
       <StatusBar Grid.Row="1" Background="{StaticResource HeaderAndStatusBackground}">
           <StatusBarItem>
               <TextBlock Text="{Binding StatusText}" Foreground="White"/>
           </StatusBarItem>
       </StatusBar>
   </Grid>


What is the reason for this error?

thanks, 

michael

Michael
Top achievements
Rank 1
 answered on 28 Apr 2016
4 answers
188 views

 Is it possible RadHeatMap axes SmartLabelsMode="SmartStep" ? As you can see in the attached image , when I have a lot of data , labels overlap. Is there any solution in radhepmap ? In radcartesianchart with SmartStep the problem is solved.

Regards,

Gerard.

Gerard
Top achievements
Rank 1
 answered on 28 Apr 2016
1 answer
764 views

 

Objective:  To filter the listbox (Computers) and select an item whose value matches exactly with that of textbox (Search) value.

 

Considerations:

1) The items from the listbox are binded from the database.
2) The item in the listbox should be selected by default when textbox value matches with the listbox item.

 

Please help me on this

Yana
Telerik team
 answered on 28 Apr 2016
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?