Hi all,
we are trying out Telerik drag and drop. We want to drag between 2x itemslist and a DockPanel. To be able to use Telerik drag visualizer we converted both the itemslist to a ListBox (not 100% what we wanted though, because listbox looks different).
This way we get a 'shadow' of the item we drag during the dragging. And an arrow indicating we can move the item (or red circle if denied).
The problem now is we want to deny certain drops in the dockpanel based on the data in our viewmodel. How can we accomplish this?
I can catch the events of the dockpanel like OnElementDragEnter, but I cannot set the e.Effects property to none. Also I don't have options class in my e.data object (like in your treeview example).
Also tried to set the dockpanel.allowdrop to false during drag. That works, but then the next time the drag over event wont fire again :(.
(the way we did this before Telerik components was just set the DragDropEffects.Effects to DragDropEffects.None)
Thanks in advance
Hi,
I'm using the RadTimeLine control. I want to draw a connection between two timeline item, just like the following figure shows. Is there any way to do that?
I know it's easy to do with RadGanttView. But the RadTimeLine is more flexible than RadGanttView. For some reason this must be implemented in the RadTimeLine.
Hope for reply!
Best regards,
Jie
Hi,
I manage to export a GridView into an Excel file (.xlsx).
But when I am trying to insert an excel graphic with the exported data, all the predefined styles are empty
If I start from a blank new excel file, typing values and inserting a graphic, it is ok
Please look attachments to see what I mean.
Is it an Excel template issue ?
My code looks like :
Dim dialog = New SaveFileDialog() With { .DefaultExt = "xlsx", .Filter = [String].Format("(*.{0})|*.{1}", "xlsx", "xlsx") }dialog.ShowDialog()Dim exportOptions = New GridViewDocumentExportOptions() With { .AutoFitColumnsWidth = True, .ExportDefaultStyles = False, .ShowColumnFooters = grid.ShowColumnFooters, .ShowColumnHeaders = grid.ShowColumnHeaders, .ShowGroupFooters = grid.ShowGroupFooters }Using stream = dialog.OpenFile() grid.ExportToXlsx(stream, exportOptions)End UsingRegards
Hi,
I am trying to show the number of appointments for any given day on the month view using the MonthItemTemplate. The schedule contains multiple resources.
The suggestion at https://www.telerik.com/forums/number-of-appointments-per-day does not work because the TimeRulerItemProxy I can pass to a MultiBindingConverter does not have any idea of the resource it belongs to.
Is there a way to get the resource so that I can tally the appointments for the resource on any given day?
Regards
Anthony
I'm using the UriImageProvider to add multiple tiles I've generated using GDAL to the map control. Each image covers exactly one degree of latitude and longitude.
When I loop through my image files to add them, the resulting tiles don't seem to be added in the correct place. Attached is a screen shot and here is my code to add the images.
var files = Directory.GetFiles( $"{Directory.GetCurrentDirectory()}\\Assets\\Terrain\\", "*_comp.tif" ); foreach( var f in files ) { Location bottomLeftCorner = ParseHgtFileCoordinates( f ); Location topLeft = new Location( bottomLeftCorner.Latitude + 1, bottomLeftCorner.Longitude ); Location bottomRight = new Location( bottomLeftCorner.Latitude, bottomLeftCorner.Longitude + 1 ); LocationRect bounds = new LocationRect( topLeft, bottomRight ); UriImageProvider p = new UriImageProvider(); p.GeoBounds = bounds; p.Uri = new Uri( f ); map.Providers.Add( p ); }
Hi,
I have a RadTreeListView that is using IsExpandableBinding. I need to prevent certain items from being expandable based on configurations else where in the application. I am binding IsExpandableBinding to a property that has an OnPropertyChanged call. It is working except that I need to click somewhere on the TreeListView for the change to occur. The same property is used to trigger changes to the font of the item's textbox in the TreeListView and that works fine. As soon as the property changes to false, the text color changes to gray and the text is italicized, but the expansion icon is still present. As soon as I click somewhere on the TreeListView, the expansion icon disappears. Why does the TreeListView require user interaction to be updated with the binding change? How can I fix this?
This is the first line of the TreeListView:
<telerik:RadTreeListView x:Name="TreeView" SelectionUnit="FullRow" AutoGenerateColumns="False" DataLoadMode="Synchronous" EnableRowVirtualization="False" EnableColumnVirtualization="False" IsExpandableBinding="{Binding IsExpandable}">
This is the IsExpandable property:
public virtual bool IsExpandable
{
get
{
return _isExpandable && !(_node is LeafNode);
}
set
{
if (_isExpandable != value)
{
_isExpandable = value;
OnPropertyChanged("IsExpandable");
}
}
}
Thanks.
Hi
I'm testing your product and I'm like it so far but there are some things I can not comprehend.
I'm only using RadDocking by now and when I set the theme the behavior of my CustomListBox, which has nothing to do with your controls, changes.
To be precise the wrapping doesn't work anymore.
The pictures are attached below.
How can I avoid such interactions?
My XAML is as follows
<telerik:RadCartesianChart Name="chart" Palette="Ground" Canvas.Left="20" Width=" 1250" Canvas.Top="130" Height=" 550" Background="White" >
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis HorizontalAlignment="Right" />
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
And in the code behind I am adding the series dynamically
Dim style As New Style(GetType(Border))
style.Setters.Add(New Setter(Border.BackgroundProperty, New SolidColorBrush(Colors.LightGray)))
For i As Integer = 0 To ChartDataModel.Data(0).Values.Length - 1
Dim barSeries As New Telerik.Windows.Controls.ChartView.BarSeries()
barSeries.CategoryBinding = New PropertyNameDataPointBinding() With {.PropertyName = "Title"}
Dim k As Integer = i
barSeries.ValueBinding = New GenericDataPointBinding(Of OC_ChartData, Double) With {.ValueSelector = Function(Selector) Selector.Values(k)}
barSeries.SetBinding(ChartSeries.ItemsSourceProperty, New Binding("Data"))
barSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack
barSeries.StackGroupKey = "Group" & i.ToString
'If i = 0 Then barSeries.DefaultVisualStyle = style
chart.Series.Add(barSeries)
Next
chart.DataContext = ChartDataModel
1. The color of Series 0 is not set. Can you point what is going wrong
2. I want to have the tool tip to contain the actual Y value. How can I get the Y value of a particular bar.

