Telerik Forums
UI for WPF Forum
1 answer
266 views

Hi,

we are using telerik-wpf controls for years now and are very happy, thanks so far. Now we are looking for a possibility to change
XAML Pages during runtime with an GUI Interfacec. We want to load the XAML page with its elements and display them. Some of
the elements should be protected. With drag & drop the user should be able to place a new textbox in the page an link this textbox
with a database-field.
After saving the user should only reopen the changed mask in the application and it should show the new field!

Is this possible with telerik controls in one way?

Thanks
Best Regards
RENE

Stefan
Telerik team
 answered on 24 Nov 2017
4 answers
426 views

Hi,

the last days, our customers suffer from following exception in our WPF/MVVM/PRISM/C# application. It is in German, but I give a translation for the important parts:

 

Source: PresentationFramework

HelpLink: null

Message: Beim Auswerten der Style-Eigenschaft für Element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0" wurde ein zyklischer Verweis gefunden. Translation: Cyclic reference found while evaluating the style property for element "Telerik.Windows.Controls.RadRibbonTab Header: Items.Count:0"

InnerException:  null

StackTrace:    bei System.Windows.FrameworkElement.UpdateStyleProperty()    

bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation)    

bei System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)    

bei System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)    

bei System.Windows.Media.Visual.RemoveVisualChild(Visual child)    

bei System.Windows.Media.VisualCollection.DisconnectChild(Int32 index)    

bei System.Windows.Media.VisualCollection.Clear()    

bei System.Windows.Controls.UIElementCollection.ClearInternal()    

bei System.Windows.Controls.Panel.ClearChildren()    

bei System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)    

bei System.Windows.Controls.ItemContainerGenerator.OnRefresh()    

bei System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)    

bei System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)    

bei System.Windows.WeakEventManager.D

 

The exception appears when I open the application, don't use it for at least one minute and then open a new dialog of the application. The dialog contains a RadRibbon usercontrol. Sometimes the exception occurs when I don't wait a minute, but it appears more reliable if I do.

 

It does not appear when I debug the application. However, If I use the release mode in Visual Studio 2015 and start the application without debugging, I can reproduce the exception.

Since I cannot debug the application for this issue, I only hope for a flash of inspiration on how I could further approach this issue. If you need further information, please tell me.

Thank you!

 

 

Michael
Top achievements
Rank 1
 answered on 24 Nov 2017
3 answers
141 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
225 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
106 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
160 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
Veteran
 answered on 22 Nov 2017
1 answer
80 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
229 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
224 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
216 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
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?