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

[Solved] Expand detail button disappears after ajax filter call

3 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 16 Jun 2011, 10:12 PM
I'm working with the Telerik MVC grid and i'm having some issues with the ajax filter call removing the expand/collapse buttons. See images below:

Server binding initially renders fine (except for some css issues)
http://i620.photobucket.com/albums/tt286/jpcleve77/Telerik1.jpg

I filter on the "reached" column which fires an ajax request to the controller
http://i620.photobucket.com/albums/tt286/jpcleve77/Telerik2.jpg

The result is that the expand/collapse button on the far left of the row has been removed and all the columns are moved over one cell
http://i620.photobucket.com/albums/tt286/jpcleve77/Telerik1.jpg

I've seen examples that use ajax binding with the expand/collapse button so I must be doing something wrong here. Any help is GREATLY appreciated.

Thanks!
John

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 Jun 2011, 07:43 AM
Hi John,

 I couldn't reproduce this problem locally. Is there a chance to provide a sample project? This could be related to a bug which we have fixed in the Q1 2011 SP1 release.

Greetings,
Atanas Korchev
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
0
John
Top achievements
Rank 1
answered on 20 Jun 2011, 03:37 PM
Hi,

I've put together a very simple demo project to illustrate the problem. Simply try to filter the grid by one of the header filters and notice that the expand detail links on the far left column of the grid are missing after the ajax request returns. (Ignore the fact that filtering isn't actually implemented)

Any ideas on a fix or work-around?

Thanks,
John
0
Atanas Korchev
Telerik team
answered on 20 Jun 2011, 04:45 PM
Hello John,

 The reason this does not work is because server-side templates are not supported in ajax binding. This includes detail templates as well as column templates. I guess we should throw an exception in such cases.

 The solution is to define a Client detail template as shown in this demo.

Regards,

Atanas Korchev
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
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
John
Top achievements
Rank 1
Share this question
or