Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Is that possible to add a WebDateChooser dynamically?

Last post 08-30-2008 23:45 by ramolam. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-25-2008 21:13

    Is that possible to add a WebDateChooser dynamically?

    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!

     

    • Post Points: 20
  • 07-26-2008 0:48 In reply to

    Re: Is that possible to add a WebDateChooser dynamically?

    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. 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 08-30-2008 23:45 In reply to

    • ramolam
    • Not Ranked
    • Joined on 08-30-2008
    • Points 45

    Re: Is that possible to add a WebDateChooser dynamically?

    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 = New Infragistics.WebUI.WebSchedule.WebDateChooser()

    cDate.Attributes.Item("style") = "LEFT: " + intLeft + "; POSITION: absolute; TOP: " + intTop

    cDate.NullDateLabel = ""

    cDate.ReadOnly = False

    cDate.ID = SQLDataTable.Rows(iIndice)("Field").ToString()

    oTab.ContentPane.Controls.Add(cDate)

     

    Thank you in advance,

    Oscar

    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems