Telerik Forums
UI for WPF Forum
3 answers
178 views

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

Stefan
Telerik team
 answered on 23 Nov 2017
8 answers
252 views

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

Stefan
Telerik team
 answered on 23 Nov 2017
1 answer
132 views

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 Using

 

Regards
Dilyan Traykov
Telerik team
 answered on 23 Nov 2017
4 answers
187 views

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

Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 22 Nov 2017
1 answer
100 views

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 );
            }
Petar Mladenov
Telerik team
 answered on 22 Nov 2017
9 answers
271 views

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.

Stefan
Telerik team
 answered on 22 Nov 2017
7 answers
265 views

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?

 

 

Sia
Telerik team
 answered on 22 Nov 2017
7 answers
238 views
 In Visual Studio it's possible to open a "navigation window" by pressing Ctrl + tab. This window shows active tool windows and active files. Do you have anything similar in Telerik docking? What I need is a way to navigate between radpanes using the keyboard.

Regards
Arnstein Volden
Kalin
Telerik team
 answered on 22 Nov 2017
3 answers
607 views

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.

 

Martin Ivanov
Telerik team
 answered on 22 Nov 2017
3 answers
229 views
We're evaluating RadChart 2011-Q3. We like the tooltip concept, but it would be much more useful to us if we could somehow get both the Y axis and X axis value to display to the user. I can't seem to find a way to do this. Is it possible?

Thank you.
Martin Ivanov
Telerik team
 answered on 22 Nov 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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?