I am trying to insert/edit items in the TreeList using a pop-up template. The item’s fields being modified have no relation to its parent and the order under its parent is not in a predetermined order, but determined by the person performing the modification and must be maintained.
The inserting and update of the data source is handled manually. I’m trying to use as little server resources as possible. For the edit I can include the DataIndex as a bound field and get the value back in the UpdateCommand event. This does not work when inserting new items in the TreeList. In the ItemCreated, I can get the DataIndex and save it in a protected variable and reference it from the pop-up, but it is not passed back for the InsertCommand, it is not bound.
Any ideas on how the determine the DataIndex of the item which caused the pop-up for the insert/edit?
The inserting and update of the data source is handled manually. I’m trying to use as little server resources as possible. For the edit I can include the DataIndex as a bound field and get the value back in the UpdateCommand event. This does not work when inserting new items in the TreeList. In the ItemCreated, I can get the DataIndex and save it in a protected variable and reference it from the pop-up, but it is not passed back for the InsertCommand, it is not bound.
Any ideas on how the determine the DataIndex of the item which caused the pop-up for the insert/edit?