I use WebData Grid in my application, in some reason my scrollbar stucks in the middle of webdata grid and I dont know why. I use this js function
function AfterRowActivate(gn,rowID){var row=igtbl_getElementById(rowID);igtbl_scrollToView(gn,row);}
but it doesn't help me.. Hello All.. I really need your help.
Thanks
Hi hrld22,
Could you give us more information about how is your grid created. What options or behaviors are used? What version of NetAdvantage do you use?
A complete sample would be very helpful.
Thanks,
see image below.. i selected the last recod of my grid then my page will load the selected record in my detail panel. but my scroll position set to middle.
could check my code for scrolling:
Public Sub ScrollWebGrid()
If Me.RowCount > 0 Then
Dim index As Integer = 0
If Me.WebDataGrid1.Behaviors.Selection.SelectedRows.Count > 0 Then
index =
Me
.WebDataGrid1.Behaviors.Selection.SelectedRows(0).Index + 1
Else
index = 1
End If
hdwebgridscroll.Value = index * Me.WebDataGrid1.Rows(0).Height.Value
Dim strJS As New StringBuilder
strJS.Append(
" function ScrollSummaryGrid() ")
" { ")
" var gridView = document.getElementById('" & Me.WebDataGrid1.ClientID & "'); ")
"")
" if (gridView!=null)")
" gridView.parentElement.parentElement.scrollTop = document.getElementById('" & hdwebgridscroll.ClientID & "').value;")
" } ")
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "webgridscroll" + Now.Millisecond.ToString, strJS.ToString, True)
Dim sm As ScriptManager = ScriptManager.GetCurrent(Page)
If (sm.IsInAsyncPostBack) Then
'Page.ClientScript.RegisterStartupScript(Me.GetType(), "webgridscroll" + Now.Millisecond.ToString, "ScrollSummaryGrid();", True)
'Page.ClientScript.RegisterStartupScript(Me.GetType(), "webgridscroll" + Now.Millisecond.ToString, "Sys.Application.add_load(ScrollSummaryGrid);", True)
End Sub
im using ie6 and ie7. this issue occurs on my pc
here is the version of what am i using right now.
im only new resource to this project..
please help me
Infragistics2.WebUI.Shared.v9.2, Version=9.2.20092.1003
Could you send me the aspx file or the grid definition from the aspx file.
ohh..,crapp.. help me.. before i get crazy on this...
what i want to achieve is that scrollbar will follow through the selected row record.
It would really help if you tell me what are you trying to accomplish because I still can't understand that. I would also need the aspx file with the WebDataGrid. If you don't want to post it here you can send it to my email ayordanov@infragistics.com.