ASP.NET 3.5 and above only

ASP.NET TreeView - Shopping Cart demo with obout Grid

Checkout the products just by drag and drop the products in the grid.

  • oboutSuite
    • TreeView
    • Grid
    • Calendar
    • HTMLEditor
    • SlideMenu
    • EasyMenu
    • ComboBox
    • Ajax Page
    • Show
    • Interface Controls
Product Name
There are no records available.

            <obout:Tree NodeDropTargets="UpdatePanel1" OnTreeNodeDrop="ObTree_TreeNodeDrop" 
                        EnableDragAndDrop="true" runat="server">
                        <obout:Node Text="oboutSuite" Value="199">
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <obout:Grid ID="grid1" ...>

             protected void ObTree_TreeNodeDrop(object sender, Obout.Ajax.UI.TreeView.NodeDropEventArgs e)
                System.Collections.Generic.List<ShoppingCartRow> source = CheckoutList;
                ShoppingCartRow item = source.Find(delegate(ShoppingCartRow row)
                    return row.ProductName == e.SourceNode.Text;
                if (item == null)
                        new ShoppingCartRow(e.SourceNode.Text, double.Parse(e.SourceNode.Value), 1)
                CheckoutList = source;

                grid1.DataSource = this.CheckoutList;

            Protected Sub ObTree_TreeNodeDrop(ByVal sender As Object, ByVal e As Obout.Ajax.UI.TreeView.NodeDropEventArgs)
                Dim source As System.Collections.Generic.List(Of ShoppingCartRow) = CheckoutList
                Dim item As ShoppingCartRow = source.Find(Function(row As ShoppingCartRow) row.ProductName = e.SourceNode.Text)
                If item Is Nothing Then
                    source.Add(New ShoppingCartRow(e.SourceNode.Text, Double.Parse(e.SourceNode.Value), 1))
                    item.Quantity += 1
                End If
                CheckoutList = source

                grid1.DataSource = Me.CheckoutList
             End Sub

"Having used both Telerik and Component Art controls I can definitely say that the Obout Suite offers the most flexible and easy to implement controls about. And for the few problems I have had the support team have been most helpful, often providing showcase examples to help me understand things."

Tim Finch

Random testimonial   All testimonials