I have created a screenshot of the crash error (http://www.sjele.nl/RadGridViewCrash.png) but was unable to attach a debugger (debugger already attatched error).
Used XAML:
<
telerik:RadGridView
x:Name
=
"RadGridView1"
ItemsSource
=
"{Binding ElementName=companySearchResultDomainDataSource, Path=Data}"
Margin
=
"15,2"
RowIndicatorVisibility
=
"Collapsed"
IsReadOnly
=
"True"
AutoGenerateColumns
=
"False"
CanUserFreezeColumns
=
"False"
CanUserResizeColumns
=
"False"
Height
=
"300"
RowLoaded
=
"RadGridView1_RowLoaded"
>
<
telerik:RadGridView.RowStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
>
<
Setter
Property
=
"MinHeight"
Value
=
"40"
/>
</
Style
>
</
telerik:RadGridView.RowStyle
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewToggleRowDetailsColumn
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=CompanyName}"
Header
=
"Company Name"
/>
<!--Width="SizeToCells" MinWidth="110"-->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=Address}"
Header
=
"Address"
/>
<!--Width="SizeToHeader" MinWidth="60"-->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=ZipCode}"
Header
=
"Zip Code"
/>
<!-- Width="SizeToHeader" MinWidth="70" -->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=City}"
Header
=
"City"
/>
<!-- Width="SizeToHeader" MinWidth="45" -->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=Country}"
Header
=
"Country"
/>
<!-- Width="SizeToCells" MinWidth="65" -->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=ParentCompanyID}"
Header
=
"Parent Company ID"
/>
<!-- Width="SizeToHeader" -->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=ChildCompanies}"
Header
=
"Child Companies"
/>
<!-- Width="SizeToHeader" -->
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
The ItemsSource results a List<CompanySearchResult> via WCF RIA Services.
You can use the definition below and just feed a faked list to test.
/// <summary>
/// A compacted result for the search screen.
/// </summary>
/// <remarks>
/// In order to lift along with the WCF RIA Services,
/// the data structure needs to be a class with properties;
/// public exposed variables or structures are not accepted.
/// </remarks>
[Serializable()]
public
class
CompanySearchResult
{
[Key]
// A Key Attribute is required to work along with the WCF RIA Services.
public
int
CompanyID{
get
;
set
;}
public
Nullable<
int
> ParentCompanyID{
get
;
set
;}
public
String CompanyName {
get
;
set
; }
public
String Address {
get
;
set
; }
public
String ZipCode {
get
;
set
; }
public
String City {
get
;
set
; }
public
String Country {
get
;
set
; }
public
int
ChildCompanies {
get
;
set
; }
public
int
[] ChildCompanyIDs {
get
;
set
; }
}
If you need additional information, please let me know.
In order to make sure you can confirm the problem quickly, I've set up a live minimal demo for you at http://radgridviewcrash.nkcss.com/RadGridViewCrashTestPage.aspx and https://ziggo.nkcss.com/radgridviewcrash/RadGridViewCrashTestPage.aspx but the weird thing is, when visited via IIS, on my remote or dev machine, it won't crash, but also not allow you to drag.
When debugging in visual studio 2010 (cassini dev webserver), Silverlight will crash (see attatched source).
The Source is 9.42MB due to all the libraries, etc...: http://radgridviewcrash.nkcss.com/RadGridViewCrash.zip
Someone just posted with the same error: http://www.telerik.com/community/forums/silverlight/gridview/gridview-drag-header-crashes-with-value-does-not-fall-within-the-expected-range.aspx