Hi,
I'm using asp.net ajax tool and I create dynamically 3 RadNumeric TextBoxes with names RadNumTxt1, RadNumTxt2, RadNumTxt3.
I create the Text Boxes as follow:
for (int i = 1; i <= 3; i++){
RadNumericTextBox RadNumTxt = new RadNumericTextBox();
RadNumTxt .ID = "RadNumTxt" + i;
RadNumTxt.AllowOutOfRangeAutoCorrect = true;
RadNumTxt.Culture.CultureTypes.Equals("en-US");
RadNumTxt.DataType.BaseType.Equals("System.Double");
RadNumTxt.Display = true;
RadNumTxt.Enabled = true;
RadNumTxt.Visible = true;
RadNumTxt.ClientIDMode = System.Web.UI.ClientIDMode.Static;
PanelCompMembers.Controls.Add(RadNumTxt);
}
After rendering the page in browser the ids of the Numeric Texts Boxes have been changed into RadNumTxt1_text, RadNumTxt2_text, RadNumTxt3_text.
When I try to change the value of these inputs with javascript in client by using the new ids of the inputs like "RadNumTxt1_text" I change them, but when click on them the values that I have change disappeared. What I am doing wrong?
I'm using asp.net ajax tool and I create dynamically 3 RadNumeric TextBoxes with names RadNumTxt1, RadNumTxt2, RadNumTxt3.
I create the Text Boxes as follow:
for (int i = 1; i <= 3; i++){
RadNumericTextBox RadNumTxt = new RadNumericTextBox();
RadNumTxt .ID = "RadNumTxt" + i;
RadNumTxt.AllowOutOfRangeAutoCorrect = true;
RadNumTxt.Culture.CultureTypes.Equals("en-US");
RadNumTxt.DataType.BaseType.Equals("System.Double");
RadNumTxt.Display = true;
RadNumTxt.Enabled = true;
RadNumTxt.Visible = true;
RadNumTxt.ClientIDMode = System.Web.UI.ClientIDMode.Static;
PanelCompMembers.Controls.Add(RadNumTxt);
}
After rendering the page in browser the ids of the Numeric Texts Boxes have been changed into RadNumTxt1_text, RadNumTxt2_text, RadNumTxt3_text.
When I try to change the value of these inputs with javascript in client by using the new ids of the inputs like "RadNumTxt1_text" I change them, but when click on them the values that I have change disappeared. What I am doing wrong?