I tried to add a WebDateChooser dynamically in a page as the following:
WebDateChooser chooser = new WebDateChooser();
this.Controls.Add(chooser );
the chooser displays, but not function at all. Please help! Thanks!
I've seen similar problems before, they were related to the need to explicitly set ID of the data-chooser instance (because it is needed by the client-side functionality).
For example
WebDateChooser chooser = new WebDateChooser();chooser.ID = "WebDataChooser1";this.Controls.Add(chooser );
Please, let me know if this helps.
Hi Rumen, Im facing the same scenario, Im adding 5 webDateChooser controls at runtime, only the last created has functionality
this is the code:
cDate.Attributes.Item(
cDate.NullDateLabel =
cDate.ReadOnly =
oTab.ContentPane.Controls.Add(cDate)
Thank you in advance,
Oscar