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

Seeking guidance as to what control to use for having collapsible regions

1 Answer 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 14 Feb 2013, 08:19 PM
OK, I realize that the subject line of this thread is pretty wide. I'll try to narrow it down.

We're working on a LOB app that will use WPF. We have a WCF service which returns a list of results from a search, initiated by the user. The results include things like client first and last name, and the client ID. Right now we have the results displayed in a listbox, for each record. The issue is that a client may have multiple records in the database. Now we're displaying each record, but that seems wasteful, or at least very 1990's VB6 type of code. Instead we want to use a control which allows for some expandable regions. Naturally, the first thing that came to my mind was the out-of-the-box WPF Expander control. I've used it before, but more or less like a tab control. In this case what we want to do is show the client's first & last names, and client ID, but then in the collapsible regions data from each of the separate records related to that client. (As you can imagine, we have several clients with the same first and last names, so client ID is the only thing that differentiates between them.)

So the first thing I did was perform a web search and I came across a blog post by Karl Shifflet on ListBox grouping. I've been working my way through this, and I'm sure it will work. But we have the full suite of Telerik controls for WPF, Silverlight, ASP.NET, etc, and so I thought I'd ask on this forum, is there a Telerik control which we could use, which will speed development? I took a quick look at the Telerik Expander control, but want to know if there's another one I should consider instead? And it would be great to see some code examples, too, please.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 15 Feb 2013, 08:49 AM
Hello,

You can display the records in a RadGridView, for example. RadGridView has the Row Details feature which allows you to expand the row details for each row only when needed.

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Rod
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or