I see the same issue on your pages
so my question is whether there is any way to prevent this, because when there are many columns, the last borders are seriously damaged as you can see:
Since printing from the scheduler uses the current view, I was would like to make the view be 2 months.
Am trying to show multiple projects and only 30 days worth isn't quite doing it.
SIMILARLY,
if I'm in near the end of the month, showing the Timeline Month view only shows me a few days into the future - I don't care about past days.
Is there a way to set the STARTING DATE in a month view?
IF SO, perhaps specifying an ENDING DATE is the answer to my first question (Start + 60).
Thx
Jaymer...
Hello,
We have a grid with a default grouping applied to it, and are trying to persist the expanded groups through a read operation (remote datasource).
We have been successful in persisting them through some operations using the following code:
function getExpandedGroups() {
expandedGroups = [];
try {
let groupRows = $(".k-grouping-row");
for (let i = 0; i < groupRows.length; i++) {
let e = groupRows[i];
let expanded = e.children[0]["ariaExpanded"];
if (expanded === "true") {
let groupName = $(e).find(".k-reset").text();
let slicePos = groupName.lastIndexOf(" (");
groupName = groupName.slice(0, slicePos);
expandedGroups.push(groupName);
}
}
}
catch { }
return expandedGroups;
}
function restoreExpandedGroups() {
try {
groupRows = $(".k-grouping-row");
for (let i = 0; i < groupRows.length; i++) {
let e = groupRows[i];
let groupName = $(e).find(".k-reset").text();
let slicePos = groupName.lastIndexOf(" (");
groupName = groupName.slice(0, slicePos);
if (expandedGroups.includes(groupName)) {
attachmentTable.expandGroup(e);
}
}
}
catch { }
}
which works fine if our code calls the read event, since we can execute it before and after eg.
let expandedGroups = getExpandedGroups();
attachmentTable.dataSource.read().then(function () {
restoreExpandedGroups(expandedGroups);
});
however, when we use any of the grid functionality like sorting on a column, there doesn't seem to be any events that we can subscribe to that occur after the grid sets the groups back to their collapsed state, and we aren't able to persist the grouping in the same way.
Are there any potential workarounds for this issue?
Thanks
Regards,
Will Douglas
Using the Kendo UI Dojo, I have the code seen at the bottom. There are also two screenshots.
If you run this, you will find that the child elements are widely spaced apart even though their own content is small. If I change the value of item ID 1 to 10 characters, the spacing shrinks to reasonable distances (see screenshots below). I don't understand why the parent width should affect the child widths. Is there any way for me to correct this?
Thank you,
Tom Clark
<!DOCTYPE html>
<html>
<head>
<base href="https://demos.telerik.com/kendo-ui/orgchart/index">
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
<title></title>
<link href="https://kendo.cdn.telerik.com/themes/7.0.2/default/default-main.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2023.3.1114/js/kendo.all.min.js"></script>
<style>
.k-card {
border: none !important;
background-color: inherit !important;
}
.k-orgchart-card {
width: auto !important;
}
.k-orgchart-node-group-container {
padding: 0 !important;
}
.k-button {
cursor: default !important;
outline: none !important;
}
.k-orgchart-line-v, .k-orgchart-line-h {
color: #000000 !important;
}
.org-chart-item {
padding: 10px 15px 10px 15px !important;
white-space: nowrap !important;
font-size: 12px !important;
}
</style>
</head>
<body>
<div id="example">
<div id="orgchart"></div>
<script>
var data = [
{ id: 1, name: "123456789012345678901234567890", expanded: true },
{ id: 2, name: "Clevey Thrustfield", parentId: 1 },
{ id: 3, name: "Carol Baker", parentId: 1 },
{ id: 4, name: "Kendra Howell",parentId: 1 },
{ id: 5, name: "Sean Rusell",parentId: 1 },
{ id: 6, name: "Steven North", parentId: 1 },
{ id: 7, name: "Frank Furter", parentId: 1 }
];
$("#orgchart").kendoOrgChart({
dataSource: data,
collapse: function (e) { e.preventDefault(); },
editable: false,
groupField: "name",
groupHeaderTemplate: "",
template: `<div class="org-chart-item">#: name #</div>`
});
</script>
</div>
</body>
</html>
DISPLAY WHEN PARENT WIDTH IS LARGE:
DISPLAY WHEN PARENT WIDTH IS SMALL:
I have a kendo grid with inline editing and would like to put the edit and delete button inside a dropdown.
Before code:
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(70);
I came up with the following markup
columns.Bound(x => x.Id).Title(" ").IncludeInMenu(false).ClientTemplate(
@"<div class='btn-group'>
<a role='button' class='k-button k-button-icontext k-grid-edit' href='\\#'><span class='k-icon k-i-edit'></span>Edit</a>
<a class='k-button k-button-icontext dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
<span class='caret'></span>
</a>
<ul class='dropdown-menu'>
<li><a role='button' class='k-button k-button-icontext k-grid-delete' href='\\#'><span class='k-icon k-i-close'></span>Delete</a></li>
</ul>
</div>")
.Width(80);
Dear support,
We are using kendo UI for jQuery editor and we have a question about editorTools "forecolor" and "backcolor" from the toolbar.
Could you please tell us if it's possible to display the 2 modes(palette and gradient) together, from our version of kendo : 2019.1.115 ?
Like for example this colorPicker : https://dojo.telerik.com/EWahuGuM
Best Regards,
Hamza.