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
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Cannot add new row

Thread ID:

Created:

Updated:

Platform:

Replies:

141860 Jan 8,2019 02:56 PM UTC Jan 22,2019 10:58 AM UTC jQuery 3
loading
Tags: ejGantt
Tomasz Tomczykiewicz
Asked On January 8, 2019 02:56 PM UTC

Hi,

I have a problem with adding new rows to Gantt. When I try to add a new row, I get an error (check console).
I attached my code with the problem.
First, you have to open a terminal in the folder and install all npm packages (command "npm i"). Then you can open file index.html.

Best regards,
Tomasz Tomczykiewicz

Attachment: addRecord_805119cf.zip

Jayakumar Duraisamy [Syncfusion]
Replied On January 9, 2019 08:53 AM UTC

Hi Tomasz, 
We have analyzed the attached files and noticed that rowPosition property is assigned with “ej.TreeGrid.RowPosition.Above” in “addRecord” method. It is not a valid rowPosition for Gantt hence the reported issue occurs.  
Please find the valid enum values for Gantt row position: 
·         ej.Gantt.RowPosition.Top 
·         ej.Gantt.RowPosition.Bottom 
·         ej.Gantt.RowPosition.AboveSelectedRow 
·         ej.Gantt.RowPosition.BelowSelectedRow 
·         ej.Gantt.RowPosition.Child 
Please find the code example below: 
args.contextMenuItems.push({ 
                headerText: 'task', 
                menuId: 'AddAboveMilestone', 
                parentMenuId: 'AddAbove', 
                eventHandler: function (args) { 
                this.addRecord(args.data, ej.Gantt.RowPosition.AboveSelectedRow); 
                } 
            }); 
We have also modified the attached sample for your reference. Please find the sample from below location 
Please let us know, if you need any other assistance. 
 
Regards, 
Jayakumar D 


Tomasz Tomczykiewicz
Replied On January 22, 2019 10:28 AM UTC

Hi Jayakumar,

Thank you for your help. It solved my problem.

Best regards,
Tomasz Tomczykiewicz

Jayakumar Duraisamy [Syncfusion]
Replied On January 22, 2019 10:58 AM UTC

Hi Tomasz, 
Thanks for your update. 
We are glad to hear that your problem was resolved.  
Regards, 
Jayakumar D 


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