Telerik Forums
UI for WPF Forum
3 answers
134 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
157 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
41 views
'System.Windows.Documents.Hyperlink' is not a Visual or Visual3D.
Petar Mladenov
Telerik team
 answered on 06 Jul 2011
2 answers
316 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
204 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
192 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
1 answer
105 views
Hi..
Can you tell me what is wrong with this.. and how I can show the busy indicator when loading map data.. thanks

 

 

private void LoadData()

 

{

 

 

this.radBusy.IsBusy = true;

 

 

 


DataCRMDataContext
dc = new DataCRMDataContext();

 

 

 


var
query = from i in dc.VACTIVEREPs

 

 

 

where i.RepID > 0

 

 

 

select i;

 

 

 

List<CRM_GIS.VACTIVEREP> lstVActiveReps = query.ToList();

 

 

 

 

foreach (VACTIVEREP Rep in lstVActiveReps)

 

{

 

 

var pushpin = new Pushpin();

 

pushpin.Background = System.Windows.Media.

 

Brushes.Red;

 

pushpin.ToolTip = Rep.LastName +

 

", " + Rep.FirstName + " " + Rep.RepNo;

 

 

 

 

MapLayer.SetLocation(pushpin, new Location(Convert.ToDouble(Rep.lat), Convert.ToDouble(Rep.lng)));

 

pushpin.MouseDoubleClick +=

 

new MouseButtonEventHandler(pushpin_MouseDoubleClick);

 

pushpin.MouseDown +=

 

new MouseButtonEventHandler(pushpin_MouseDown);

 

 

 

 

this.informationLayer.Items.Add(pushpin);

 

}

 

 

this.radBusy.IsBusy = false;

 

}

Konstantina
Telerik team
 answered on 06 Jul 2011
1 answer
102 views
Hello,

Is it possible to highlight the current date in timelineview like in the scheduler ?

Regards
Rosi
Telerik team
 answered on 06 Jul 2011
4 answers
454 views
Hello,

I am new to the RadMap and GeoCoding in general and have a question. 

The first version of this application will be a thin WPF client, and in this version it will show a map with a route drawn on it.  Is it possible to show the current location (where the app is running) on the RadMap by using the Internet connection the host computer is using?

Any suggestions would be great.

Thanks!

Reid
Reid
Top achievements
Rank 2
 answered on 06 Jul 2011
9 answers
167 views
Hi,

i have this xml File:

<?xml version="1.0" encoding="utf-8" ?>
<MODULE>
    <Content>
        <ContentItems>
            <ContentItem>
                <ContentCategoryName>Mandanten</ContentCategoryName>
                <Attributes>
                    <Attribute AttributeGroup="Mandant">
                        <ContentAttribute AttributeName="Name">ERP</ContentAttribute>
                        <ContentAttribute AttributeName="Host">okljkj</ContentAttribute>
                        <ContentAttribute AttributeName="Port">6550</ContentAttribute>
                        <ContentAttribute AttributeName="mandant">eks</ContentAttribute>
                        <ContentAttribute AttributeName="pw">lolo</ContentAttribute>
                    </Attribute>
                </Attributes>
            </ContentItem>
            <ContentItem>
                <ContentCategoryName>Mandanten</ContentCategoryName>
                <Attributes>
                    <Attribute AttributeGroup="Mandant">
                        <ContentAttribute AttributeName="Name">DEMO</ContentAttribute>
                        <ContentAttribute AttributeName="Host">jhkhjk</ContentAttribute>
                        <ContentAttribute AttributeName="Port">6551</ContentAttribute>
                        <ContentAttribute AttributeName="mandant">demo</ContentAttribute>
                        <ContentAttribute AttributeName="pw">lolo</ContentAttribute>
                    </Attribute>
                </Attributes>
            </ContentItem>
        </ContentItems>
    </Content>
</MODULE>

and i don't now how to bind this File to an Combobox: How must the XMLDataProvider and the ComboboxItem look like?

Thanks for helping me.
Best Regrads
Rene
Hristo
Telerik team
 answered on 06 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?