skins

TreeList - Manual data editing

Next database reset in 1 hours, 20 minutes, 18 seconds

ID

Last Name

First Name

Title

Notes

ReportsTo

2

Fuller

Andrew

Dr.

Andrew received his BTS commercial in 1974 and a Ph.D. in international marketing from the University of Dallas in 1981. He is fluent in French and Italian and reads German. He joined the company as a sales representative, was promoted to sales manager in January 1992 and to vice president of sales in March 1993. Andrew is a member of the Sales Management Roundtable, the Seattle Chamber of Commerce, and the Pacific Rim Importers Association.

This demo shows how to manually update/insert items to the database. The new values
are extracted from the current item using the ExtractValues method.

Note that, when inserting a child item to a parent data item, the foreign key values (the ReportsTo
field in our case, specified by the ParentDataKeyNames array in RadTreeList) are
extracted into the Hashtable with ExtractValues. We need to check if the foreign
key is present in the Hashtable and add it to the insert parameters. When inserting
a root item, however, foreign keys are not populated and thus, DbNull should be
explicitly added as a foregn key.