Telerik Forums
UI for WPF Forum
0 answers
234 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
192 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
253 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
866 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
131 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
134 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
3 answers
154 views

I have a MVVM RadDiagram setup that binds data via SerializableGraphSourceBase<T, U>. In that setup:

  • When I change the Visibility property of any node object directly in RadDiagram.Items, the corresponding wrapper IShape object in RadDiagram.Shapes also updates its Visibility property. The node is visible/hidden/collapsed in on the graph's canvas.
  • When I change the Visibility property of any edge object in RadDiagram.Items, the corresponding IConnection wrapper in RadDiagram.Connections does not update its visibility property. The connection is always drawn on the canvas.

What to do?

Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2017
1 answer
1.2K+ views

I have a RadComboBox in WPF that is set to allow for multiple selection.  I can manually select multiple items and I can get the set of selected items but I can't figure out how to programmatically select multiple items.   The value in the RadComboBox is bound to a DataTable with the value and text both being linked to the same column.  Sample values for the data are (00, 01, 02, 03, 04, 05, 06, 07).  How can I take a comma delimited string (example: "01, 03, 06") and select the those items from that string in the RadComboBox?

<DataTemplate x:Key="MultipleSelectionBoxTemplateDept">
<TextBlock Text="{Binding ElementName=cmbDept, Path=SelectedItems.Count, StringFormat='Selected Items Count: {0}'}" Foreground="Red" FontWeight="Bold" />
</DataTemplate>

<telerik:RadComboBox Name="cmbDept" AllowMultipleSelection="True" IsEditable="False" Width="250" Height="25" Margin="0,0,0,0" VerticalAlignment="Top" ItemsSource="{Binding}" MultipleSelectionBoxTemplate="{StaticResource MultipleSelectionBoxTemplateDept}" OpenDropDownOnFocus="True"></telerik:RadComboBox>

 

C# code:

cmbDept.DataContext = dtDeptList.DefaultView;
cmbDept.DisplayMemberPath = dtDeptList.Columns[0].ToString();
cmbDept.SelectedValuePath = dtLeadList.Columns[0].ToString();

Richard
Top achievements
Rank 1
 answered on 24 May 2017
4 answers
121 views
Hello,

I have overriden  the EditRecurrenceTemplate in order to force that every appointment with recurrence must have a RecursUntil Date.

What I have done, in the RangeGroup, is removing the radiobuttons that I won't use:

"NoEndDate"

"EndAfter"

So I only have the "EndBy" radiobutton

If I'm editing a recurrence and I check (manually) the radiobutton, everything works fine. Exactly what I want is to extract :

Appointment.RecurrenceRule.Pattern.RecursUntil

but I don't want to check the radiobutton everytime, so I have tried changing the radiobutton for a label or setting the radiobutton IsChecked property to True, but with both options, I get:

Appointment.RecurrenceRule.Pattern.RecursUntil= null

How can i check that button programmatically?

Or maybe made it set but setting the Appointment.RecurrenceRule.Pattern.RecursUntil to the value?



Thanks in advance

Hello,

I have overriden  the EditRecurrenceTemplate in order to force that every appointment with recurrence must have a RecursUntil Date.

What I have done, in the RangeGroup, is removing the radiobuttons, so I won't use:

"NoEndDate"

"EndAfter"

 

So I only have the "EndBy" radiobutton

 

If I'm editing a recurrence and I check (manually) the radiobutton, everything works fine. Exactly what I want is to extract :

Appointment.RecurrenceRule.Pattern.RecursUntil

but I don't want to check the radiobutton everytime, so I have tried changing the radiobutton for a label or setting the radiobutton IsChecked property to True, but with both options, I get:

Appointment.RecurrenceRule.Pattern.RecursUntil= null

 

How can i check that button programmatically?

Or maybe made it set but setting the Appointment.RecurrenceRule.Pattern.RecursUntil to the value?

 

Thanks in advance

 

 

 

 

Jose
Top achievements
Rank 1
 answered on 24 May 2017
1 answer
159 views

Using MVVM I have a property to hold the value to be displayed in the ColumnGroup Text property

This fails to display the required text.

<telerik:GridViewColumnGroup  Name="ThisYearA" Header="{Binding Path=DataContext.lThisYearActual, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type telerik:RadGridView}}}" />

Changing the x:Type to the Page also fails.

I have also bound the text to a hidden textblock, this also fails to display in the ColumnGroup

<telerik:GridViewColumnGroup  Name="ThisYearF" Binding ElementName=txtLastYearActual}" />

The textblock txtLastYearActual correctly displays the content.

 

Mark
Top achievements
Rank 1
 answered on 24 May 2017
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?