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

[Solved] Grid DetailView with Server Binding and Rendering details on DetailViewExpand Actionnd

2 Answers 85 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.
Eddie
Top achievements
Rank 1
Eddie asked on 26 Jun 2011, 12:34 PM
Hi All,
I'm using the telerik grid where I need to display the dynamically rendered Image in Detail View of the Row.
I'm using the Ajax Binding and using Client Side event "OnDetailViewExpand" I'm rendering the image from the server and it's working fine.
As per mvc documentation, even I use the Ajax binding the first time grid uses the Server Binding so for the first time rendering I have to use the .Template instead of ClientTemplate.
I manage to configure both working together fine. I'm using the RenderAction in the Server binding scenario where my action returns the rendered image.
The only problem I have got is that I'm displaying 100 records per page so the first time it loads, It has to render all the images means the load time is very slow (18 seconds). I even don't need to render all the images as the user might not click all of the records to expand and preview.
My question is How can I render the Image (for that specific row) from Server side when the User click on Expand button. Is there any handler for "OnDetailViewExpand" on Server Side?
Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Jun 2011, 07:54 AM
Hi Eddie,

 The OnDetailViewExpand event should be raised for server detail templates as well.

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
0
Eddie
Top achievements
Rank 1
answered on 27 Jun 2011, 05:29 PM
Hi Atanas,
Thanks for your reply. I found the same too that I can access that event as well after loading the grid successfully. so I removed the RenderAction from the Template code and just put the <div> with unique ID in there which I can access through JQuery on AJAx action.
Thanks once again.
Tags
Grid
Asked by
Eddie
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Eddie
Top achievements
Rank 1
Share this question
or