This question is locked. New answers and comments are not allowed.
Sergey Arutchev
Top achievements
Rank 1
Sergey Arutchev
asked on 29 Sep 2009, 03:43 PM
Inside of a stack panel, I have a grid with "CanUserInsertRows" set to true. The grid is bound to a collection of about 15 items. When a new row is inserted (either by the Insert key or programatically calling FindNewRow().BeginEdit() ), I am seeing strange behavior. Basically, the grid collapses vertically so that the 15 rows are hidden, with only the insertion row visible. The vertical scrollbars are also visible, and as I click the "Up" scroll button, one row at a time becomes visible and the grid grows vertically. The only way that I have found to get around this problem is by setting a fixed height to the grid control. I am using internal build v2009.2.911.1030 -- please let me know if you need any more information to identify the issue.
5 Answers, 1 is accepted
0
Sergey Arutchev
Top achievements
Rank 1
answered on 30 Sep 2009, 02:41 PM
any update on this issue? Do you require more information, screenshots, etc? A response would be appreciated.
0
Hello Sergey Arutchev,
I've attached sample project with your case using 2009.2.911.1030 assemblies.
I cannot reproduce your issues. Could you send us project where we can see this behavior?
Best wishes,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I've attached sample project with your case using 2009.2.911.1030 assemblies.
I cannot reproduce your issues. Could you send us project where we can see this behavior?
Best wishes,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sergey Arutchev
Top achievements
Rank 1
answered on 30 Sep 2009, 04:29 PM
Below is a simple Silverlight page that demonstrates the problem. Playing around with it a bit more, I found that the problem occurs only when the "DataLoadMode" property is set to "Asynchronous"
XAML
-----------------------------------------------------------------------------------------------------
<navigation:Page x:Class="TelerikInsertProblem.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:gridview="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
Title="MainPage Page">
<Grid x:Name="LayoutRoot">
<StackPanel>
<gridview:RadGridView x:Name="MyGrid" ScrollMode="RealTime" ColumnsWidthMode="Fill"
UseAlternateRowStyle="True" IsReadOnly="False" CanUserInsertRows="True"
CanUserReorderColumns="True" CanUserResizeColumns="True" ShowGroupPanel="False"
CanUserSortColumns="True" DataLoadMode="Asynchronous" AutoGenerateColumns="False">
<gridview:RadGridView.Columns>
<gridview:GridViewDataColumn UniqueName="Id" DataMemberBinding="{Binding Id, Mode=OneWay}" HeaderText="ID" IsReadOnly="False"/>
<gridview:GridViewDataColumn UniqueName="Name" DataMemberBinding="{Binding Name, Mode=OneWay}" HeaderText="Name" IsReadOnly="False"/>
</gridview:RadGridView.Columns>
</gridview:RadGridView>
</StackPanel>
</Grid>
</navigation:Page>
CODE-BEHIND
--------------------------
namespace TelerikInsertProblem
{
public partial class MainPage : System.Windows.Controls.Page
{
public MainPage()
{
InitializeComponent();
var source = new System.Collections.Generic.List<MyType>();
for (int i = 0; i < 10; i++) { source.Add(new MyType(){ Id = "Id" + i.ToString(), Name = "Name" + i.ToString()}); }
this.MyGrid.ItemsSource = source;
}
}
public class MyType { public string Id { get; set; } public string Name { get; set; } }
}
XAML
-----------------------------------------------------------------------------------------------------
<navigation:Page x:Class="TelerikInsertProblem.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:gridview="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
Title="MainPage Page">
<Grid x:Name="LayoutRoot">
<StackPanel>
<gridview:RadGridView x:Name="MyGrid" ScrollMode="RealTime" ColumnsWidthMode="Fill"
UseAlternateRowStyle="True" IsReadOnly="False" CanUserInsertRows="True"
CanUserReorderColumns="True" CanUserResizeColumns="True" ShowGroupPanel="False"
CanUserSortColumns="True" DataLoadMode="Asynchronous" AutoGenerateColumns="False">
<gridview:RadGridView.Columns>
<gridview:GridViewDataColumn UniqueName="Id" DataMemberBinding="{Binding Id, Mode=OneWay}" HeaderText="ID" IsReadOnly="False"/>
<gridview:GridViewDataColumn UniqueName="Name" DataMemberBinding="{Binding Name, Mode=OneWay}" HeaderText="Name" IsReadOnly="False"/>
</gridview:RadGridView.Columns>
</gridview:RadGridView>
</StackPanel>
</Grid>
</navigation:Page>
CODE-BEHIND
--------------------------
namespace TelerikInsertProblem
{
public partial class MainPage : System.Windows.Controls.Page
{
public MainPage()
{
InitializeComponent();
var source = new System.Collections.Generic.List<MyType>();
for (int i = 0; i < 10; i++) { source.Add(new MyType(){ Id = "Id" + i.ToString(), Name = "Name" + i.ToString()}); }
this.MyGrid.ItemsSource = source;
}
}
public class MyType { public string Id { get; set; } public string Name { get; set; } }
}
0
Sergey Arutchev
Top achievements
Rank 1
answered on 01 Oct 2009, 02:25 PM
any update on this issue? Do you require more information, screenshots, etc? A response would be appreciated.
0
Accepted
Hello Sergey Arutchev,
Sorry for the late response. We were investigating this issue. Indeed there is a problem with DataLoadMode="Asynchronous" and insert of a new row. Unfortunately the problem is much bigger than we expect, so we cannot fix this in a reasonable amount of time.
This problem will be solved with the next official release (2009.Q3) as part of the massive virtualization refactoring.
Once again I am sorry for the inconvenience caused. I'll be glad to assist if you have further questions.
Best wishes,
Nedyalko Nikolov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Sorry for the late response. We were investigating this issue. Indeed there is a problem with DataLoadMode="Asynchronous" and insert of a new row. Unfortunately the problem is much bigger than we expect, so we cannot fix this in a reasonable amount of time.
This problem will be solved with the next official release (2009.Q3) as part of the massive virtualization refactoring.
Once again I am sorry for the inconvenience caused. I'll be glad to assist if you have further questions.
Best wishes,
Nedyalko Nikolov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.