Show cool things you have done with our products


Post by Dev_Coppelis »

When try to edit any column in grid save button not active and reset to the old value and show error on console
Attachments
Edit Issue
Edit Issue
Untitled2.png (97.69 KiB) Viewed 4502 times

Post by mats »

Please post the data sent to and received by the server

Post by Maxim Gorkovsky »

I assume you pass 'assoonaspossible' constraint to the client. Our gantt only supports ASAP planning, so all tasks are such by default. Do not pass this constraint, just emty string instead.

Post by Dev_Coppelis »

Hi,

What do you mean by "Our gantt only supports ASAP planning" ?
Please note that :
- ASAP is the default Constraint value for each task in MS Project
- the same MS Project file imported in the first version of your code is working good. So we suppose that there is an issue within the latest code.

Please advice.

Post by Maxim Gorkovsky »

I mean that every task behaves like it has 'assoonaspossible' constraint, unless different constraint is set. For list of supported types see this doc: https://www.bryntum.com/docs/scheduling ... traintType

Again, you should not pass 'assoonaspossible' constraint to the client side. Inspect response from server, make sure this value is not present.

In our demo, in MPXJImport project, we ignore ASAP and ALAP constraints:
private static Dictionary<ConstraintType, string> constraintType = new Dictionary<ConstraintType, string>()
{
    //{ ConstraintType.AS_LATE_AS_POSSIBLE, "aslateaspossible" },
    //{ ConstraintType.AS_SOON_AS_POSSIBLE, "assoonaspossible" },
    { ConstraintType.FINISH_NO_EARLIER_THAN, "finishnoearlierthan" },
    { ConstraintType.FINISH_NO_LATER_THAN, "finishnolaterthan" },
    { ConstraintType.MUST_FINISH_ON, "mustfinishon" },
    { ConstraintType.MUST_START_ON, "muststarton" },
    { ConstraintType.START_NO_EARLIER_THAN, "startnoearlierthan" },
    { ConstraintType.START_NO_LATER_THAN, "startnolaterthan" },
};

Post by Dev_Coppelis »

Hi,
After rebuilding all the solution, seems to be working good now.
Thanks

Post Reply