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

Animated Insert of a New Row?

2 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 31 May 2012, 05:21 PM
Imagine a RadGrid with about 20 rows of data.  Each will have a checkbox.  When the user clicks the checkbox, I need to insert a companion row below it that is closely related to the original row.

I can imagine inserting such a new row into the middle of a DataTable and rebinding the RadGrid to the DataTable but to just do this instantly will be visually confusing to the user.

I'm thus wondering if there's a way to animate the insertion of the new row, where essentially the new row "slides" down from the row where the checkbox was clicked?

I hope I've explained my requirement sufficiently.  Might anyone have any ideas on how to do this?

Robert

2 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 05 Jun 2012, 09:40 AM
Hi,

 This animated insert feature by far exceeds the current capabilities of the RadGrid control. First of all the grid requires a postback in order to render the insert form as opposed to the "slide down" animation which suggests client-side implementation. The closest such feature that is currently available is the insert of the RadTreeList which renders the insert form right below the clicked row.

Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Robert
Top achievements
Rank 1
answered on 05 Jun 2012, 05:12 PM
Okay, thank you, Marin.  Thought I'd ask anyhow.

I've actually done a little experimenting and I do know ahead of time which rows could potentially need to be inserted below a visible one.  So I'm going to try the approach of populating all the possible rows and then initially hiding the "extra" ones.

Not exactly the effect I was looking for but it'll have to suffice at this time.

Robert
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Marin
Telerik team
Robert
Top achievements
Rank 1
Share this question
or