I have a RadGrid with a custom edit form (FormTemplate
). The grid is in an UpdatePanel
for asynchronous postbacks, as changing the selection in drop down lists and checkboxes needs to enable or disable other controls on the form. (Updating the controls synchronously is not acceptable to the user.)
As part of the edit form, I have a FileUpload
control, but this does not upload the files when in an update panel.
I have tried adding the Insert/Update button as a PostBackTrigger
on the UpdatePanel
, but this causes an error on page load, as the UpdatePanel
cannot find the control (the edit form is not open on load).
Is there a way to add/remove the trigger at runtime when the form is opened/closed?
Or is it possible to have the FileUpload
s work with the async-postback?