using sl5 & IG 12.2
I have a Dock manager with a Content Section and 1 Pane, here is my pane
<ig:ContentPane Header="Test Filters" Width="310" IsFloating="False" IsPinned="True" IsMaximized="False" CloseButtonVisibility="Collapsed" WindowPositionMenuVisibility="Collapsed">
when i un pin the pain and then re pin it , it fails and throws a scripting error
Line: 63Error: Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Controls.Grids.Primitives.RowsPanel.ResetRows(Boolean releaseAll) at Infragistics.Controls.Grids.Primitives.RowsPanel.<>c__DisplayClass2.<ResetRows>b__0()
if i hide (vis = collapsed) the xamgrid it works fine. i have other pages that have the multicolumnncombo in the pane and they work fine
Hi,
You mentioned a xamGrid that is on the pane. Can you give me more information about that control? How is the data being bound to the grid?
It might be helpful if you could give me the xaml for that control.
Have you had a chance to look into my request for additional information about the xamGrid that is in the pane.
I hadn’t heard back from you and I was wondering if you had questions.
Please let me know if I can be of any assistance.
here you go, pulled the col keys
<ig:XamDockManager x:Name="myDockManager"> <ig:XamDockManager.Content>
<ig:XamGrid x:Name="dgBCs" Grid.Row="1" AutoGenerateColumns="False"> <ig:XamGrid.Columns>
<ig:UnboundColumn Key="Select" HorizontalContentAlignment="Center" HeaderText="View BC" IsFixed="Left"> <ig:UnboundColumn.ItemTemplate> <DataTemplate> <Image x:Name="imgSel" Width="22" Height="22" Cursor="Hand" Source="{Binding Path=xxx.xxx, Source={StaticResource xxx}}" /> </DataTemplate> </ig:UnboundColumn.ItemTemplate> </ig:UnboundColumn>
<ig:TextColumn Key="Rank" HorizontalContentAlignment="Center" Width="80" />
<ig:TextColumn Key="xxx" HeaderText="xxx" Width="2*" /> <ig:TextColumn Key="xxx" HeaderText="CO#" Width="80" /> <ig:TextColumn Key="xxx" HeaderText="CC#" Width="80" /> <ig:TextColumn Key="xxx" HeaderText="City" Width="*" /> <ig:TextColumn Key="xxx" HeaderText="State" Width="80" />
<ig:TextColumn Key="xxx" HeaderText="xxx Score" Width="*" />
</ig:XamGrid.Columns>
<!--ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow" CellSelection="None" ColumnSelection="None" RowSelection="Single" /> </ig:XamGrid.SelectionSettings>-->
<ig:XamGrid.ColumnChooserSettings> <ig:ColumnChooserSettings AllowHiddenColumnIndicator="True" AllowHideColumnIcon="True" />
</ig:XamGrid.ColumnChooserSettings>
<!-- In this case multiple data rows can be selected. --> <ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow" CellSelection="None" ColumnSelection="None" RowSelection="Multiple" /> </ig:XamGrid.SelectionSettings> <!-- Enable the copy clipboard operation for the first xamGrid and exclude the header text. --> <ig:XamGrid.ClipboardSettings> <ig:ClipboardSettings AllowCopy="True" CopyOptions="IncludeHeaders" CopyType="SelectedRows" /> </ig:XamGrid.ClipboardSettings>
</ig:XamGrid>
</ig:XamDockManager.Content>
<ig:XamDockManager.Panes>
<ig:ContentPane Header="Category Filters" PinButtonVisibility="Collapsed" Width="310" IsFloating="False" IsPinned="True" IsMaximized="False" CloseButtonVisibility="Collapsed" WindowPositionMenuVisibility="Collapsed">
<Grid Margin="5" VerticalAlignment="Top"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions>
<TextBlock Text="Select Category:" Grid.Row="0" Margin="3,3,3,5" />
<ig:XamGrid x:Name="dgCats" SelectedRowsCollectionChanged="dgCats_SelectedRowsCollectionChanged" RowHover="Row" Grid.Row="1" AutoGenerateColumns="False"> <ig:XamGrid.Columns>
<ig:TextColumn Key="xxx" TextWrapping="Wrap" HeaderText="Category" Width="*" />
<ig:TextColumn Key="xxx" HeaderText="Wght" HorizontalContentAlignment="Center" Width="50" />
<ig:TextColumn Key="xxx" HorizontalContentAlignment="Right" HeaderText="xxx" Width="80" FormatString="{}{0:0.00}"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock> <Run Text="Process" /> <LineBreak /> <Run Text="Risk Score" /> <LineBreak /> <Run Text="Avg" /> </TextBlock> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn>
<ig:TextColumn Key="xxx" Visibility="Collapsed" HorizontalContentAlignment="Center" HeaderText="Cnt BCs" Width="40"> <ig:TextColumn.HeaderTemplate> <DataTemplate> <TextBlock> <Run Text="Cnt" /> <LineBreak /> <Run Text="BCs" /> </TextBlock> </DataTemplate> </ig:TextColumn.HeaderTemplate> </ig:TextColumn>
<!-- In this case multiple data rows can be selected. --> <ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellClickAction="SelectRow" CellSelection="None" ColumnSelection="None" RowSelection="Single" /> </ig:XamGrid.SelectionSettings>
</Grid>
</ig:ContentPane>
</ig:XamDockManager.Panes>
</ig:XamDockManager>
looks like this issue is good with this version of the SR
12.2.20122.2228
Hello,
Were you able to resolve your issue?
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
i am currently running 12.2.20122.1001, i will update and report back
I created a sample based on the xaml you gave me. I set the Category Filters ContentPane's PinButtonVisibility to Visible.
When I run the sample I can unpin that content pane and repin it without getting an exception. Let me know if I'm missing some steps.
I tested using Silverlight 5, NetAdvantage for Silverlight 2012.2 assemblies, 12.2.20122.2053.
I'll attach my sample for you to run and see if it produces the exception in your environment. Perhaps I'm using a diferent service release of 2012.2. Let me know what you are using. If it isn't generating any exception for you, please modify it to more closely match your application, so that we can reproduce the exception. Then zip it up and re-attach it to the forum thread.
oh i collapsed this untill i could get a fix
PinButtonVisibility="Collapsed"
shoudl be visible