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. Image for the cookie policy date
close icon

Dialog Issue

Hello,

I have implemented the gantt controller in my application. 
Everything works fine in the beginnig, but after some time, is giving me this error when i try to save a task data only from the dialog.
The editing on the gant (move taks, increase,decrease times, indent, outdent) is working fine.
Just on the dialog editing or adding is giving me error after i force an update of the gantt controller.

The only solution that i found is to destroy the controller and re-create it.

Can you help me ??

After first Bind, on saving from edit dialog, data field have content:

After second Bind (refresh), on saving from edit dialog, data field is null:


1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team October 30, 2018 12:45 PM UTC

Hi Joao Gama, 
Thanks for using Syncfusion product.  
We have analyzed the reported problem, and we are not able to replicate the issue in our end. We have subscribed to set of events while adding/editing data, and in all these events we could get the added/edited data. We suspect that you are manipulating the data in client-side which is  the cause since we could get the saved data while editing and sent it to the server.   
Code Snippet
[aspx]  
<ej:Gantt ID="Gantt" 
//… 
  ActionComplete="actionComplete"> 
<script type="text/javascript"> 
            function actionComplete(args) { 
                 if (args.requestType == "save") { 
                    var data = args.modifiedRecord; 
                    PageMethods.getData(data); 
                } 
            } 
   </script> 

[aspx.cs]  
public partial class GanttSample : System.Web.UI.Page 
    { 
[WebMethod] 
        public static void getData(BusinessObject record) 
        { 
            var tasks = record; 
        } 
//… 
} 

Please get back to us if you need any further assistance.  
Regards,  
Jesus Arockia Sankaran S 


Loader.
Live Chat Icon For mobile
Up arrow icon