Issue with setting up control for CustomValue

I am no longer getting the popup to enter in custom data this is due to a change in how I get my data with the get request it returns and array " value" which has seem to have broken the combobox's ability to filter data and to see if an Item already exists so I no longer get the option to add in new data. 


What do I have to do to resolve this I am not sure how I should build the query using the "value" keyword ... 

example data returns like the following 
{
    "@odata.context""https://localhost:5001/odata/$metadata#Categories",
    "value": [
        {
            "Id"1,
            "categoryName""Computers"
        },
        {
            "Id"2,
            "categoryName""Tools"
        },
        {
            "Id"3,
            "categoryName""Furniture"
        },
        {
            "Id"4,
            "categoryName""New Category"
        },
        {
            "Id"5,
            "categoryName""Test Category"
        },
        {
            "Id"6,
            "categoryName""Toys"
        },
        {
            "Id"7,
            "categoryName""Horses"
        },
        {
            "Id"8,
            "categoryName""Another Category"
        },
        {
            "Id"9,
            "categoryName""Tables"
        },
        {
            "Id"38,
            "categoryName""Testnumbers11111"
        },
        {
            "Id"39,
            "categoryName""trdsfg"
        },
        {
            "Id"40,
            "categoryName""yuiyui"
        },
        {
            "Id"41,
            "categoryName""asd"
        },
        {
            "Id"42,
            "categoryName""Testnumbers111112"
        },
        {
            "Id"43,
            "categoryName""I am adding to add for you"
        }
    ]
}

any assistance would be helpful
thanks

5 Replies 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team February 18, 2021 03:01 PM UTC

Hi David,

Thanks for contacting Syncfusion support.

We have checked your query of adding custom data with OData datasource in to the ComboBox component. We have made sample for your convenience. Please find the sample below. If we misunderstand your query, kindly revert back with further more elaboration and if possible reproduce the reported issue in the attached sample.

Sample Link : https://codesandbox.io/s/combobox-no-records-template-odata-b91ic 
Regards,
Jeyanth. 



DW David Wisenbaugh February 18, 2021 05:32 PM UTC

I have made changes based on the example but I am getting a Request Failed for the noTemplateVue when typing in a new Item
not sure why Im getting the failure .. what can cause it to fail on the template ? 



BC Berly Christopher Syncfusion Team February 19, 2021 02:20 PM UTC

Hi David, 
  
In the shared sample, we have fetched the data from the OData adaptor service (Northwind) in the Customers table. We have specified the whole URL including Customers in the data manager definition as mentioned below. 
  
return { 
      data: new DataManager({ 
        adaptor: new ODataV4Adaptor(), 
        crossDomain: true 
      }), 
      fields: { text: "Con 
 
  
If we fetch the data without specifying the Customers then we can face the issue is “The Request Failed”.  So, the reported issue may be caused due to improper binding of query or fetch the data from the service. So, please share the code details for the component rendering the Query defined section that will help us to check and proceed further at our end. 
  
Regards, 
Berly B.C 


Marked as answer

DW David Wisenbaugh February 19, 2021 04:22 PM UTC

Issue has been resolved. looks like I needed to update the component via npm .. all is working correctly now . thank you for your assistance.



BC Berly Christopher Syncfusion Team February 22, 2021 07:06 AM UTC

Hi David, 

We are glad to know that the issue is resolved at your end. Please let us know if you need further assistance on this. 

Regards, 
Berly B.C 


Loader.
Up arrow icon