Search as You Type Stackoverflow by int.max - Version 2016.3.1024.45

0 Answers 44 Views
GridView
Dev2WPF
Top achievements
Rank 1
Dev2WPF asked on 20 Dec 2023, 04:18 PM

Hi all,
If I try to search over as a string field, I have an issue because it's handled like an integer and ends in StackOverFlowException.
Do you have any idea?
I appreciate any help you can provide.


Dimitar
Telerik team
commented on 21 Dec 2023, 07:05 AM

Hi Eike, 

We do not have any reports of similar issues. I am not sure how to reproduce this locally as well. This is why I want to kindly ask you to create a small sample project that reproduces this exception and send it to us. This will allow us to properly investigate the issue and determine what is causing it. 

Thank you in advance for your patience and cooperation. I am looking forward to your reply.

Dev2WPF
Top achievements
Rank 1
commented on 22 Dec 2023, 08:39 AM


Hi Dimitar,
Thank you for the response.
Building a new solution is challenging because I'm working on a massive legacy project.
I built a new Window Control inside the project and generated mock values. If I post this long string "23223232323232323232323232323232323232," which looks greater than int.max, the App crashes.

Version 2016.3.1024.45





<Window x:Class="Foo.Presentation.Views.Pages.PersonalView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:Unitaix.KbergDatabase.Presentation.Views.Pages"
       xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        mc:Ignorable="d" 
   d:Height="450" d:Width="800"
        d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
    <telerik:RadDataServiceDataSource Name="customersDataSource" QueryName="Customers" AutoLoad="True">
        <telerik:RadDataServiceDataSource.DataServiceContext>
                <local:MyODataContext/>
        </telerik:RadDataServiceDataSource.DataServiceContext>
    </telerik:RadDataServiceDataSource>

        <telerik:RadGridView Grid.Row="0" ItemsSource="{Binding DataView, ElementName=customersDataSource}" 
                 IsBusy="{Binding IsBusy, ElementName=customersDataSource}"  
                 ShowGroupPanel="False" AutoGenerateColumns="False"
                             ShowSearchPanel="True">      
       
            <telerik:RadGridView.ChildTableDefinitions>
            <telerik:GridViewTableDefinition>
                <telerik:GridViewTableDefinition.Relation>
                    <telerik:PropertyRelation ParentPropertyName="Orders" />
                </telerik:GridViewTableDefinition.Relation>
            </telerik:GridViewTableDefinition>
            </telerik:RadGridView.ChildTableDefinitions>
                
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" 
                                Header="Id" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" 
                                Header="Name" />
            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

    </Grid>

</Window>



     private static List<Customer> customers = new List<Customer>(
         Enumerable.Range(1, 3).Select(idx => new Customer
         {
             Id = idx,
             Name = $"Customer {idx} +23223232323232323232323232323232323232",
             Date = DateTime.Now,
             Orders = new List<Order>(
                 Enumerable.Range(1, 2).Select(dx => new Order
                 {
                     Id = (idx - 1) * 2 + dx,
                     Amount = random.Next(1, 9) * 10
                 }))
         }));

Dev2WPF
Top achievements
Rank 1
commented on 22 Dec 2023, 10:58 AM

I wrote an example from scratch that should be a Telerik bug.

Dev2WPF
Top achievements
Rank 1
commented on 22 Dec 2023, 12:04 PM

It intrigued me, so I tested the DLLs from the trial of the Telerik UI for WPF R2 2023 Version. This Version works.


No answers yet. Maybe you can help?

Tags
GridView
Asked by
Dev2WPF
Top achievements
Rank 1
Share this question
or