ejs-dropdownlist call to the API every time click on it.

Hello,

I'm using the example from the synfusion documentation, but for some reason every time I click on the dropdown it will fetch the items from my controller but never show me the values.

I can see the answer in the browser console, but I can't see them in the dropdown.


it never open.



I'm using:

    <link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/20.2.43/fluent.css" />

    <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>


And this is the controller:

                            <div id='url-data' class='col-lg-6' style='padding-top:15px'>

                                <div class='content'>

                                    <ejs-dropdownlist id="country" placeholder="Select a Country" query="@query">

                                        <e-data-manager adaptor="UrlAdaptor" url="/Administration/GetGroups" crossDomain="true"></e-data-manager>

                                        <e-dropdownlist-fields value="ProductName"></e-dropdownlist-fields>

                                    </ejs-dropdownlist>

                                </div>

                            </div>

Thank you guys!


3 Replies

FE Fercap September 14, 2022 08:49 PM UTC

One more thing, should I add something else to that dropdownlist to be able to filter the result? That is, to weigh type some string and filter the values it shows?


I am basing myself on this example but using NET Core:

https://jsplayground.syncfusion.com/zi53drhj

I need a solution like this.



FE Fercap September 15, 2022 02:33 PM UTC

I solved the previous problem but looking at the api, it seems that it is not possible to do virtual scrolling in ejs, is this so? there is no way to do it?





UD UdhayaKumar Duraisamy Syncfusion Team September 20, 2022 04:42 AM UTC

Hi Fernando,


We considered the reported requirement “Provide support to virtual scrolling for DropDown components” as feature at our end and this support will be included in any one of our upcoming releases. We will implement the feature based on the customer request count and priority.   

   

You can track the status of the requested requirement from the below feedback link.   


Link: https://www.syncfusion.com/feedback/9773/ 

    

To make it count, please cast your vote. We will prioritize the features based on the demands of each release.  If you have more specifications / suggestions on the request for the feature, you can add it to the portal as a comment.    


Regards,

Udhaya Kumar D



Loader.
Up arrow icon