I have a radpanelbar that I use to call a radwindow during an itemclick event. This works as advertised, the problem is that the itemclick event seems to happen again if I cause another postback.
For example, if the user clicks the radpanelbar and fires the itemclick event which opens window1--I then close window1. Now I click on a radtreeview control which causes another postback and for some reason, the radpanelbar itemclick event fires again which opens window1 again even though button1 does not call for window1 to open.
Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
Dim clickedNode As RadTreeNode = e.Node
'RadPanelBar1.DataBind()
If clickedNode.ParentNode.Text = "Other Approvals" Then
abview1.Visible = True
abview1.idAgendaBills = clickedNode.Value
abview1.DataBind()
Else
hideControls()
end sub
End If
Obviously I don't want that to happen. Are there any workarounds to this? Thanks!
For example, if the user clicks the radpanelbar and fires the itemclick event which opens window1--I then close window1. Now I click on a radtreeview control which causes another postback and for some reason, the radpanelbar itemclick event fires again which opens window1 again even though button1 does not call for window1 to open.
Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
Dim clickedNode As RadTreeNode = e.Node
'RadPanelBar1.DataBind()
If clickedNode.ParentNode.Text = "Other Approvals" Then
abview1.Visible = True
abview1.idAgendaBills = clickedNode.Value
abview1.DataBind()
Else
hideControls()
end sub
End If
Obviously I don't want that to happen. Are there any workarounds to this? Thanks!