Hi,
I would like to use middle mouse to move viewport ?
Can you help me please ?
Thanks,
Nicolas
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
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!
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 Using
Regards
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.