Telerik Forums
UI for WPF Forum
3 answers
144 views

I have a an MVVM app where a page has a gridview bound to an entitiyframeworkdatasource.  The data loads as soon as the page loads and takes a while... so it blocks the UI thread.  Is there a way to prevent this?  I tried using another thread but couldn't get it to work right.

 

Also, how would I go about saving and undoing changes?  I created a button to save where I just call SaveChanges on the context.. and that works... But if I revert all changed entities in the context, the grid doesn't update the rows.

Stefan
Telerik team
 answered on 16 Jun 2015
2 answers
194 views

Are the 3d charting features depreciated?

 http://docs.telerik.com/devtools/wpf/controls/radchart/features/chart-types/3D-charts

 

The above link is all the documentation I can find for 3d charting features. 

 

Thanks

Bart

Bartley
Top achievements
Rank 1
Iron
 answered on 16 Jun 2015
0 answers
130 views

Hi guys,

 we're using RadGrid with EntityCollection bounded ItemsSource.

One column of the grid is bound to a child entity of that collection. I am getting an error, while click on the header of that column (sorting).

Is there a workaround?

Der Typ "KlientBankEntityCollection" besitzt keine Eigenschaft mit dem Namen "Bank.BankName", weshalb die Datensammlung nicht sortiert werden kann. in PresentationFramework (type xyz has no property named xyz2, so data can not be sorted)

bei System.Windows.Data.BindingListCollectionView.ConvertSortDescriptionCollection(SortDescriptionCollection sorts) 
bei System.Windows.Data.BindingListCollectionView.RefreshOverride() 
bei System.Windows.Data.CollectionView.RefreshInternal() 
bei System.Windows.Data.CollectionView.RefreshOrDefer() 
bei System.Windows.Data.BindingListCollectionView.SortDescriptionsChanged(Object sender, NotifyCollectionChangedEventArgs e) 
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) 
bei System.ComponentModel.SortDescriptionCollection.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index) 
bei System.ComponentModel.SortDescriptionCollection.InsertItem(Int32 index, SortDescription item) 
bei System.Windows.Data.BindingListCollectionView.BindingListSortDescriptionCollection.InsertItem(Int32 index, SortDescription item) 
bei System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item) 
bei System.Collections.ObjectModel.Collection`1.System.Collections.IList.Insert(Int32 index, Object value) 
bei Telerik.Windows.Data.CollectionHelper.Insert(IList target, IEnumerable newItems, Int32 startingIndex, IEqualityComparer itemComparer) 
bei Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args) 
bei Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args) 
bei Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) 
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) 
bei System.ComponentModel.SortDescriptionCollection.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index) 
bei System.ComponentModel.SortDescriptionCollection.InsertItem(Int32 index, SortDescription item) 
bei System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item) 
bei System.Collections.ObjectModel.Collection`1.System.Collections.IList.Insert(Int32 index, Object value) 
bei Telerik.Windows.Data.CollectionHelper.Insert(IList target, IEnumerable newItems, Int32 startingIndex, IEqualityComparer itemComparer) 
bei Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter) 
bei Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args) 
bei Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args) 
bei Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) 
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) 
bei System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) 
bei Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) 
bei Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications() 
bei Telerik.Windows.Controls.GridView.GridViewDataControl.PerformSorting(GridViewSortingEventArgs sortingArgs) 
bei Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass9b.b__9a() 
bei Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action) 
bei Telerik.Windows.Controls.GridView.GridViewDataControl.Sort(GridViewColumn column, Boolean appendToExisting) 
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.RequestSort(Boolean appendToExisting) 
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.PerformUserSort() 
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnMouseLeftButtonUp(MouseButtonEventArgs e) 
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) 
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) 
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) 
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) 
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) 
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) 
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) 
bei System.Windows.Input.InputManager.ProcessStagingArea() 
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) 
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) 
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

 

Thanks,

 

David

David
Top achievements
Rank 1
 asked on 16 Jun 2015
3 answers
348 views

Hi

I'm trying to create a custom shape container by restyling RadDiagramContainerShape, but I'm running into a few problems relating to layout. It appears that RadDiagramContainerShape forces a specific padding between the edge and the children and moves the container if the children touch the border. It also resizes to accommodate the children.

Is there any way to hide the header, force it to not resize and allow the children to be positioned right up against the edges?

I'm trying to create a UI design tool and need a container that will allow the contained children to be position anywhere in the container.

Thanks

Martin Ivanov
Telerik team
 answered on 16 Jun 2015
3 answers
424 views

Hello,

I would like to prevent user from using select all Ctrl+A.

I tryed to ovveride this behavior through command binding but it didn't work 

 Thank you .

 

 

Dimitrina
Telerik team
 answered on 16 Jun 2015
1 answer
141 views

I just upgraded to 2015.1.608.45 and I'm seeing tons of "errors" when a xaml file is opened.  These are not real errors because I can compile and run the code.  But it slows down development tremendously because the time it takes to save change to xaml is enough to make me want to take a nap!

 

What can I do to take care of this?

Petya
Telerik team
 answered on 16 Jun 2015
5 answers
296 views
Hi 
I am using the Telerik UI for WPF controls in a class library project that will be loaded into a 3rd party application. I want to protect the Telerik controls but I have no App.XAML file in which to put the Telerik.Windows.Controls.Key entry.

Is there another way to achieve the same?


Also, just to clarify, does my project have to be rebuilt using the new references to the protected Telerik assmblies?  


Thanks
Craig
Craig
Top achievements
Rank 1
 answered on 16 Jun 2015
2 answers
313 views

Hello,

I have two questions about the RadDatePicker.

I have a requirement that the enter-key should be used to select the date and move the focus from the DatePicker to the next control.

At the moment when I hit enter when a date is selected the calendar will close and the focus goes back to the textbox.

How can I move the focus to the next control immediately after I select the date, so with one-enter press the date is selected and focus moves to the next control?

I tried to handle the KeyDown event and the DropDownClosed event, in the event handler I call MoveFocus to the next field, but in both cases the focus remains in the DatePicker?

 My second question, whats the best way to change the size of the calendar, I want it to have a bigger size and bigger font (wider then the DatePicker textbox to which it belongs). How can I accomplish this, without changing the width of the textbox?

Regards,

Marcel

 

Marcel
Top achievements
Rank 1
 answered on 16 Jun 2015
2 answers
521 views

Hi, 

 I added couple expanders inside a stackPanel. But my stackPanel takes up full height into consideration, irrespective of Expander's state. Kindly help me figure out what I missed on Expander's setting.

<ScrollViewer Grid.Row="1" Panel.ZIndex="5">
    <Grid x:Name="MainArea" VerticalAlignment="Top">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <StackPanel CanVerticallyScroll="True" ScrollViewer.VerticalScrollBarVisibility="Auto">
            <telerik:RadExpander x:Name="ReportSection" Height="120" Margin="10,10,10,10" VerticalAlignment="Top" FontFamily="Trebuchet MS" Foreground="#FF0081A7" Header="Report Section Name" BorderBrush="#FF0081A7" BorderThickness="1">
                <telerik:RadExpander.Content>
                    <StackPanel>
                        <CheckBox x:Name="AddToReport" Content="ADD TO REPORT" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" Height="30" VerticalContentAlignment="Center" BorderBrush="#FF0081A7" Foreground="#FF0081A7" IsChecked="True" FontFamily="Trebuchet MS" />
                        <telerik:RadRichTextBox x:Name="radRichTextBox" DocumentInheritsDefaultStyleSettings="True" Height="auto" HorizontalScrollBarVisibility="Hidden" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" IsContextMenuEnabled="True" Margin="10" VerticalScrollBarVisibility="Auto" Width="Auto"/>
                    </StackPanel>
                </telerik:RadExpander.Content>
            </telerik:RadExpander>
            <telerik:RadExpander x:Name="ReportSection2" Height="120" Margin="10,10,10,10" VerticalAlignment="Top" FontFamily="Trebuchet MS" Foreground="#FF0081A7" Header="Report Section Name" BorderBrush="#FF0081A7" BorderThickness="1" VerticalContentAlignment="Top" HorizontalContentAlignment="Left" RenderTransformOrigin="0.493,0.856">
                <telerik:RadExpander.Content>
                    <StackPanel>
                        <CheckBox x:Name="AddToReport2" Content="ADD TO REPORT" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" Height="30" VerticalContentAlignment="Center" BorderBrush="#FF0081A7" Foreground="#FF0081A7" IsChecked="True" FontFamily="Trebuchet MS" />
                        <telerik:RadRichTextBox x:Name="radRichTextBox2" DocumentInheritsDefaultStyleSettings="True" Height="auto" HorizontalScrollBarVisibility="Hidden" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" IsContextMenuEnabled="True" Margin="10" VerticalScrollBarVisibility="Auto" Width="Auto"/>
                    </StackPanel>
                </telerik:RadExpander.Content>
            </telerik:RadExpander>
            <telerik:RadExpander x:Name="ReportSection3" Height="120" Margin="10,10,10,10" VerticalAlignment="Top" FontFamily="Trebuchet MS" Foreground="#FF0081A7" Header="Report Section Name" BorderBrush="#FF0081A7" BorderThickness="1">
                <telerik:RadExpander.Content>
                    <StackPanel>
                        <CheckBox x:Name="AddToReport3" Content="ADD TO REPORT" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" Height="30" VerticalContentAlignment="Center" BorderBrush="#FF0081A7" Foreground="#FF0081A7" IsChecked="True" FontFamily="Trebuchet MS" />
                        <telerik:RadRichTextBox x:Name="radRichTextBox3" DocumentInheritsDefaultStyleSettings="True" Height="auto" HorizontalScrollBarVisibility="Hidden" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" IsContextMenuEnabled="True" Margin="10" VerticalScrollBarVisibility="Auto" Width="Auto"/>
                    </StackPanel>
                </telerik:RadExpander.Content>
            </telerik:RadExpander>
            <telerik:RadExpander x:Name="ReportSection4" Height="120" Margin="10,10,10,10" VerticalAlignment="Top" FontFamily="Trebuchet MS" Foreground="#FF0081A7" Header="Report Section Name" BorderBrush="#FF0081A7" BorderThickness="1">
                <telerik:RadExpander.Content>
                    <StackPanel>
                        <CheckBox x:Name="AddToReport4" Content="ADD TO REPORT" HorizontalAlignment="Left" VerticalAlignment="Top" Width="150" Height="30" VerticalContentAlignment="Center" BorderBrush="#FF0081A7" Foreground="#FF0081A7" IsChecked="True" FontFamily="Trebuchet MS" />
                        <telerik:RadRichTextBox x:Name="radRichTextBox4" DocumentInheritsDefaultStyleSettings="True" Height="auto" HorizontalScrollBarVisibility="Hidden" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" IsContextMenuEnabled="True" Margin="10" VerticalScrollBarVisibility="Auto" Width="Auto"/>
                    </StackPanel>
                </telerik:RadExpander.Content>
            </telerik:RadExpander>
        </StackPanel>
    </Grid>
</ScrollViewer>

Avinash
Top achievements
Rank 1
 answered on 16 Jun 2015
10 answers
274 views

Is it possible to just scroll the time slots (vertical scrolling) and keep the Group headers stay.

 Thanks

vikas

 

Vikas
Top achievements
Rank 1
 answered on 15 Jun 2015
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?