I am using telerik radgrid to show images and using jquery fancybox to popup the image at user control (ascx file). The problem is in first page fancybox work properly. At next page of grid, fancybox didn't work properly. The follwing scripts are paste on ascx file.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="../../Scripts/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="../../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="../../Scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="../../Scripts/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$("a.img_group").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">' + (title.length ? ' ' + title : '') + '</span>';
}
});
});
</script>
At Grid
<a class="img_group" runat="server" title='Photo_Title' href='imageURL'>
<img runat="server" alt="image" src='imgSource' Width="120" Height="95" id="imgOne" />
</a>
I appreciate any help. Thanks!!