Hi,
i'm having 15 columns in the grid, some of the column value is depend on the another one.
For that i've used updated panel and autopostback for the source control.
Eg.
DDL 2 is depend on the txtbox 1
for that i've added autopost back for textbox1 (i.e during autopost back of txtbox will populate the values in ddl2)
here the during this autopostback the horizontal scroll inside the grid is getting reset .
can you pls help me on this


Thavaselvan PalanivelRank #2,151 · 661 reputationPosted Aug 5, 2015, 2:25 AM EDT
$(document).ready(function () {
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);
$("#dvGrid").scroll(function () {
horizScroll = $('#dvGrid').scrollLeft();
});
});
function InitializeRequest(sender, args) {
horizScroll = $('#dvGrid').scrollLeft();
}
function EndRequest(sender, args) {
if (typeof (horizScroll) != 'undefined') {
$('#dvGrid').scrollLeft(horizScroll);
}
}
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 5, 2015, 2:32 AM EDT
<asp:ScriptManager ID="ScriptManager1" runat="server">
asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="pagingPanelDiv">
<asp:Panel ID="pagingPanel" runat="server" Height="50px" Width="1275px"
ScrollBars="Horizontal" Wrap="false">
asp:Panel>
div>
ContentTemplate>
asp:UpdatePanel>
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 3, 2015, 10:49 PM EDT