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

RadGridView wrong behavior - caused by tabcontrol?

11 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 18 Sep 2009, 07:20 PM
Hello,

I am using WPF Controls version 2009.2.904.35.

First issue: I have a GridView control inside a TabItem. Whenever the application loads, if I expand the rows of the GridView control, the expansion works and the child rows are displayed. However, if I first click trough the TabItems and come back to expand the Grid rows, then the expansion works but the child rows are not shown. If I have expanded the rows at least once before I tab through, the child rows continue to be displayed even after I have visited other tabItems; the problem seems to happen only when I tab through before ever expanding any rows. One more thing, if I expand let's say 3 rows out of 5 in the grid, then tab through, then come back to expand the other 2 rows, those 2 rows' children won't be shown, but the children of the other 3 pre-expanded rows do continue to show. If I sort or filter the grid, then the rows reappear.

Second issue: If I position the cursor in between two columns to drag and size, the sizing of the column jumps around, and i can make it smaller but not bigger; also, if I stop dragging (release the mouse button), the column sizing continues to happen while I move my mouse. This happens in the same grid that's having the first issue. I have another grid in another tabItem and that one does not have the sizing issue; it also does not have child rows so I don't know if it would be the same problem.

Thanks,
Laura

11 Answers, 1 is accepted

Sort by
0
Allan Elder
Top achievements
Rank 1
answered on 21 Sep 2009, 01:58 PM
I'm using the 9/4 internal build and also see the above issues.
0
Missing User
answered on 22 Sep 2009, 01:11 PM

Hello Laura,

I was able to reproduce the first issue you have reported.
We will investigate what causes that problem and as soon as a fix is ready we will make it public via "Latest internal build" program so stay tuned.  I've updated your Telerik points for your involvement.

Regarding the second issue I have prepared a sample application and tried to reproduce the issue but unfortunately to no avail.  I've also shot a short movie of my actions.
Can you please examine the project and the video that I have attached and tell me how to reproduce the behavior that you are experiencing on your end.
Maybe I am doing something differently than you and that is why I cannot reproduce the behavior. Or maybe you can configure my sample project so that it behaves like your project and attach it back via support ticket.

Kind regards,

Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Allan Elder
Top achievements
Rank 1
answered on 22 Sep 2009, 03:57 PM
I found that the second issue was due to RadDragAndDropManager interfering with the column header resize during the call to OnDragQuery. Adding the following if statement around the query result solved the issue.

 

if (e.Options.Source is GridViewRow)

 

{

e.QueryResult =

 

true;

 

}

 

0
Allan Elder
Top achievements
Rank 1
answered on 22 Sep 2009, 07:07 PM
I spoke too soon; if the grid has a ChildTableDefinition, the e.Options.Source comes through as RadGridView, not GridViewRow; is there any way to detect that it is the row header being dragged?
0
Allan Elder
Top achievements
Rank 1
answered on 24 Sep 2009, 03:02 PM
Also, I have now found the following.

1. The Thumb Drag events detailed in this thread don't appear to work; I have tried this with the RadDragAndDropManager and without. This applies to both grids with child rows and grids without child rows.

2. When a grid has child rows and you drag a row, the e.Options.Source and e.OriginalSource all come through as RadGridView. When there are no child rows, it comes through as a GridViewRow. There is no way I can find to detect that the header is being dragged through the event arguments being passed.

We are using the 09/04 internal build.

0
Allan Elder
Top achievements
Rank 1
answered on 24 Sep 2009, 03:09 PM
I opened a support ticket #245483 and attached a code sample.
0
Eli
Top achievements
Rank 1
answered on 10 Apr 2012, 09:07 PM
Hello,

Not sure if this is a closed thread, but I am using version 2012.1.326.40 and I have come across similar problems. The absolutely critical behavior is as follows. We have multiple instances of a view containing a RadGridView inside a tabcontrol, each with different data. When we filter  on one of the grids the rest of the grids filter to the same value as well. Some users are experiencing trouble clearing the filter after this occurs.

I did not see the issue where resizing a column in one tab re-sizes them all until reading this post, but it is occurring as well.

Users did not report problems until after updating Telerik from 2011.2, not sure if it was introduced here or if no one caught it.

Need a solution for this as soon as possible, I will continue looking for solutions to this problem on the Telerik site as well as other sites.

Thank you.

Eli
0
Eli
Top achievements
Rank 1
answered on 10 Apr 2012, 09:07 PM
Hello,

Not sure if this is a closed thread, but I am using version 2012.1.326.40 and I have come across similar problems. The absolutely critical behavior is as follows. We have multiple instances of a view containing a RadGridView inside a tabcontrol, each with different data. When we filter  on one of the grids the rest of the grids filter to the same value as well. Some users are experiencing trouble clearing the filter after this occurs.

I did not see the issue where resizing a column in one tab re-sizes them all until reading this post, but it is occurring as well.

Users did not report problems until after updating Telerik from 2011.2, not sure if it was introduced here or if no one caught it.

Need a solution for this as soon as possible, I will continue looking for solutions to this problem on the Telerik site as well as other sites.

Thank you.

Eli
0
Vlad
Telerik team
answered on 11 Apr 2012, 06:41 AM
Hi Eli,

 Indeed the thread is very old (2009) and the grid is a bit different now compared to the 2009 version. This can happen only if all grids are bound to a same collection - can you check this?

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Eli
Top achievements
Rank 1
answered on 11 Apr 2012, 05:04 PM
Vlad,

Thank you for your prompt reply.

Looked through the code, here is how the tabs are set up. We are writing an MVVM application. There is an observable collection of view models. Each of these view models is opened in a separate tab, and they use a datatemplate to display them. The display has a stack of labeled gridviews, the data source for the grid views are properties in the view model.

I set x:Shared to false on the datatemplate, and overloaded the equal method on the view model to make sure they differentiate between view models. Not sure what else to do.

Thanks,
Eli



0
Vlad
Telerik team
answered on 12 Apr 2012, 07:58 AM
Hello Eli,

 Please open support ticket and send us this application to check it locally what's going on.

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Laura
Top achievements
Rank 1
Answers by
Allan Elder
Top achievements
Rank 1
Missing User
Eli
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or