[CLOSED] Get the value of a Dynamically created Checkbox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Get the value of a Dynamically created Checkbox

    Hi,

    I've created a few Textboxs and one Checkbox dynamically in a DirectEvent.
    When I want to gather the Textbox value I do this:

     string cantidadfield = X.GetCmp<TextField>("iDcantidad").Text;
    And it works prefectly

    But Checking if the Checkbox is Checked or not is being impossible. How can I do this?
    Last thing i've tried was something like this:
     if(X.GetCmp<Checkbox>("IDpack").Checked)
                    {
                        pack = 0;
                    }
                    else
                    {
                        pack = 1;
                    }
    But is not working either

    Thank You
    Last edited by fabricio.murta; Oct 06, 2018 at 12:17 AM.

Similar Threads

  1. Help with controls created dynamically.
    By Master15 in forum 3.x Help
    Replies: 3
    Last Post: Feb 20, 2016, 3:56 AM
  2. Buttons created dynamically don't appear
    By Prybe in forum 2.x Help
    Replies: 3
    Last Post: Aug 22, 2014, 8:13 PM
  3. Replies: 1
    Last Post: Nov 05, 2013, 2:12 AM
  4. Replies: 3
    Last Post: May 29, 2013, 3:49 AM
  5. [CLOSED] [1.0] Dynamically load checkbox in Checkbox Group
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 14, 2010, 5:05 PM

Posting Permissions