Aug 28, 2018, 5:27 PM
[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:
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:
Thank You
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 prefectlyBut 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 eitherThank You
Last edited by fabricio.murta; Oct 06, 2018 at 12:17 AM.