Telerik Forums
UI for WPF Forum
1 answer
114 views

Hello,

I'm trying to put png icons on the PinPointTemplate and I achieved it but it goes big enough as the half of my screen, I tried to do ImageScale but it only fits the image (16x16 png) but the square around is still big, when I put Width and Height the point loses the location on different zooms. Please help, leave you part of my code.

 

<DataTemplate x:Key="PinPointTemplate">
            <telerik:MapPinPoint telerik:MapLayer.Location="{Binding Path=Location}" 
                                 Background="{Binding Background}"
                                 BorderBrush="Black"
                                 BorderThickness="1" 
                                 ImageSource="{Binding Icon}"
                                 ImageScale = "0.1"
                                 Width="20" Height="20">
                <ToolTipService.ToolTip>
                    <ToolTip Content="{Binding Path=Caption}"/>
                </ToolTipService.ToolTip>
            </telerik:MapPinPoint>
           
        </DataTemplate>
Martin Ivanov
Telerik team
 answered on 30 Mar 2017
3 answers
140 views
We have a RadDocking version 2013.1.220.40 with two floating RadPanes. Both RadPanes have as content another RadDocking with a layout.
When one of the two RadPanes comes on top of each other and the Compass appears we get the following exception:

 System.InvalidOperationException: The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
   at System.Windows.Media.Visual.TransformToVisual(Visual visual)
   at Telerik.Windows.Controls.RadDocking.GetElementPositionAtHost(FrameworkElement host, FrameworkElement element)
   at Telerik.Windows.Controls.RadDocking.MoveCompassToElement(FrameworkElement element)
   at Telerik.Windows.Controls.RadDocking.ShowCompass()
   at Telerik.Windows.Controls.RadDocking.OnDragElement(FrameworkElement draggedElement, Point relativeMousePosition, RadPaneGroup targetPaneGroup)
   at Telerik.Windows.Controls.RadDocking.OnDragContainer(RadSplitContainer container, Point globalMousePosition)
   at Telerik.Windows.Controls.RadDocking.OnToolWindowDrag(ToolWindow window, Point globalMousePosition)
   at Telerik.Windows.Controls.Docking.ToolWindow.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.OnWindowPositionUpdating(Rect windowPosition)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleMoving(IntPtr hwnd, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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.Media.Visual.TransformToVisual(Visual visual)
   at Telerik.Windows.Controls.RadDocking.GetElementPositionAtHost(FrameworkElement host, FrameworkElement element)
   at Telerik.Windows.Controls.RadDocking.MoveCompassToElement(FrameworkElement element)
   at Telerik.Windows.Controls.RadDocking.ShowCompass()
   at Telerik.Windows.Controls.RadDocking.OnDragElement(FrameworkElement draggedElement, Point relativeMousePosition, RadPaneGroup targetPaneGroup)
   at Telerik.Windows.Controls.RadDocking.OnDragContainer(RadSplitContainer container, Point globalMousePosition)
   at Telerik.Windows.Controls.RadDocking.OnToolWindowDrag(ToolWindow window, Point globalMousePosition)
   at Telerik.Windows.Controls.Docking.ToolWindow.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragDelta(Point globalMousePosition, Rect initialRect, Rect destinationRect, Boolean isResize)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.OnWindowPositionUpdating(Rect windowPosition)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleMoving(IntPtr hwnd, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

We tried disabling the compass by using the PreviewShowCompass event, but that event is never called.

 

private void dockPanel_PreviewShowCompass(object sender, Telerik.Windows.Controls.Docking.PreviewShowCompassEventArgs e)
       {
           e.Compass.IsLeftIndicatorVisible = false;
           e.Compass.IsTopIndicatorVisible = false;
           e.Compass.IsRightIndicatorVisible = false;
           e.Compass.IsBottomIndicatorVisible = false;
           e.Compass.IsCenterIndicatorVisible = false;
 
       } // dockPanel_PreviewShowCompass


I think the InvalidOperationException exception and the fact the PreviewShowCompass isn't called should be fixed by Telerik.
Meanwhile Is there any workaround we can use?

Nasko
Telerik team
 answered on 30 Mar 2017
13 answers
572 views

It seems like if I add different aggregate functions to the different columns, all columns gets all aggregate functions. Is there any way to prevent this?

 

(For instance - I would like some of the columns group header to include the column header - but not for all columns)

 

Thanks

Inger Marie

 

Inger Marie
Top achievements
Rank 1
 answered on 29 Mar 2017
1 answer
116 views
Hi,

It appears that the GridView is being rendered differently on a touch enabled device as opposed to a normal PC.  See attached screenshots.  It this expected?  Is there a way to disable touch such that it renders the same on both devices (I've tried using the touch manager without success)?  Am I barking up the wrong tree i.e. does it somehow relate the performance of the PC and / or graphics card?

You will note from the screenshots that I have 2 gridviews (one horizontal and one vertical).  They are precisely placed such that columns on the horizontal gridview align with the row of the vertical gridview (scrolling is synchronised).  This works perfectly on my development PC however on my surface pro it renders differently such that the gridviews don't align. 

Note that misalignment / different rendering seems to be originating from the customs styles I have developed (HeaderCellStyle, HeaderRowStyle and CellStyle).  Note the inconsistent border thicknesses.

Note that am I using the latest binaries (R1 2017) on both machines.

Please advise.

Thanks

Ian

Stefan Nenchev
Telerik team
 answered on 29 Mar 2017
3 answers
234 views

I have a RadGridView with FrozenColumnCount=4

When I group, the group header contains an aggregate count function.

But when I scroll to the right - the group header aggregate count is also scrolled away from view. I can still see the group header.

Is there any way to fix that?

I define the Group aggregate on the first column, like this:

<telerik:GridViewDataColumn.AggregateFunctions>
    <telerik:CountFunction  Caption="Count" ResultFormatString="{}: {0:#,0}"  />
</telerik:GridViewDataColumn.AggregateFunctions>

 

Thanks.

Inger Marie
Top achievements
Rank 1
 answered on 29 Mar 2017
1 answer
282 views
Is there any events are present in spreadsheet or based on selection only we have to figure it out about the selection
Dinko | Tech Support Engineer
Telerik team
 answered on 29 Mar 2017
7 answers
207 views

Is it possible to configure an automatic connection routing in RadDiagram like in the "TableShape" example?

Please look at "MyRoute.png" for my route looks now and "ExampleRoute.png" for what my route should look like.

Martin Ivanov
Telerik team
 answered on 29 Mar 2017
1 answer
55 views

Hello,

Is there a way to avoid that during the ordering a task child of a summary node is dragged under another summary node?

I think that I have to do this overriding the GanttDragDropBehavior.CanDrop() function but I can't find how to know when the DestinationSlot changes his parent node

Any help will be appreciated
Thanks in advance

 

Polya
Telerik team
 answered on 29 Mar 2017
1 answer
964 views

Hi Telerik,

I know binding the password should not be done due to the password being in the RAM is bad practice.

Now everything I want is to let the database tell me if there even is a password (I'm NOT loading the password/password hash) so I can set the Variable I was planning on binding to some garbage text (eg. ********) so the user is visually informed there has been a password set before.

What is a way I can archive this?

BTW: What is best practice to use/get the actual password the user entered to store it? Your examples and documentation on this topic are - as often - paper thin.

Thanks a lot

Kalin
Telerik team
 answered on 29 Mar 2017
2 answers
105 views

Let's say I have a very large (millions of records) DB of cars but one of the column (colors) has only a couple of different choices (red, green, blue, black, white).

When I'm binding the DB to the GridView (using pagination because I can't load the whole table at once and data virtualization is performing poorly on this amount of data) and trying to filter by color every time I open the filter editor I'm sending a query to my DB asking for Top 1000 Distinct colors which is really slow.

Now my question is, can I have a predefined list of available colors to use for my Filter Editor? Just create a List<String> and feed it to the editor?

Thank you.

Alex
Top achievements
Rank 1
 answered on 28 Mar 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?