Harald Bacik asked 2017-12-31 14:00:52 UTC
Hey
I have the situation, where I load orders from customers and show them as TreeView.
I try to load only the first couple of orders and when the customer has more then a specific amount of orders, then I show a special treeview node.
When this special treeview node is clicked, then the next orders get loaded (like paging)
The issue now is, that the specific treeview node does not get removed from the list.
I use the following code:
Dim locLoadAllTreeNode As New Wisej.Web.TreeNode With {.Name = String.Format("{0}.{1}", "LoadAllOrders", locInformation),
.CheckBox = False,
.ImageKey = "LoadAll"}
AddHandler locLoadAllTreeNode.NodeMouseClick, Sub(s As Object, e As EventArgs)
Dim locActualNode = DirectCast(s, Wisej.Web.TreeNode)
If locActualNode.Name.StartsWith("LoadAll") Then
tvCustomerOverview.ShowLoader = True
' Here comes the code to load more orders ....
tvCustomerOverview.Nodes.Remove(locActualNode)
tvCustomerOverview.ResumeLayout()
tvCustomerOverview.ShowLoader = False
End If
End Sub
It seems to be a bug (I think)
THX
Harald Bacik asked 2017-12-31 14:00:52 UTC
Hey
I have the situation, where I load orders from customers and show them as TreeView.
I try to load only the first couple of orders and when the customer has more then a specific amount of orders, then I show a special treeview node.
When this special treeview node is clicked, then the next orders get loaded (like paging)
The issue now is, that the specific treeview node does not get removed from the list.
I use the following code:
Dim locLoadAllTreeNode As New Wisej.Web.TreeNode With {.Name = String.Format("{0}.{1}", "LoadAllOrders", locInformation),
.CheckBox = False,
.ImageKey = "LoadAll"}
AddHandler locLoadAllTreeNode.NodeMouseClick, Sub(s As Object, e As EventArgs)
Dim locActualNode = DirectCast(s, Wisej.Web.TreeNode)
If locActualNode.Name.StartsWith("LoadAll") Then
tvCustomerOverview.ShowLoader = True
' Here comes the code to load more orders ....
tvCustomerOverview.Nodes.Remove(locActualNode)
tvCustomerOverview.ResumeLayout()
tvCustomerOverview.ShowLoader = False
End If
End Sub
It seems to be a bug (I think)
THX