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

RadGridView crashes when sorting edited column

6 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 02 Nov 2015, 03:53 PM

Hi,

I use RadGridView in my project...

when i change the value at some row (only happen at textbox, when i change value at checkbox/combobox it doesn't happen) and then try to sort the column ascending or descending it crashes.

It only happens when i set AutoGenerateColumns to false (which is always the case in our application..)

To enable sorting, I set DataMemberBinding of each column.

The error I get is:

"The runtime has encountered a fatal error. The address of the error was at 0x5b7d157d, on thread 0x430. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code."

The code I use:

<telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding MyArray}">
        <telerik:RadGridView.Columns>
           <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}">
                <telerik:GridViewDataColumn.CellTemplate>
                    <DataTemplate>
                        <AdornerDecorator>
                            <TextBox Text="{Binding Name}" />
                        </AdornerDecorator>
                    </DataTemplate>
                </telerik:GridViewDataColumn.CellTemplate>
            </telerik:GridViewDataColumn>
         </telerik:RadGridView.Columns>
</telerik:RadGridView>
   

 

 

 

6 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 04 Nov 2015, 02:47 PM
Hello Igor,

I tried to reproduce the described behaviour using the example on our Getting Started page, but everything seems to be working correctly. I've attached the sample project.

I'm guessing that the problem might come from the MyArray data source. It would help if you could open a new support ticket and provide a sample project producing the error. Then we can investigate further and try to provide a solution.

Regards,
Dilyan Traykov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Igor
Top achievements
Rank 1
answered on 08 Nov 2015, 01:14 PM

hey Dilyan,
Thank you for your response..
I downloaded your example and  i still get the problem.
It is crash when I edit FirstName and then try to sort
(if ​i edit another column after or opening the filter it work).

I added a video that show the problem

0
Igor
Top achievements
Rank 1
answered on 08 Nov 2015, 01:23 PM

link for download the video:

http://www.filedropper.com/sorterror

0
Igor
Top achievements
Rank 1
answered on 08 Nov 2015, 01:24 PM

here a link for download the video:
http://www.filedropper.com/sorterror

0
Igor
Top achievements
Rank 1
answered on 08 Nov 2015, 01:24 PM

here a link for download the video:
http://www.filedropper.com/sorterror

0
Dilyan Traykov
Telerik team
answered on 11 Nov 2015, 05:15 PM
Hello Igor,

Here's a video showing how the sample project behaves on my side.

Can you try manually setting up the project provided on our Getting Started page and tell me if you still encounter the same behaviour.

If so, try disabling Just My Code as suggested on the error page you've sent me in the video.

Regards,
Dilyan Traykov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Igor
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Igor
Top achievements
Rank 1
Share this question
or