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

radgridview filtering and sorting issue when row details expanded

5 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lauren
Top achievements
Rank 1
Lauren asked on 27 Apr 2010, 04:09 PM
Hi,

I have a radgridview with a rowDetailsTemplate. The rowDetails contains another radgridview and is populated on LoadingRowDetails.

When some grid row details are expanded and i try to sort or filter the parent grid, i have the following exeption:
------------------
An unhandled exception ('Unhandled Error in Silverlight Apllication
Code: 4004
Category: ManagedRunTimeError
Message: System.Reflection.TargetParameterCountException: PArameter count minmatch.
------------------
Any idea why this is happening ?

If a row details loaded and then collapsed, then a column is sorted, the sorting works fine but next time the same row details is expanded, then the call to the database is made again. How can i avoid that ? the database is called once but shouldn't be called again after sorting, no ?

Thanks for your help.

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 28 Apr 2010, 08:58 AM
Hello Lauren,

Could you please open a separate support ticket and send us your sample project. We need the actual code to see what is really going on. Thanks in advance.

Regards,
Ross
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Lauren
Top achievements
Rank 1
answered on 29 Apr 2010, 03:02 PM
Hi Ross,

I finally managed to submit a support ticket.
Ticket ID is : 305353

Thanks for your help.
Lauren

0
Hristo
Telerik team
answered on 29 Apr 2010, 05:40 PM
Hi Lauren,

We are happy to hear that this problem was resolved. Please let us know if you again have such difficulties so we can investigate them.

Greetings,
Hristo
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
mandeep bhullar
Top achievements
Rank 1
answered on 29 Apr 2010, 10:06 PM
Hi,

Could you share the resolution online. I am facing the same issue.

Thanks,
Mandeep
0
Rossen Hristov
Telerik team
answered on 30 Apr 2010, 03:47 PM
Hi mandeep bhullar,

We haven't provided a solution for Laurence because the project he sent us does not reproduce the exception.

Can you by any chance send us a sample project that does reproduce the issue you are getting. It seems that there is a problem, but we really need to have a runnable sample project that demonstrates the problem if we hope to fix it.

Thanks in advance.

Now to answer Laurence's initial question, which was:
"If a row details loaded and then collapsed, then a column is sorted, the sorting works fine but next time the same row details is expanded, then the call to the database is made again. How can i avoid that ? the database is called once but shouldn't be called again after sorting, no ?"

When the grid is sorted its view is recreated. Since row virtualization is turned on, the same row is reused for many different data items and their respective details. When a new data item is hosted in the reused row it has to change both its cell values and its details to display the new item. If it does not reload its row details you will be seeing the values of the new data item in the row cells and the detail of the old data item in the row details. That is totally wrong. Therefore, the row details will be loaded again to display the correct thing. So you should turn row virtualization off in case you do not want the row details to be loaded each time you sort. I hope this makes sense.
 
Best wishes,
Ross
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Lauren
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Lauren
Top achievements
Rank 1
Hristo
Telerik team
mandeep bhullar
Top achievements
Rank 1
Share this question
or