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

GridView hierarchy questions

4 Answers 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Luke
Top achievements
Rank 1
Luke asked on 30 Sep 2010, 02:26 AM
We're currently evaluating your grid (which is great by the way) and I have a few questions regarding hierarchies:

1. Is it possible to remove (or at least reduce the size of) the border around child grids? The default one has a thick blue border which is eating up a lot of screen space.

2. Rows in the grid are typically highlighted when you move the mouse over them, but the last row hovered over in a child grid stays highlighted when you move the mouse down and out of the child grid. It's not such a big issue, but if that row has the background colour changed for business reasons, the highlight remains which hides the background colour. If you move the mouse up and over the child column headers first the highlight is removed as normal. Is this a bug?

3. Am I missing something or is there no way to bind hierarchies of business objects with self contained collections? For example, I have a collection property on my view model called Customers. This model works great in your WPF grid, but for the WinForms case I had to create two separate collections in the view model for customers and orders, add a CustomerKey property to the Order class and then specify a GridViewRelation between them.

public class Customer
{
    public int CustomerKey { get; set; }
    public string Name { get; set; }
    public IList<Order> Orders { get; set; }
}
 
public class Order
{
    public int OrderKey { get; set; }
    public decimal Price { get; set; }
}

4 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 30 Sep 2010, 06:18 AM
Hello Luke,

1. To remove the border around child grids, it was already discussed here.

2. You are right about this, i think it's a visual item problem somewhere.

3. Sorry, it's not working like that, the way with the relations is the way to go.

If you have any other questions, please do not hesitate to say so.

Best Regards,
Emanuel Varga
0
Luke
Top achievements
Rank 1
answered on 05 Oct 2010, 04:31 AM
Thanks Emanuel. I'd already read the thread about removing the child borders however as most of the posters mentioned none of the answers given actually achieve what is required.
0
Emanuel Varga
Top achievements
Rank 1
answered on 05 Oct 2010, 06:20 AM
Hello Luke,

You are right, I've been doing some testing and e.CellElement is never
GridDetailViewCellElement
, so something is wrong somewhere, i would suggest submitting a support ticket, i think this is an issue in one of the Q2 2010 releases.

Best Regards,
Emanuel Varga
0
Alexander
Telerik team
answered on 05 Oct 2010, 11:23 AM
Hello,

Regarding Luke's questions:

1. Emanuel is right. There is an issue in Q2 2010 version - the ViewCellFormatting event is not fired for a GridDetailViewCellElement. It will be addressed in the next release. Currently, you can edit the theme using the Visual Style Builder.

2. Yes, it is an issue. We will address it in a next release.

3. The desired hierarchy can't be built in the current version of RadGridView. We are working on an Object-relational hierarchy which will cover your scenario. This feature is scheduled for Q3 2010 release.

Best regards,
Alexander
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
Luke
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Luke
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or