I have a grid and when they select a row it brings up a dialog box with a textbox and a combobox. The data is being sent to the dialog box but the dropdown is not selecting the correct value.
Here's my code:
When they select a row I call a method:
var row = $('#dgCategory').datagrid('getSelected');
if (row){
$('#dlgCategory').dialog('open').dialog('setTitle','Edit Category');
$('#frmCategory').form('load',row);
url = 'Category/UpdateCategory.php?orgid='+_selectedOrganization + '&categoryid=' +row.categoryid;
}
Here's the html code for the dialog box:
<div id="dlgCategory" class="easyui-dialog"
style="width: 300px; height: 180px; padding: 10px 20px"
closed="true" buttons="#dlgCategory-buttons">
<form id="frmCategory" method="post">
<div class="fitem">
<input name="categoryid">
</div>
<div class="fitem">
<input name="category">
</div>
<div class="fitem">
<label>Category:</label> <input id="cboCategory"
class="easyui-combobox" name="cboCategory"
data-options="valueField:'id',textField:'text',url:'Lookups/Lookup.php?id=56660623-9932-42AD-AF88-8554618B4997', required:'true', panelHeight:'auto'">
</div>
</form>
</div>
Thanks