We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid updating

Thread ID:

Created:

Updated:

Platform:

Replies:

150382 Jan 4,2020 08:00 PM UTC Jan 6,2020 12:49 PM UTC ASP.NET Web Forms 1
loading
Tags: Grid
Alfonso
Asked On January 4, 2020 08:00 PM UTC

Good day
The solutions has gave to me in other queries it works to me and thanks for them.

and now i have another querie, when update the grid for first time works fine but i try again doesn´t works and show errors on libraries of syncfusion and i don't know how fix it.

i can´t use the "foreing key adapthor" than cause problems to me with columns with autocomplete data and don´t grab me then values on fields and dont go to the function on server code that update on Webservice that use for uptade in my Database.

attach Code and video for demonstrate this case.

Thank you for your support, best regards.

Attachment: AdvicePool_c89d9f2c.7z

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On January 6, 2020 12:49 PM UTC

Hi Alfonso, 

Thanks for contacting Syncfusion Support. 

We have checked your reported problem while using your code example when we use EditTemplate we need to save the Edited values using read function of the EditTemplate. But in your code example you doesn’t return any values while on Read action. 

Refer to the code example:- 

<script>  
       function create() { 
            return $("<input>"); 
        } 
 
        function write(args) { 
 
            var proxy = args; 
            var record = args.data; 
            if (!args.element.closest("#gridEditForm").hasClass("e-waitingpopup")) 
                args.element.closest("#gridEditForm").ejWaitingPopup(); 
            args.element.closest("#gridEditForm").ejWaitingPopup("show") 
            $.ajax({ 
                type: "POST", 
                url: "/Default.aspx/Data2", 
                dataType: "json", 
                contentType: 'application/json; charset=utf-8', 
 
                success: function (data) { 
                    var dropData = data.d; 
                    args.element.ejAutocomplete({ 
                        width: "100%", dataSource: dropData, emptyResultText: 'No hay sugerencias', enableAutoFill: false, highlightSearch: true, allowFiltering: true, filterType: "Contains", fields: { text: "text", key: "value" },  
                            multiColumnSettings: { 
                                      enable: true, showHeader: true, 
                                       stringFormat: "{0}", 
                                       width: "1000", 
                                        searchColumnIndices: [0, 1], 
                                        columns: [ 
                                             { "field": "Descripcion", "headerText": "Descripción" }, 
                                       ] 
                         },value: proxy.rowdata.ShipCity,highlightSearch: true, watermarkText: "Select Product Code" 
                    }); 
 
                } 
 
            }); 
                                                  
 
        } 
                                                    
        function read(args) { 
 
            args.ejAutocomplete('suggestionList').css('display', 'none'); 
            return args.ejAutocomplete("getValue"); 
        } 
        
</script> 

Refer to the below KB Link:- 
 
Please ensure that you have followed the suggestion given above. Still facing issue, please get back to us with further details. 
 
Regards, 
Farveen sulthana T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon