So I'm successfully binding my resources to the AdvancedForm template, but there is a scenario that I haven't been able to find a solid answer for.
For one of the RadComboBox-es, I want to take the selected value, post it back, and rebind the resource dropdown below it. An example is a client has particular services assigned to them, so when the client selection changes, I need just the services they have available to be rebound.
I'm actually to the point that I have the combo box posting back and rebinding accordingly, but now for some reason, the combo box that posts back (also a resource, the Client resource) is no longer attached to the appointment. So when I insert the appointment, the 2 other resources I have are in the collection on the Appointment, but not the Client resource.
My major hang up is that the ResourceControl is used on the AdvancedForm control and I'm not really quite sure how to get directly to the ResourceControl and its child controls without doing a bunch of FindControl (which is what I'm doing now)
The strange thing is that on the SelectedIndexChanged handler that's firing, if I look at the Appointment property that I have on the code-behind class, all 3 resources are there and assigned successfully. After that event is completed and move to an insert/update, for some reason the Client resource gets dropped off the appointment.
For one of the RadComboBox-es, I want to take the selected value, post it back, and rebind the resource dropdown below it. An example is a client has particular services assigned to them, so when the client selection changes, I need just the services they have available to be rebound.
I'm actually to the point that I have the combo box posting back and rebinding accordingly, but now for some reason, the combo box that posts back (also a resource, the Client resource) is no longer attached to the appointment. So when I insert the appointment, the 2 other resources I have are in the collection on the Appointment, but not the Client resource.
My major hang up is that the ResourceControl is used on the AdvancedForm control and I'm not really quite sure how to get directly to the ResourceControl and its child controls without doing a bunch of FindControl (which is what I'm doing now)
The strange thing is that on the SelectedIndexChanged handler that's firing, if I look at the Appointment property that I have on the code-behind class, all 3 resources are there and assigned successfully. After that event is completed and move to an insert/update, for some reason the Client resource gets dropped off the appointment.