Guys are you able to help me to hide/disable just a popup box when double click on tasks? http://demos.telerik.com/php-ui/gantt/index
I could add->editable(false); just below:
[code]// gantt $gantt = new \Kendo\UI\Gantt('gantt'); $gantt->dataSource($tasks)->dependencies($dependencies)->height(650)->addView('', array('type' => 'week', 'selected' => false),'month')->addColumn($idColumn, $titleColumn, $startColumn, $endColumn)->showWorkHours(false)->showWorkDays(true)->snap(false)->editable(false);[/code]
But then I cannot edit anything.
Any clue? Thanks.
Hi ,
Can any one help me how to show all days in month view of gantt chart . I am using php
Hi Admins, is there any possible to Colorize Tasks in gantt [PHP] FOR EXAMPLE:
<script>
function onDataBound() {
var gantt = this;
gantt.element.find(".k-task").each(function(e) {
var dataItem = gantt.dataSource.getByUid($(this).attr("data-uid"));
// colorize task per business requirements
if (dataItem.id = 904) {
this.style.backgroundColor = "#f99";
} else {
this.style.backgroundColor = "#9f9";
}
});
}
</script>
But this dosen't work in php gantt, can you please help, and tell what is the way to get colored tasks depending on values for example:
$idField = new \Kendo\Data\DataSourceSchemaModelField('id');
$idField->type('number')
->from('ID')
->nullable(true);
Thanks
Hi, can you guys help me to format dates in gantt? If I've saving the times in the database, and there is something like Start - 2017-09-15T22:00:00.000Z, End - 2017-10-21T22:00:00.000Z Is there any way to remove this part of the data? 'T22:00:00.000Z'
I would like to save just only Start - 2017-09-15, End - 2017-10-21
Thanks
How can I set hyperlink to the GanttColumn?
I try it.
$column
=
new
\Kendo\UI\GanttColumn();
$column
->field(
'title'
);
$column
->title(
'Name'
);
$column
->editable(false);
$column
->format(
'#= <a href="www.google.hu">teszt</a>#'
);
$gantt
->addColumn(
$column
);
I built a testcase Gantt diagram with a PDF export and proxy for older browsers with everything working great.
Now I integrated this same code into our real-world project and the PDF export is no longer working. I disabled the proxy stuff and am testing in an up to date Chrome browser, these are my only PDF settings:
pdf: {
landscape:
true
,
margin: {
left: 10,
right: 10,
top: 10,
bottom: 10
}
},
I have the following resources included and they are loading properly:
The diagram shows about 20 tasks over a span of about 2 years in month view.​
I see no errors in the console, just that it's loading the DejaVu font successfully.
When clicking PDF export a "PDF" file is exported and downloaded, however if I open the PDF in a text editor it's just the HTML source code of the page.
Since the kendo JS files are all minified I cannot really provide any more information, it's a bit of a black box.
Also, when clicking PDF export, the Gantt diagram is suddenly expanded to full page width (there's a sidebar on the left side of the page). Why is this?
One last question: I have some tasks that do not yet have a date but I would like to show them in the diagram anyway. If I do this, the diagram is no longer correct, the "older" dated tasks are no longer shown in the timeline. Instead the timeline is set to the current date and the only task shown in the timeline is one which has a end date later than today. Is it possible to display tasks without assigning a date?
Please let me know if I can provide any more information.Thank you.
I downloaded the example and loaded it on my test server. The gantt chart loads initially empty. When I click "Add Task" I get an error in the console "Uncaught TypeError: Cannot read property 'start' of undefined kendo.all.min.js:52".
I tried in Chrome and Firefox, same problem.
Any help on what's wrong here?