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

Exception for filter on byte columns

5 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 11 Oct 2016, 08:00 AM

Hi,

I added a GridColumn in binding with byte property, when I try to filter with value greater thant 255 I receive an exception.

Thi is my grid, my column "Ultima Revisione" is a byte,

When I try to filter (for example "106", see attached screenshot), it's all ok, but if I add "8", I receive an overflow exception, because byte can't compare with a value 1068.

I thought the filter handles all types of primitive variables....

How can I resolve this issue? (Do not tell me to do a string variable alternative ...)

<telerik:RadGridView x:Name="radGridView"  Style="{StaticResource ListStyle}"
                     ItemsSource="{Binding Items}" MouseDoubleClick="RadGridViewMouseDoubleClick"
                     SelectedItem="{Binding SelectedItem,Mode=TwoWay}"
                     IsLocalizationLanguageRespected="False">
<telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding Codice}" Header="Codice"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding Descrizione}" Header="Descrizione"/>
    <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Ricambio}" Header="Ricambio"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding CodiceValuta}" Header="Valuta"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding UltimaRevisione}" Header="Ultima Revisione"/>
    <telerik:GridViewDataColumn DataMemberBinding="{Binding UltimaRevisioneReference.InizioValidità, StringFormat=\{0:d\}}" Header="Inizio Validità"/>
</telerik:RadGridView.Columns>

5 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 13 Oct 2016, 12:47 PM
Hello Dario,

This issue has been fixed with our latest internal build (2016.3.1010) which you can download from your account.

Could you please try updating to this version of the controls and let me know if this resolves the matter?

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dario Concilio
Top achievements
Rank 2
answered on 13 Oct 2016, 01:35 PM

I tryed.

Same exception.

However, I read release detailed of 2016.3.1010 build, but I didn't find about GridView......

0
Dilyan Traykov
Telerik team
answered on 13 Oct 2016, 03:31 PM
Hello Dario,

I'm attaching a sample project where I'm unable to reproduce the exception using the latest internal build.

Could you please have a look at it and let me know if it differs from the setup you have at your end in any way?

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dario Concilio
Top achievements
Rank 2
answered on 14 Oct 2016, 08:05 AM
I tryed to download it, but it shows me "Oh, no! It seems we've lost this page".....
0
Dilyan Traykov
Telerik team
answered on 14 Oct 2016, 02:39 PM
Hello Dario,

We are currently experiencing an issue with our public forums which will be resolved as soon as possible. Please excuse us for the inconvenience.

In case the matter is urgent, you can open a new support ticket and I will send you the project there, but I am basically just defining a column for the byte property for my business objects and trying to filter the grid though the search panel, which does not throw an exception with the latest internal build (2016.3.1010) as opposed to the R3 2016 release.

Are these the action steps you are taking at your end as well?

Regards,
Dilyan Traykov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Dilyan Traykov
Telerik team
Dario Concilio
Top achievements
Rank 2
Share this question
or