Telerik Forums
UI for WPF Forum
2 answers
835 views

Hello Telerik,

 

I am implementing a feature which consists of a list of user controls that can be dragged to dock panels.

however, as you can see in the attached picture, there is this red "not allowed"-like icon showing, although the functionality works fine.

I just need to remove that icon. is there a way to do so?

 

Thank you

Jacob
Top achievements
Rank 1
 answered on 26 May 2017
1 answer
513 views

Hello Telerik,

I came across a scenario of which i need to change the mouse cursor (from pointer to hand) if the user hovers a specific type of cell.

After browsing your forums, I found the following solution:

 

GridControl.AddHandler(MouseMoveEvent, new MouseEventHandler(OnMouseMove), true);
private void OnMouseMove(object sender, MouseEventArgs e)
{
    var cell = (e.OriginalSource as FrameworkElement).ParentOfType<GridViewCell>();
    if (cell != null)
    {
        switch (cell.Column.UniqueName)
        {
            case "UserName":
                Mouse.OverrideCursor = Cursors.Hand;
                break;
            default:
                Mouse.OverrideCursor = Cursors.Arrow;
                break;
        }
    }
    else
    {
        Mouse.OverrideCursor = Cursors.Arrow;
    }
}

 

 

It works, however, the cursor will remain a pointer when trying to resize the column widths.

is there an easy way to prevent this? to have the user being able to resize the columns once again?

 

Thank you

Jacob
Top achievements
Rank 1
 answered on 26 May 2017
1 answer
233 views

I am using a GridView.

I am trying to tab from one control to the next, but I am forced to hit 'tab' twice.

First click of tab key gives the GridViewDataColumn focus, then the next gives the focus to the control in the GridViewDataColumn.

How do I avoid this and just let each tab go from one textbox to the next (avoid hitting tab twice by also giving focus to the cell)?

GridViewDataColumn.TabStopMode="Skip" does nothing!

GridViewDataColumn.Focusable="False" also does nothing!

 

 

 

Martin Ivanov
Telerik team
 answered on 26 May 2017
3 answers
97 views

Hey, Guys.

While using Raddiagram, I wonder how can if user draws his connector with shift key pressed, then drawed connector would be orthogonal. Without setting RouteConnection property true.

(while ActiveTool = MouseTool.ConnectorTool)

 

Is any approaching to get this feature?

 

Thanks. 

Petar Mladenov
Telerik team
 answered on 26 May 2017
0 answers
187 views
My question concerns the functionality of a WPF telerk tabcontrol.
I need to create the following functionality when a tabitem (tab) from a tabcontrol is involved in a drag and drop operation. The functionality is as follows.  If the dragged tabitem’s drop location is within the area of a tab located on the same tabcontrol where dragged tabitem originated from , then the dragged tabitem will be position as a tab in the tabcontrol where the drop location is. If the drop location is anywhere else on the screen a new process will started, and this new process will be display a tabcontrol populated with the dragged tabitem as a tab.  
I was told  a Telerik WPF tabcontrol already has the ability to position the dragged tabitem in the same tabcontrol it originated from if the drop location is with in the area of one of the tabcontrol’s tabs. I also was informed that the Devexpress WPF has the ability to create a new tabcontrol populated with the dragged tabitem as a tab in the same application if the drop location is elsewhere.
If this is all true does Telerik have available any sample project code that accomplished this I could download, and run in Visual Studio?
If so then I am looking for an easy way to how to override the original drop operation handler in the sample code above, and change the functionality if the drop location is in the elsewhere area mentioned above. So the override handler would let the original drop handler be called if the drop location is on one of the tabs of the tabcontrol that the dragged tabitem originated from.  If the drop location is anywhere else on the screen then the original drop handler would not be called ,and I would add code to perform the functionality I am seeking.
I am sure other people have ask the same type of question of overriding the drop handler. So is there any source code available that shows the adding of a route drag event handler  that acts the override event handler( the handler which gets called before the original one?).
steven
Top achievements
Rank 1
 asked on 25 May 2017
3 answers
163 views
Is there any way to set the text direction of a table cell so it is rotated 90 degrees?

Thanks,
Shawn
Boby
Telerik team
 answered on 25 May 2017
1 answer
226 views
I know that the ComboBoxColumn doesn't expose a SelectionChanged event but I want to be able to handle this type of behaviour. I have a ComboBoxColumn with its ItemsSource bound to an OberservableCollection and its DataMemberBinding set to a property of the same type. When I change its selection I want to take an action; specifically, I want to set the value of another property to a value I determine in my . I want to use MVVM, so I don't want to add a handler to the grid  in .
Martin Ivanov
Telerik team
 answered on 25 May 2017
11 answers
776 views
Hi,

I have a RadTreeView which allows drag and drop between nodes. There are different kind of nodes (classes which implement RadTreeViewItem) and I would like to set for each item class if they can be drag and if they can accept a drop (depending on the drag item source class).
I found the "AllowDrop" propriety in RadTreeViewItem class, but I cannot find anything like "AllowDrag" or "IsDraggable".

How should I implement this?

Petar Mladenov
Telerik team
 answered on 25 May 2017
1 answer
98 views

Hi,

I have just upgraded to 2017R2 and have moved the code to use the Bing Restful api for the maps.

However, when we calculate a route, we now have to handle two events, the CalculateRouteCompleted and the CalculateRouteError.  The problem is that when we get the completed event we have access to the UserData that I sent with the async request (I can then tie the response back to the original request), but with the error event we just get the exception that is returned from Bing (a less than helpful bad request).  Is there a reason why we don't also get the UserData back?

My scenario is that I asynchronously send off searches to create a drive zone around a point.  Before, I would send off say 16 requests and even if they are bad requests (e.g. they are in the sea), I would get the result back and I could then adjust the search.

So in summary, how can I link a CalculateRouteError event back to the request that caused it?

Petar Mladenov
Telerik team
 answered on 25 May 2017
1 answer
107 views
I have used Address class however it is not available in R2 2017. Could you please tell me what is the alternative way to use address class in R2 2017?
Petar Mladenov
Telerik team
 answered on 25 May 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?