I'm looking for some advice on the best practice to achieve something:
We have a hierarchical grid:
(category) RadGrid with MasterTableView
(metric) which has a DetailTable (GridTableView)
(alarms) which has a DetailTable (GridTableView)
which has an EditFormSettings (template) - FormTemplate
which shows a custom control to edit the alarm
(either a new alarm or amend existing alarm)
(custom control is loaded from a placeholder in the FormTemplate - probably not best?)
The structure is working well, and we can drill down correctly through the hierarchy. My question is (and where I'd like some advice) - the custom control (lets call it the AlarmEditor) needs to know information about the hierarchy that has been traversed to reach it. How is it best to pass and persist this information?
At the moment the AlarmEditor is created in the Load event of the Placeholder inside the FormTemplate -- I'm not totally sure this is necessary. Additionally i've hooked into the ItemCommand of the Alarms detail table to attempt to capture the key information I need -- I can get it at this point, but how do I forward it to the AlarmEditor which hasn't been created at this point?
I would be very grateful if you could offer suggestions on best practice to achieve this goal. At the moment i've tried to pass minimal key information down (with limited success), ideally I'd like to pass the DataItem down, or a more structured object.
Thankyou.