Field required not going away for treedropdown in treegrid

I have a DropDownTree in my treegrid. As I fill in the required fields, The "This field is required" call out disappears for all of the fields except for the DropDownTree.

Is there a way to prevent this from hap


field required not going away.jpg


    <e-column field="category" headerText="Category" [validationRules]="required" [edit]='editOptions'
      [customAttributes]="customAttributes"></e-column>    

    this.editOptions = {
      create: () => {
        this.elem = document.createElement('input');
        return this.elem;
      },
      read: () => {
        return this.dropDownTreeObj.text;
      },
      destroy: () => {
        this.dropDownTreeObj.destroy();
      },
      write: (args: { rowDataObjectcolumnColumn }) => {
        this.dropDownTreeObj = new DropDownTree({
          fields: this.fields
        });
        this.dropDownTreeObj.text = (args.rowData as Transaction).category;
        this.dropDownTreeObj.cssClass = "mytree";
        this.dropDownTreeObj.showClearButton = true;
        this.dropDownTreeObj.popupWidth = "300px";
        this.dropDownTreeObj.appendTo(this.elem);
        this.dropDownTreeObj.allowFiltering = true;
      }
    };

4 Replies 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team September 29, 2021 01:56 PM UTC

Hi Zachary, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: As I fill in the required fields, The "This field is required" call out disappears for all of the fields except for the DropDownTree. 
 
We can reproduce the issue at our end. Since it occurs from our dependent control, we have passed the same to them. We will provide further details on or before 1st October 2021. 
 
In the mean time, please share us your complete Tree Grid rendering code (along with event codes, custom attribute codes) and video demo of the issue which would help issue confirmation and validation. 
 
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 



PS Pon Selva Jeganathan Syncfusion Team October 1, 2021 09:45 AM UTC

Hi Zachary,   
 
Thanks for your patience. 
 
On further analyzing, the validation is disappeared when only focus out of the dropdown list, which is the default behavior.  
 
Please refer to the below screenshot, 

 


 


Kindly get back to us for further assistance. 
 
Regards,            
Pon selva 


Marked as answer

ZA Zachary October 1, 2021 06:06 PM UTC

Thanks for the update Pon. For this issue i was focusing out of the dropdownlist by clicking tab. However, I had to switch to a different control so if you want to close this one out I understand.



PS Pon Selva Jeganathan Syncfusion Team October 4, 2021 09:49 AM UTC

Hi Zachary 
 
Thanks for the update. 
 
Kindly get back to us for further assistance. We are happy to assist you. 
   
Regards, 
Pon selva 



Loader.
Up arrow icon