We have a custom user control (let's say Prices.ascx) which is responsible for dynamically creating a number of RadNumericTextbox based on the configuration of a specific object. For example when WidgetA we display 10 price fields dynamically. This user control works fine on any normal form.
Let's say we have a grid that provides a list of Widgets. We are using a user control edit form for the widget. The edit form also includes the custom Prices user control. In ItemDataBound we call a method on the Prices user control to dynamically create the inputs based on which Widget we are editing. This display and binding previous price entries works fine.
So we have
Grid
with WidgetEditControl
with Prices user control
On Grid ItemDataBound we call LoadPrices(id) method on the WidgetEditControl which calls another method on the Prices user control which dynamically adds the inputs needed
When attempting to pull in the data to save on the grid update command the viewstate and properties of the Prices user control are lost and we therefore can't pull them in to update. Is there a way the prices user control can be added and/or bound so that when the update command on the grid fires the data from the prices user control is still available?
Let's say we have a grid that provides a list of Widgets. We are using a user control edit form for the widget. The edit form also includes the custom Prices user control. In ItemDataBound we call a method on the Prices user control to dynamically create the inputs based on which Widget we are editing. This display and binding previous price entries works fine.
So we have
Grid
with WidgetEditControl
with Prices user control
On Grid ItemDataBound we call LoadPrices(id) method on the WidgetEditControl which calls another method on the Prices user control which dynamically adds the inputs needed
When attempting to pull in the data to save on the grid update command the viewstate and properties of the Prices user control are lost and we therefore can't pull them in to update. Is there a way the prices user control can be added and/or bound so that when the update command on the grid fires the data from the prices user control is still available?