New to Telerik UI for WinForms? Download free 30-day trial

Shopping Cart Item for RadListView

Environment

Product Version 2018.1 220
Product RadListView for WinForms

Description

This article demonstrates how one can create a shopping cart item where the user can see the product detail and adjust the amount.

Figure 1: Shopping Cart Item for RadListView

shopping-cart-item001

Solution

You should inherit the SimpleListViewVisualItem class and add the necessary elements. In this case you will add two buttons for adjusting the amount and three LightVisualElements for displaying the product details. You will need a single label to display the current amount as well. You will add the elements to StackLayoutElements which will allow you to create the layout.

The example is bound to a custom created business object which allows you to easily get the data and calculate the total amount.

A complete C# and VB code is available in our sdk-repository: ShoppingCartItem

See Also

In this article