Telerik Forums
UI for WPF Forum
4 answers
1.1K+ views
How to apply converter to  a GridViewDataColumn??
I have a column for which i need to truncate the display of string after particular delimiter.
Should we use a Converter, if so how? or else how can we trim the string??
Dimitrina
Telerik team
 answered on 20 Feb 2013
1 answer
85 views
I've created a resource dictionary RadRibbon and copied/pasted the resources from the NET40 implicit style resource dictionary.  Visual studio 2012 renders & builds fine, but Blend crashes whenever I open the project.  When I debug blend with vs 2012, it reports:

'{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonGallery.Icon' property on a Setter.

Please advise.
Kiril Vandov
Telerik team
 answered on 20 Feb 2013
1 answer
159 views
Hello,

I have a RadGridView and need to remove tooltip that appears when scrolling using the slider bar; I think it is called the ScrollPositionIndicator. I have managed to change the column it targets with a new ScrollPositionIndicatorTemplate but I am struggling to remove it entirely. Is there a property I can set to false to make this tooltip not visible?

thanks
Alex
Top achievements
Rank 1
 answered on 20 Feb 2013
12 answers
746 views
Hello,
in a RadGridView I've some rows that have a field value D and other B, I need to show in the ColunFooter a

Total D :
Total B:

and in another column

Total D value (€)
Total B value (€)

I've tried myself creating a sumfunction but I don't know if I've to create two different (1 for B and 1 for D) or what... can you please provide me a sample?

Thanks
MiddleTommy
Top achievements
Rank 1
 answered on 19 Feb 2013
4 answers
191 views
Hello,

Now I'm working on localization about DataGrid. And I'm using WPF Localization Extension for multi-language supporting.
At this time I need to change texts for each headers, but It doesn't work.
Below is my code for localization.

<telerik:GridViewDataColumn DataMemberBinding="{Binding}" HeaderCellStyle="{StaticResource  GridViewHeaderCellBasic}">
    <telerik:GridViewDataColumn.Header>
        <TextBlock Text="{lex:Loc LINETOTAL}" TextWrapping="Wrap" />
    </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

In the above code, {lex:Loc LINETOTAL} means multi-lange ID for Localization. The text of Column header should changed to above text which is linked to LINETOTAL.
But the header text is not showing.

Can you help me out for this problem?

Thank you.
KyungTaek
Top achievements
Rank 1
 answered on 19 Feb 2013
2 answers
144 views
How hard is it to make one of the telerik gauges look like the CPH gauge in the attached screenshot?
Wade
Top achievements
Rank 1
 answered on 19 Feb 2013
10 answers
1.2K+ views
Is there a way to set the header to be multi line
when the text is long
Thanks.
Vlad
Telerik team
 answered on 19 Feb 2013
4 answers
437 views
Hello Telerik Team
I need a example to add programmatically subitems to your  wpf controls example of section "appearance -> Customization".
I try to follow your databind example. 
My steps was 
I Create a menuitem class and all of styles like your example
then i add 
<HierarchicalDataTemplate x:Key="MenuItemTemplate"
                                  ItemsSource="{Binding SubItems}">
            <TextBlock Text="{Binding Text}" />
        </HierarchicalDataTemplate>
after that i add the radmenu
<telerik:RadMenu x:Name="RadMenu"  ItemTemplate="{StaticResource MenuItemTemplate}"  Style="{StaticResource MenuStyle}" Grid.Row="1"   ItemContainerStyleSelector="{StaticResource MainWindowItemStyleSelector}" ItemContainerStyle="{x:Null}"  BorderThickness="0" Margin="30,0,0,0" ItemClick="OnRadMenuItemClick">
       
All its fine until here  but when i add ItemContainerStyleSelector="{StaticResource MainWindowItemStyleSelector}"
then subitems disappear can explain me what happend? 


Thanks
Sujiyama
Top achievements
Rank 1
 answered on 19 Feb 2013
1 answer
150 views
Hello!

I use RadBook with FixedDocumentSinglePagePresenter to show pdf documents, it works fine but I have problem: I want to handle clicks on links inside pdf, these links are internal. I know that FixedDocumentSinglePagePresenter can't handle clicks on links yourself, so I have to do it manually. I checked class RadFixedDocument and found that it have property Annotations that contains list of links with coords and sizes. It is good but problem is that I can't find info about link's desinations: each item has empty fields Action and Destination. Is there way to determine destination for internal links?
P.S. I tested on this pdf: http://compositewpf.codeplex.com/downloads/get/166638#
Petya
Telerik team
 answered on 19 Feb 2013
5 answers
329 views
Hello, I'm using Q3 WPF components for the framework 4.
I'm currently switching the app theme dynamically by clearing the merged dictionnay re-adding:
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Windows.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Controls.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Controls.Docking.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Controls.GridView.xaml"
"/Telerik.Windows.Themes.
ThemName;component/Themes/System.Navigation.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Data.xaml"
"/Telerik.Windows.Themes.ThemName;component/Themes/System.Controls.RibbonView.xaml"

I'm working on a new user control which works fine with all themes, but as soon as I switch to Expression Dark I get the following:
System.Windows.Markup.XamlParseException was unhandled
      Message=Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
      Source=PresentationFramework
      ....     ...
      Message=Cannot find resource named 'TextBoxBorder_Disabled'. 

(Sorry for the lengthy error...) 
I would greatly appreciate any hint...
here's the whole thing:


System.Windows.Markup.XamlParseException was unhandled
  Message=Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
  Source=PresentationFramework
  LineNumber=0
  LinePosition=0
  StackTrace:
       at System.Windows.Markup.XamlReader.RewrapException(Exception e, Uri baseUri)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
       at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
       at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
       at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at ABC_WPF.Application.Main() in C:\Users\Arie\Documents\Visual Studio 2010\Projects\ABC_WPF\VirtualINV12_WPF\obj\x86\Debug\Application.g.vb:line 74
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 
       Message=Cannot find resource named 'TextBoxBorder_Disabled'. Resource names are case sensitive.
       Source=PresentationFramework
       StackTrace:
            at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
            at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
            at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
       InnerException: 





 

Siddharth
Top achievements
Rank 1
 answered on 19 Feb 2013
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?