Telerik Forums
UI for WPF Forum
0 answers
62 views
Hello all,
I have a problem using RadGridView as i want a very customized behavior.
Here is the structure i have. I have a RadGridView that is bound to an ObservableCollection.This collection holds objects that implement INotifyPropertyChanged in order for the UI to be notified whenever a property value changes in any object.
What i want to do is whenever any property value changes i would do some checking and accordingly change the RadGridView cell background color for a couple of seconds then set it back again to it's original color (flashing effect).
The main problem is that I cannot access the RadGridView cells from the code behind.
I tried some trials but i had a problem in each of them..

I made my own style selector where i made my checking a return the desired style, and assigned this style selector column CellStyleSelector property (Xaml). But then, i am able to change the cell background color but cannot set it back to it's original.

I placed my whole logic in a ListBox and then place it inside the RadGridView as a DataTemplate in GridViewColumn. But again i'm not able to access the list box from the code behind.

I feel like I'm close to the solution but there must be something missing.
Could you help me in that??

Thank you very much for your help in advance.
Ola
Top achievements
Rank 1
 asked on 07 Jul 2011
0 answers
143 views
Hello Telerik team,

Could you please let me know how can we instantiate the row indicator column of WPF telerik radgrid.
I need to add a context menu to the row indicator column.


Thanks,
Regards,
Mausami
Mausami
Top achievements
Rank 1
 asked on 07 Jul 2011
1 answer
211 views
Hi,
I am usinf RadExpander control to expand and collapse the panel. i have added this expander control in canvas with height and width set to Auto. but on expand and collapse the height of that convas is not getting changed.

Could you please help me

Thanks,
Nikhil 
Petar Mladenov
Telerik team
 answered on 07 Jul 2011
1 answer
192 views
I want to turn off opacity animation when I set IsBusy =  true;
How to achieve this?
The problem is that I don't use  separate thread with my busyIndicator, and I don't want to use another threads.
When I put:
IsBusy =  true;
//long process here
IsBusy =  false;

The busy indicator don't appear. I think it may be caused by opacity animation.


Konstantina
Telerik team
 answered on 07 Jul 2011
3 answers
141 views
Hello,

I've recently encountered a problem with the GridView where I get an InvalidOperationException when the grid is refreshing after changing the number of child elements on an item that already has elements and is expanded and visible within the GridView.  It doesn't matter whether I'm increasing or decreasing the number of child elements. My stack trace is as follows :

>   Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.StartAt(System.Windows.Controls.Primitives.GeneratorPosition position, System.Windows.Controls.Primitives.GeneratorDirection direction, bool allowStartAtRealizedItem) + 0x5d bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(System.Windows.Size constraint) + 0xdc7 bytes
    PresentationFramework.dll!System.Windows.FrameworkElement.MeasureCore(System.Windows.Size availableSize) + 0x1d6 bytes 
    PresentationCore.dll!System.Windows.UIElement.Measure(System.Windows.Size availableSize) + 0x207 bytes 
    PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() + 0x1d9 bytes  
    PresentationCore.dll!System.Windows.UIElement.UpdateLayout() + 0x16 bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.RadTreeListView.RestoreFocusedCell() + 0x53 bytes   
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.TreeListView.TreeListViewRow.OnIsExpandedChanged(bool oldValue, bool newValue) + 0xca bytes 
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.OnIsExpandedChanged(System.Windows.DependencyObject dependencyObject, System.Windows.DependencyPropertyChangedEventArgs e) + 0x129 bytes   
    WindowsBase.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x4c bytes
    PresentationFramework.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x50 bytes  
    WindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args) + 0x3c bytes  
    WindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType) + 0x723 bytes  
    WindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType, bool isInternal) + 0x2eb bytes 
    WindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x35 bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewRow.IsExpanded.set(bool value) + 0x4d bytes
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.RadTreeListView.PrepareContainerForItemOverride(System.Windows.DependencyObject element, object item) + 0x148 bytes 
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.PrepareItemContainer(System.Windows.DependencyObject container, object item) + 0x8c bytes
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(System.Windows.DependencyObject container) + 0x52 bytes 
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertContainer(int childIndex, System.Windows.UIElement container, bool isRecycled) + 0x191 bytes   
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.InsertNewContainer(int childIndex, System.Windows.UIElement container) + 0x2b bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.AddContainerFromGenerator(int childIndex, System.Windows.UIElement child, bool newlyRealized) + 0xb1 bytes   
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.BringIndexIntoView(int index) + 0x17f bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollIntoViewRecursive(System.Windows.FrameworkElement element, System.Collections.Generic.Stack<object> itemStack, System.Action<System.Windows.FrameworkElement> scrollFinishedCallback) + 0x2b5 bytes  
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollRowIntoViewInternal(object dataItem, System.Action<System.Windows.FrameworkElement> scrollFinishedCallback) + 0x43 bytes 
    Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ScrollIntoViewAsync.AnonymousMethod__4f() + 0x3b bytes 
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0xba bytes
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes   
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0x8d bytes 
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes
    mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes
    [Native to Managed Transition] 
    [Managed to Native Transition] 
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6a bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0x7e bytes   
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes   
    WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x68 bytes 
    WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x15e bytes   
    WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x63 bytes
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0xbe bytes   
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes   
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x42 bytes   
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes   
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0x104 bytes   


Has anybody run into any similar sounding problems with the GridView ?

Edit: Upon further investigation, I've found that this problem arises in Extended selection mode, Single works just fine. For a bit of clarification, the object with the collection of child elements that's changing must be expanded in the GridView.
Vlad
Telerik team
 answered on 07 Jul 2011
2 answers
172 views
I have a problem with canceling edit mode in teleriks RadGridView. After inovking CancelRowEdit command for my radgridview edit mode stops, but item in row does not return to previous values...

Thanks in advance
Mehri
Mehri
Top achievements
Rank 1
 answered on 07 Jul 2011
1 answer
47 views
'System.Windows.Documents.Hyperlink' is not a Visual or Visual3D.
Petar Mladenov
Telerik team
 answered on 06 Jul 2011
2 answers
337 views
Hi,

I have a problem using the control RadTabControl. In my case, a gridview is in one of the tabitem.
When we navigate in the cells of the gridview with the keyboard arrows and we arrived at the last cell, another press on the right key change the active tab of the tabcontrol (instead of doing nothing because it's the last cell).

With the source code below, you could reproduce the bug with the following steps :
1. Go to the tab "Tab2" containing the Gridview
2. Select the last column of a row
3. Press right arrows key
4. You could now navigate throught the tabs using arrows :(

How can I prevent this?

The xaml code used is quite simple :
<Window x:Class="TestTabs.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" Title="GlobalFund" Height="1024" Width="1280"
        WindowState="Maximized" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <ResourceDictionary Source="MainWindowResources.xaml" />
    </Window.Resources>
    <telerik:RadTabControl >
        <telerik:RadTabItem Header="Tab1" />
        <telerik:RadTabItem Header="Tab2" >
            <Controls:RadGridView x:Name="SelectedAttributes" AutoGenerateColumns="True" RowIndicatorVisibility="Collapsed">
            </Controls:RadGridView>
        </telerik:RadTabItem>
        <telerik:RadTabItem Header="Tab3">
        </telerik:RadTabItem>
        <telerik:RadTabItem Header="Tab4" />
    </telerik:RadTabControl>
</Window>


I would like to join you the zipped solution but I don't know why but there is no "Attach your file" link in the wpf forum (but it is in silverlight one) :(

An advice?

Thank you for your help....
Philippe
Top achievements
Rank 1
 answered on 06 Jul 2011
2 answers
220 views
Hello, I have some RadPanes floating. 
I try this:


oRadPane.IsSelected=true; 
  
oRadPane.Focus(); 
 
In order that some RadPane got focus and see over all.

If yoy click in header of Pane, this got the focus and see over all, but with code, not.

Any way to set the "z-index" of floating panes?

In this sample
http://www.telerik.com/ClientsFiles/193221_docking-isselected.zip
 
Is you put both RadPane Floating, and click on "Click Me" button see the problem. The same Radpane is over the other

Thanks in advance
Charlie
Top achievements
Rank 2
 answered on 06 Jul 2011
4 answers
214 views
Dear Telerik Team,
i have a small problem.

I have a ScheduleView, which has just one active view definition: Timeline.

The Timeline everytime shows one month (31 days).

When a user use the included datepicker in the header of the scheduleview, the visible range of the scheduleview changes
just for 7 days (when a user clicks next or forward) every time (eg.: when i start with 1. July - 31. July and i cklick forward, then the visible range will be 8.July - 9. August). 

My problem is, the visible range, have to change for a complete month (eg. when i start with 1. July - 31. July and i cklick forward, then the visible range has to be 1.August - 31. August)

Can you please tell me how i can do this ?
Markus
Top achievements
Rank 1
 answered on 06 Jul 2011
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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?