Drodown List not filtering data after form validation with <editform>

Hello,
Currently I am running into a problem I have nto been able to figure out how to get around where when I have a form with synfusion like so:

When I go directly to the Dropdown first and start typing ( BTW AllowFiltering="true" is set) it will filter the data I want and drop down will have corret data. When I fill in the other fields first and the form validation triggers then when i type in the dropdown list it pulls no results but when you set a breakpoint on the api it is pulling from it does trigger.

The attached files contain the code and photos for reference.



Attachment: FilesForViewing_30b4ca5f.7z

3 Replies 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team March 15, 2021 09:06 AM UTC

Hello Thomas, 

Greetings from Syncfusion support. 

We have checked your query of Dropdownlist not filters the value after form is validated. We tried to reproduce the issue unfortunately we could not and dropdownlist is filtering value after form validataion. Here we have attached the ensured sample in the below link. Kindly check the sample and also we are in need of the below information to validate this issue further. 


  1. Syncfusion package version
  2. Client or Server side project
  3. Issue replication steps.
  4. Code snippet of Syncfusion components rendering part and its associated APIs and callbacks.
  5. If possible, reproduce the reported issue in the attached sample.

Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Dropdownlist_WebAPI-868383982

The above details would help us to validate the issue further and provide you a better solution from our end. 

Screenshot:


 
Initial Loading 
 
With valid fields 
 
With Invalid fields 
 

Regards, 
Jeyanth. 



TG thomas graffam March 16, 2021 01:04 AM UTC

Hello Jeyanth,

I appreciate you taking the time to look at this for me. 

I do see your example and i understand what you are doing now unfortunately my code does very quite a bit from yours and I execute your example it works totally fine. 

Now I am obviously using a dbcontext calling a query from SQL server using ef core 5.0. through a webapi. I have been trying to solve this now for a few days and still stumped. 

As long as none of the fields turn green or red and execute the validation it will pull results totally fine as soon as the validation triggers the dropdown will not populate with any data.

I as well did make my code as close to yours as possible with still calling from database etc. If there is any way you could do a more close replication of my code and see if it is an actual bug or something else?

Thank you very much for your time.

Regards,

Thomas


JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team March 16, 2021 01:24 PM UTC

Hello Thomas, 

Thanks for your update. 

We have made sample by querying values from database with an API controller as mentioned. Values returned from the controller are populated in to the dropdown. Please refer to the below example. If you still encounter issue, reproduce the reported issue in the attached project that would help us to validate further and provide you a finest solution from our end. 

Jeyanth 


Marked as answer
Loader.
Up arrow icon