Edit this page

Managing Data

Telerik's RadTreeListView allows you not only to display sets of data, but also to manage them. You are able to use the standard operations - Insert, Update and Delete. You can also validate the data. Besides using this functionality, you are able to control it via the several events raised at the most important key points of the operation.

As the RadTreeListView directly inherits the RadGridView it uses the same data management mechanism. To learn more read the respective topics in the RadGridView's documentation.

Managing Collections

Some data sources, such as those implementing INotifyCollectionChanged (ObservableCollection), support data inserts, change notifications, etc. This means that they will automatically handle the creation of new objects in the collection and will send notifications to the DataBinding engine that the data has changed. When using collections that don't support inserts and change notifications as data source, you have to create the new items manually and to rebind the grid to the modified data source in order to display the modified data.

Adding New Entries

The adding of new entries is achieved via the GridViewNewRow control, which appears when the user hits the "Insert" key or when the developer initiates an add operation.

As for now the RadTreeListView is not capable of automatically adding items to any level of the hierarchy. If you use the default approach, the items will be added to the root level. Still you are able to add items by manually adding the item to the source collection at the level you want.

Updating an Entry

The updating of entries takes place in the same cell, where the data is displayed. Only one item and only one cell in it can be edited at a time. You are able to restrict certain cells or the entire grid from being edited. In order to edit a cell, the user can hit the "F2" key or the developer can initialize an edit operation.

Deleting an Entry

You are able to remove items from the RadGridView by manipulating the ItemsSource collection.

Validation

Tha RadGridView allows you to validate the data entered in the managed cells by applying custom validating rules. You can validate for each cell or you can validate the whole row at a time.

See Also

Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy