I am facing an issue where the server data is not displayed in a Rad Textbox until I click on it using JavaScript. The data is being populated correctly inside the textbox, but it remains invisible until clicked.
function fillTextBox(name, sku, plu, nameBox, sBox, pBox) {
sBox.value = sku;
pBox.value = plu;
nameBox.value = name;
$find('mdlPopup').hide();
}
I am passing parameters in the button's onClick event within a Gridview like this:
button.Attributes.Add("onClick", string.Format("fillTextBox('{0}',{1},{2},{3},{4},{5});",
e.Row.Cells[0].Text.Trim(), e.Row.Cells[1].Text.Trim(), e.Row.Cells[2].Text.Trim(), FormViewAccident.FindControl("prodBox").ClientID,
FormViewAccident.FindControl("SBox").ClientID, FormViewAccident.FindControl("PBox").ClientID));
Although this method works, the issue persists where the textbox needs to be clicked for the data to display. Using a regular asp.net textbox works flawlessly, but it's not suitable for this particular project.