So copying the code from the example here - of which, this example does not render in the preview tab within the syncfusion site:
https://ej2.syncfusion.com/javascript/documentation/grid/edit/?no-cache=1#dialoginline-template
Produces double field labels in the Add / Edit popup dialog. If you set the dropdown placeholder to '', then only one is shown but then the grid column label does not float.
Code:
columns: [
{ field: 'category_id', headerText: 'Category', allowGrouping: true,
validationRules: { required: true }},
function actionComplete(args) {
// console.log(resolveReferences(args));
if (args.requestType === 'beginEdit'||args.requestType === 'add') {
new ej.dropdowns.DropDownList({value: args.rowData.category_id,
dataSource: categories, fields: {text: 'name', value: 'id'}, popupHeight: '200px', floatLabelType: 'Always',placeholder: 'Category'}, args.form.elements.namedItem('category_id'));
Generated Output:
<div class="e-float-input e-control-wrapper"><div class="e-float-input e-control-wrapper e-input-group e-ddl e-lib e-keyboard" tabindex="0" aria-disabled="false" aria-owns="Gridcategory_id_options" role="listbox" aria-haspopup="true" aria-expanded="false" aria-activedescendant="null" aria-live="polite" aria-labelledby="label_Gridcategory_id" value="" e-mappinguid="grid-column169" style="width: 100%;"><select aria-hidden="true" tabindex="-1" class="e-ddl-hidden" name="category_id" id="Gridcategory_id_hidden"></select><input class="e-field e-defaultcell e-lib e-dropdownlist e-control" type="text" value="" e-mappinguid="grid-column169" id="Gridcategory_id" style="" aria-labelledby="label_Gridcategory_id" role="textbox" readonly="" tabindex="-1" aria-disabled="false"><span class="e-float-line"></span><label class="e-float-text e-label-top" id="label_Gridcategory_id" for="Gridcategory_id">Category</label><span class="e-input-group-icon e-ddl-icon e-search-icon"></span></div><span class="e-float-line"></span><label class="e-float-text e-label-top" id="label_Gridcategory_id" for="Gridcategory_id">Category</label></div>
Also, maybe I am dumb, but how do we format code in the forum edit window? Is it back ticks or what? The UI doesn't show any tools for that and sometimes when I copy paste, it looks correct and then sometimes not.
Thank you all for your hard work!!!