I have a gridview and placed scrollable jquery which works fine. Placed the gridview under updatepanel, so whenever selectedindexchanged happens, scrollable jquery is not working.
I have reviewed the following articles but unable to understand them. Link1, Link2 & Link3
This is the original code which was working fine.
<script src="Style/FreezeGV/ScrollableGridPlugin_ASP.NetAJAX_2.0.js" type="text/javascript"></script>
<script type = "text/javascript">
$(document).ready(function () {
$('#<%=gvWebMaster.ClientID %>').Scrollable({
ScrollHeight: 550
//Width: 950
//,IsInUpdatePanel: true // This parameter must be set to true when the GridView is inside an ASP.Net AJAX UpdatePanel.
});
});
</script>
This is what I was modified, Can anyone help me out and correct me the coding.
<script src="Style/FreezeGV/ScrollableGridPlugin_ASP.NetAJAX_2.0.js" type="text/javascript"></script>
<script type = "text/javascript">
$(document).ready(function () {
$('#<%=gvWebMaster.ClientID %>').Scrollable({
ScrollHeight: 550
//Width: 950
//,IsInUpdatePanel: true // This parameter must be set to true when the GridView is inside an ASP.Net AJAX UpdatePanel.
});
});
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
$('#<%=gvWebMaster.ClientID %>').Scrollable({
ScrollHeight: 550
});
</script>