4 Answers, 1 is accepted
0
0
Accepted
Hello RVW,
Currently the best way to overcome this problem is to have expanded groups. We are already working on a solution and we will try to include a fix in next week's Latest Internal Build.
There is one workaround that you could try:
Instead of using RadGridView.BrindDataItemIntoView you could try using this new BringIntoView method.
Thanks for reporting this issue. Your Telerik points have been updated.
Regards,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Currently the best way to overcome this problem is to have expanded groups. We are already working on a solution and we will try to include a fix in next week's Latest Internal Build.
There is one workaround that you could try:
public void BrindIntoView(object dataItem) |
{ |
try |
{ |
var group = this.FindGroup(dataItem); |
group.IsExpanded = true; |
this.RadGridView1.BringDataItemIntoView(dataItem); |
} |
catch |
{ |
this.Dispatcher.BeginInvoke(new Action(() => |
this.RadGridView1.BringDataItemIntoView(dataItem)), DispatcherPriority.SystemIdle, null); |
} |
} |
public GroupRecord FindGroup(object dataItem) |
{ |
var record = this.RadGridView1.FindRecord(dataItem); |
var grp = this.RadGridView1.Records. |
Cast<GroupRecord>(). |
Where<GroupRecord>((group) => group.Records.Contains(record)).FirstOrDefault(); |
return grp; |
} |
Instead of using RadGridView.BrindDataItemIntoView you could try using this new BringIntoView method.
Thanks for reporting this issue. Your Telerik points have been updated.
Regards,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JDB
Top achievements
Rank 1
answered on 18 Jul 2009, 04:33 PM
Hi Milan,
Thanks for your answer, I'll try the solution you proposed next thing monday morning!
Thanks for your answer, I'll try the solution you proposed next thing monday morning!
0
JDB
Top achievements
Rank 1
answered on 20 Jul 2009, 06:39 AM
Hi Milan,
On first sight the solution works, but only if there's only 1 group defined. When multiple are defined, you still get an exception and it doesn't work.
But I'll try to get that to work through recursion, if that won't slow things down too much.
On first sight the solution works, but only if there's only 1 group defined. When multiple are defined, you still get an exception and it doesn't work.
But I'll try to get that to work through recursion, if that won't slow things down too much.