VS2022 /Framework 4.7.2 / Vb.net / WebSite / Telerik 2022.1.119.45
Context :
Page1 contains :
- RadAjaxLoadingPanel Modal (Id=RALP)
- RadAjaxPanel (Id= RAP1 associate to RALP)
- 1 button to go Page2
- 1 button to call a job (and after job, reload page with new elements)
- and other things...
Page2 contains : - forms and elements for a reunion.
- return button to page1
- valid button to update writting during reunion in database before run job. (Set session to say to refresh data to page1)
Page1, if i click on different buttons (including button for call job) and elements, is good i've got RadAjaxLoadingPanel
Page2 to page1 by return button : Good
Page2 to page1 by valid button : i've got problem with RadAjaxLoadingPanel :
simulate click button (see code), RadAjaxLoadingPanel not showing (user can click), after treatment content was refreshed. all elements clicked in page not display RadAjaxLoadingPanel
no javascript error in Chrome.
Code Behind :
Page1 :
Private Sub Planning_Load(sender As Object, e As EventArgs) Handles Me.Load
If IsPostBack = False Then
If Session("Planning_RunJob") = 1 Then
PrepareRunJob()
End If
'... other treatement
End If
End Sub
Private Sub PrepareRunJob()
Session.Remove("Planning_RunJob")
Dim btRefresh as string = btJobOperation.UniqueID
'Simulate click button for run run after page load, for user to inform is in update
Dim sc As String = $"setInterval(__doPostBack('{btRefresh}',''), 10000);"
ClientScript.RegisterStartupScript(Page.GetType, "refresh", $"{sc}", True)
End Sub
Private sub Runjob()
'Simulate job
Threading.Thread.Sleep(10000)
litE4.Text = "REFRESHED !"
End Sub
Private Sub btJobOperation_Click(sender As Object, e As EventArgs) Handles btJobOperation.Click
RunJob()
End Sub