Hi,
I am trying to set the selected property on a dropdown control when editing an existing record in a grid control.
When the Dialog form is shown, I make an ajax call to the controller to populate the dropdown control using these grid events if (args.requestType == "beginedit" || args.requestType == "add")
After the control is loaded, I execute the following code.
$("#CountryCode").find("option:contains('GBR')").each(function ()
{
if ($(this).text() == 'GBR')
{
$(this).attr("selected", "selected");
}
});
The dropdown control does not show any text in the dropdown area. However when clicking on the control I can select from the values added from the ajax call.
Is there something obvious I am doing something wrong.
Thanks fro your help.