[CLOSED] Dynamic panel construction on ajax event

  1. #1

    [CLOSED] Dynamic panel construction on ajax event



    Hi there,


    I have to dynamically generate a panel with some controls on an ajax event. I tryed the following code but it doesn't work


    Dim pnlProfilazione As New Coolite.Ext.Web.Panel
    For i As Int32 = 0 To dt.Rows.Count - 1
        Dim lbl As New Label
        lbl.Text = i + 1 & ". " & dt.Rows(i)("NOME_CATEGORIA")
        Dim chk As New Coolite.Ext.Web.Checkbox
        pnlProfilazione.Controls.Add(lbl)
        pnlProfilazione.Controls.Add(chk)
    Next
    How can i solve?

    Hope it's clear

    Lex
  2. #2

    RE: [CLOSED] Dynamic panel construction on ajax event

    Hi Lex,

    Currently the <AjaxEvents> do not support dynamic creation. To modify the controls during an AjaxEvent, the Control must be present on the Page during the initial Page_Load. The Coolite Controls can be hidden on initial Page_Load by setting the .Hidden property.


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Create a dynamic event for dynamic components.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: May 10, 2011, 9:16 PM
  2. Replies: 0
    Last Post: Oct 17, 2010, 3:20 PM
  3. [CLOSED] hiding/displaying dynamic panel on ajax postback
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: May 14, 2010, 10:06 AM
  4. Replies: 9
    Last Post: May 10, 2010, 5:56 AM
  5. [CLOSED] Before event of a ajax event.
    By Riset in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 27, 2009, 12:07 PM

Posting Permissions