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

RadGrid NestedViewTemplate vs RadBinaryImage

5 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arnaud
Top achievements
Rank 1
Arnaud asked on 07 Dec 2010, 07:39 PM
Hello,
I have created a telerik radgrid that displays info from an SQL Server database.
Inside my grid, i edited a nested view template and inside that template I placed a RadBinary image of which datavalue is set a binary field in the SQL table. The problem is that the picture is not showing.
Can someone tell me if there is some conflict or some additional steps to take when setting up a binary image in the nested view template.

Arnaud

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 10 Dec 2010, 04:34 PM
Hi Arnaud,

There is no a known reason for the RadBinaryImage to be displayed in the grid NestedViewTemplate. However, can you try adding a GridTemplateColumn with RadbinaryImage in the ItemTemplate and see if the image appear properly then?
Additionally, make sure you have registered the http handler of the RadBinaryImage control.

Kind regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Arnaud
Top achievements
Rank 1
answered on 13 Dec 2010, 05:27 PM
Thanks Iana ,
I was able to figure what the issue was. The pictures in my nested template view were not showing do to a post back in my code.
As soon as the (if not me.postback .....) was taken out of the code, the images were showing again.
0
Adam El Shafie
Top achievements
Rank 1
answered on 07 May 2011, 12:19 PM
Hi Arnaud,

I have the same problem you had( radgrid inside nestedview of parent radgrid, and this grid has radimagebinnarycolumn but the image never fired) and I don't know how to remove (me.postback) especially I didn't write it into my code

so, kindly explain me more if you have a solution 

Best Regards
0
Iana Tsolova
Telerik team
answered on 10 May 2011, 03:43 PM
Hi Adam,

Does the other grid columns display the proper values? Can you confirm you have registered the handlers required for the RadBinaryImage?


Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Arnaud
Top achievements
Rank 1
answered on 10 May 2011, 06:49 PM
Hello Adam,
after using telerik for a few months now, i realized that a breakdown in functionality can be caused by any number of elements, usually in the code. the reason why my images were not showing involved the following reasons:
1/ i did not register my image handlers in the web config file of the project/website; this the point Iana raised (very important).
2/ in my page load event, there was not "if ispostback" or "if not ispostback" clause to handle the grid when it was rebinding.

try one of the 2 and see if it works.
Tags
Grid
Asked by
Arnaud
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Arnaud
Top achievements
Rank 1
Adam El Shafie
Top achievements
Rank 1
Share this question
or