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

Don't want to fire an Ajax event when collapsing NestedViewTemplate

3 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Graeme
Top achievements
Rank 1
Graeme asked on 22 Sep 2008, 07:54 AM
Hi there

I'm looking for some help. I have a RadGrid which has a NestedViewTemplate for each of the bound rows. On clicking the expand button, I make a call to a web service and teh data from this populates the nested table. This works as expected, revealing a databound table.

When I click on the collapse button for a particular expanded row, the page does a post back. I am looking to not do this on the collapse click, the row should just close.

Do you know of any way I can accomplish this? Is there an onclick event I can attach to the expand/collapse button that will 'hide' the nested table for the same row. Is this something I can do on ItemCommand or ItemDataBound events?

Thanks in advance

GD

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 24 Sep 2008, 12:46 PM
Hi Graeme,

Can you show us your RadGrid markup?
You can check our online demo demonstrating RadGrid detail template and it is working properly.

Sincerely yours,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Graeme
Top achievements
Rank 1
answered on 25 Sep 2008, 06:39 AM
Hi Nikolay

Thanks for your reply, unfortunately the link you posted for the online demo appears to be a dud one. Can you provide the correct link and I will look at this before sending the RadGrid markup and get my answer from that - and not waste your time ;)

Thanks
Graeme
0
Nikolay Rusev
Telerik team
answered on 25 Sep 2008, 10:27 AM
Hello Graeme,

Please accept my apologizes.
I've replaced the link in my previous post with correct one.

Sincerely yours,
Nikolay
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Graeme
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Graeme
Top achievements
Rank 1
Share this question
or