Telerik Forums
UI for WPF Forum
16 answers
643 views
Where can i download the CRM Demo application source code for WPF?
Martin Ivanov
Telerik team
 answered on 26 Dec 2017
1 answer
287 views

Hi I was able to create a custom control template for a GridViewCell as follows (perhaps a bad approach?):

                        <Style x:Key="{x:Type telerik:GridViewCell}" TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">
                                        <Grid>
                                            <Border x:Name="RowBorder" SnapsToDevicePixels="true" BorderThickness="0,2"  BorderBrush="#222" Background="#222">
                                                <ContentPresenter Content="{TemplateBinding Content}"/> <!--Gets content for GridViewDataColumn DataMemberBinding-->
                                            </Border>
                                            <Border x:Name="AlertBorder" SnapsToDevicePixels="true" BorderThickness="0" Background="#444" Opacity="0"/>
                                        </Grid>

                                          .....Control Template Triggers Data Triggers story board stuff here

    Question is could I do something similar for GridViewRow?????  

                        <Style x:Key="{x:Type telerik:GridViewRow}" TargetType="{x:Type telerik:GridViewRow}" BasedOn="{StaticResource GridViewRowStyle}">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="{x:Type telerik:GridViewRow}">
                                        <Grid>
                                            <Border x:Name="RowBorder" SnapsToDevicePixels="true" BorderThickness="0,2"  BorderBrush="#222" Background="#222">
                                                             ?????????????Can I present the row cells here with an element and some sort of binding????????????
                                            </Border>
                                            <Border x:Name="AlertBorder" SnapsToDevicePixels="true" BorderThickness="0" Background="#444" Opacity="0"/>
                                        </Grid>

Thanks in advance...

 

 

Martin Ivanov
Telerik team
 answered on 26 Dec 2017
1 answer
97 views

Hi,

I have a parent grid view which is bound to a datatable. Is it possible to show a hierarchical child grid view for a datatable?

Regards,

Swapnil

Stefan
Telerik team
 answered on 26 Dec 2017
0 answers
71 views

Hi Telerik,

I'm running into a problem.

I have a class that is defined like so:

````

public class User {

  public string Name {get; set; }

  public long Age {get; set; }

  public Dictionary<string, object> CustomProperties {get; private set;} = new Dictionary<string, object>();

}

````

I am having a hard time figuring out what I need to do in order to expose the values in the Dictionary as filterable properties of the RadDataFilter.  I've even gone as far as implementing a custom type descriptor and I'm not getting any joy.

What do I need to do to make this happen?

Tony
Top achievements
Rank 1
 asked on 23 Dec 2017
1 answer
221 views

I have a number of RadComboBoxes in a RadPropertyGrid, and my model has implemented IDataErrorInfo. When the property grid (and combobox) is first loaded, it validates correctly. But, once a value that should be acceptable is selected, the combobox is still marked with an error. Debugging shows that the validation only runs once.

 

How can I have the validation run when the value of the combo box changes?

Kalin
Telerik team
 answered on 22 Dec 2017
1 answer
301 views
Hi, I was looking to trigger an event when my autocomplete box is clicked into. GotFocus works perfectly but is there a way to have the event not fire when a token is clicked on/ Removed.

Kind regards,
Dilyan Traykov
Telerik team
 answered on 22 Dec 2017
1 answer
138 views

Hi,

We are having issues with older road imagery from Bing Maps API. Some roads are not getting displayed on the map.how we can get updated maps ?

ex : for St. Louis (STL) -New highway from Dardenne to Harvester
We are using Telerik.Windows.Controls.RadMap and Telerik.Windows.Controls.Map.BingRestMapProvider in our projects.
We have received information that we need to request the imagery from BingREST imagery and we should  be using the "RoadOnDemand" Imagery Set as per the documentation here: https://msdn.microsoft.com/en-us/library/ff701716.aspx.

Can you help us to understand how to set property ImagerySet to 'RoadOnDemand' for Telerik.Windows.Controls.RadMap that we are using?

.Thanks,

Snehal

Dinko | Tech Support Engineer
Telerik team
 answered on 22 Dec 2017
1 answer
89 views

I try to enable the SelectionMiniToolbar on the RichTextBox but it doesn't show up on selected text.

When it is turned on the external formatting buttons, like B/I/U with ToggleBold/Italic/Underlined() methods are freezing out with System.NullReferenceException.

When the toolbar is not enabled everything is working well.

I think I added every references, list is attached.

Looks like the toolbar didn't initialized properly, checking the richtextbox properties it is not null, just most of it's properties. (not sure it is the expected behaviour).

 

Message:

"Object reference not set to an instance of an object."

 

Stacktrace:

   at Telerik.Windows.Controls.RichTextBoxUI.SelectionMiniToolBar.ToggleBoldCommand_ToggleStateChanged(Object sender, StylePropertyChangedEventArgs`1 e)
   at Telerik.Windows.Documents.RichTextBoxCommands.ToggleCommandBase.OnToggleStateChanged(StylePropertyChangedEventArgs`1 e)
   at Telerik.Windows.Documents.RichTextBoxCommands.ToggleCommandBase.UpdateSpanStyle()
   at Telerik.Windows.Documents.RichTextBoxCommands.RichTextBoxCommandBase.radRichTextBox_CurrentSpanStyleChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Telerik.Windows.Controls.RadRichTextBox.OnCurrentSpanStyleChanged()
   at Telerik.Windows.Controls.RadRichTextBox.CurrentSpanStyle_PropertyValueChanged(Object sender, StylePropertyChangeEventArgs args)
   at Telerik.Windows.Documents.Model.DocumentElement.OnPropertyValueChanged(IStylePropertyDefinition propertyDefinition, Object oldValue, Object newValue)
   at Telerik.Windows.Documents.Model.Styles.StyleProperty`2.OnPropertyValueChanged(TValue oldValue, TValue newValue)
   at Telerik.Windows.Documents.Model.Styles.StyleProperty`2.CheckForValueChange(RadValueSource changedValueSource)
   at Telerik.Windows.Controls.RadRichTextBox.ToggleBold()
   at HeatGun.HeatGunMainWindow.RTB_Note_BoldButton_OnClick(Object sender, RoutedEventArgs e) in D:\Visual Studio Projects\Tegu Solutions\Heat Gun\WindowHeatGunMain\HeatGunMainWindow.xaml.cs:line 243
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at Telerik.Windows.Controls.RadToggleButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at Telerik.Windows.Controls.RadToggleButton.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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 HeatGun.App.Main()

Boby
Telerik team
 answered on 22 Dec 2017
1 answer
86 views

Hello,

 

My team is facing an issue related to the Property Grid component of the WPF, there is an object that has a property of type Point that is represeted as 123.34;1232.34 in the property grid, with a default point value it works however the set value event of the property is not fired when you try to change the value of the textbox, it seems that there is no 2 way binding.

This only happens to that property, so we are suspicious it is because of the type of the property.

 

Can you help us?

 

Thank you

Vladimir Stoyanov
Telerik team
 answered on 21 Dec 2017
2 answers
142 views

Hello,

I have a flexible sized GridView with a fixed bigger dataset (~50 columns * ~50 rows) and I am looking for any kind of more advanced scrolling behavior than the built in one (which is working well but not an option in my case).

So the layout size is bigger than the visible area and I would like to scroll (or pan-move?) easily inside the grid.

My ideas are 

1. Scrolling fluently both way by pressing the middle mouse button, like on a webpage for example.

2. The cells are in readonly mode, so clicking on a cell while moving the mouse maybe also can be a good option to substitute the scrollbar.

 

Do you have any easy solution for this question or maybe any other advice?

 

Tegu
Top achievements
Rank 1
 answered on 20 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?