This is a migrated thread and some comments may be shown as answers.

Problem Loading

1 Answer 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 10 Jan 2011, 08:48 AM
sorry, accidentally hit enter!
title should read
"problem loading saved grid settings"

using the provided code from your demo, the 'loadstate' method in the radgridviewsettings file
causes the following exception
{"The binary operator Equal is not defined for the types 'System.Object' and 'System.Boolean'."}

This happens when I load a saved a filter setting, with a column that has boolean types filtered to false or true (nothing works fine).
it seems to arise from:

For Each fds As FilterDescriptorSetting In setting.SelectedDistinctValues
    Dim fd As New Telerik.Windows.Data.FilterDescriptor()
    fd.Member = fds.Member
    fd.[Operator] = fds.[Operator]
    fd.Value = fds.Value
 
    cfd.DistinctFilter.FilterDescriptors.Add(fd)
Next
Me.grid.FilterDescriptors.Add(cfd)


Spent several hours trying to figure this out, any help that can point me in the right direction would be much appreciated!

regards, 
Andrew

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 11 Jan 2011, 09:19 AM
Hello Andrew,

Can you please open a separate support ticket and send us a small sample project that reproduces this behavior. We will debug it and see what is wrong. Thanks in advance.

Greetings,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or