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

Detailed row view

2 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kamen
Top achievements
Rank 1
Kamen asked on 22 Jul 2011, 04:10 PM
Hi, I need to have a data grid that enables something like a detailed row view.

A bit more details:
  • Need a data grid that has one column with a checkbox in it and a couple of more columns
  • when the checkbox is clicked I need the checked row to be displayed in a detailed row view
  • the detailed row view has fewer columns and different content in the columns
  • also I need the rows to have drag and drop enabled in both detailed row view and the initial row view

And an example for my case:
  • A table that has 6 columns that represent movie info: checkbox column, id, name, year, genre, budget.
  • What I need is when the checkbox in the first column is checked the row to display: checkbox column, name, short description, budget
  • So I need year and genre columns to be replaced by short description column.
  • when the checkbos is unchecked the row should be reverted to the previous state

Is this possible to be done with the telerik RadGrid? And can you please provide short code or directions how to be achieved?

2 Answers, 1 is accepted

Sort by
0
Kamen
Top achievements
Rank 1
answered on 25 Jul 2011, 09:06 AM
Well, I guess I've been too tired on Friday.

The thing I asked for can be achieved with adding all the columns I could possibly need and hide/show the appropriate ones depending on the Checked value of the checkbox.

I think there is no need to answer my question unless there is much clever and neat way to do this.
0
Sebastian
Telerik team
answered on 25 Jul 2011, 09:14 AM
Hello Kamen,

That is one possible solution you have already discovered. Another approach would be to take advantage of the NestedViewTemplate functionality exposed by our AJAX grid and display the detailed information there (see this demo for more details).

Best regards,
Sebastian
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Kamen
Top achievements
Rank 1
Answers by
Kamen
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or