Hello,
I have a user control inside an update panel with a radgrid inside of the user control. Further, the radgrid contains a command item template which contains controls such as radbutton and radcombobox. On the client, during the application load event, I $find various controls within the grid's command template and add client side event handlers (e.g. button --> add_clicking). This works perfectly on the initial page load. However, during an update panel post back, the initial user control is swapped out for a different user control by setting one control's visibility to false and the other's to true. The second control is made visible and the first is made invisible as I would expect. However, when I try to repeat this process in order to bring back the initial user control I encounter a problem. I can still $find the radgrid control located within the initial user control, but I can no longer $find the controls within the grid's command item template. It acts as though the client side initialization scripts for the command template items might not have been executed as part of the update panel post back. Does this make sense and what can I do to resolve this?
Thanks.
I have a user control inside an update panel with a radgrid inside of the user control. Further, the radgrid contains a command item template which contains controls such as radbutton and radcombobox. On the client, during the application load event, I $find various controls within the grid's command template and add client side event handlers (e.g. button --> add_clicking). This works perfectly on the initial page load. However, during an update panel post back, the initial user control is swapped out for a different user control by setting one control's visibility to false and the other's to true. The second control is made visible and the first is made invisible as I would expect. However, when I try to repeat this process in order to bring back the initial user control I encounter a problem. I can still $find the radgrid control located within the initial user control, but I can no longer $find the controls within the grid's command item template. It acts as though the client side initialization scripts for the command template items might not have been executed as part of the update panel post back. Does this make sense and what can I do to resolve this?
Thanks.