How do I change the TEXT color of the kendo grid edit button for Inline editing?
Thanks
Justin
Hi,
Can i bind a flat data table to a PivotGridV2?
Thanks
Giulio
Hey guys,
currently I have an use-case where I could need a radio group with some standard text options but one radio with a dropdownlist.
With googling I could find only one question similar to this with a solution in kendoReact.
Is there a best practice solution to realize this in .NET Core?
https://www.telerik.com/forums/dropdownlist-with-radio-button-not-working
And a working example here: https://stackblitz.com/edit/react-1gnbzt?file=app/main.jsx
Cheers!
EDIT:
Sure, like always. After asking the question, I could solve it by myself. Thanks anyways!
@(Html.Kendo().RadioGroup()
.Name("xxx")
.Items(i =>
{
i.Add().Label("United States").Value("1");
i.Add().Label("Canade").Value("2");
i.Add().Label("Mexiko").Value("3");
i.Add().Value("4").Encoded(false).Label("Other: " + Html.Kendo().DropDownListFor(x => x.ProviderId)
.DataSource(source => source
.Custom()
.Sort(x => x.Add(Html.NameFor(y => new Provider().Name)))
.Transport(x => x
.Read(read =>
{
read.Url($"https://{webApiHost}/fruehehilfen/api/Provider").Headers(new { authorization = user.TokenString });
})))
.DataTextField(Html.NameFor(x => new Provider().Name))
.DataValueField(Html.NameFor(x => new Provider().ID))
.HtmlAttributes(new { style = "width: 100%" })
.OptionLabel("Bitte auswählen").ToHtmlString());
})
)
Hi, I have a problem like this the image,
how can I fix this labels overlap issue,'m using kendo jquery ui
Thanks...
This has been asked before here: https://www.telerik.com/forums/kendo-validator---focus-on-first-invalid-field
However, the given solution does not work with a kendoTextBox.
If you use the example given in the previous post (http://dojo.telerik.com/ukoLUJ/4?_ga=2.193348590.2100086651.1638809904-402941789.1637689930) and replace the inputs with kendoTextBoxes and update the libraries to the latest version, they will not gain focus when invalid.
Any help would be appreciated, thanks,
Kevin
Hi Team,
We recently ran security scan on our web application which using "https://kendo.cdn.telerik.com/2020.2.513" Version.
and we encountered one scenario where Cross Site script executed even though we implemented encode and decode.
Scenari: User opens editor -> Clicks Insert Link Option.
We filled URL, Text inputs and for Tooltip fields we input Cross Site Script i.e (">">">"><script>alert(document.cookie);</script>)
and we clicked INSERT.
Basically the Tooltip field will break the anchor tag title parameter and script will execute.
Though we have implemented HTML encode and Decode we still experiencing this alert popup with cookie data while encode and Save and also Decode and Show.
Thanks In Advance.
Please let us know is there any inbuilt functionality in Kendo to handle this type of issue.
Greetıngs. I want to use Kendo jquery UI lazy loading structure and use drag and drop mechanism together. But here some problems arise. For example, files are duplicated when I drag and drop onto a node that hasn't been opened yet. When I manually set the "HasChildren" column, GetNode() runs automatically, resulting in two of the same file with data from the server. Please don't point me to the new version, I have to use this version. Thanks.
function get(data, id) {
if (id == 0) {
options.success([]);
return;
}
if (!id) {
return data;
} else {
for (var i = 0; i < data.length; i++) {
if (data[i].id == id) {
return data[i].items;
} else if (data[i].items) {
var result = get(data[i].items, id);
if (result) {
if (result == null) {
return null;
} else if (result.length == 0) {
return null;
} else {
return result;
}
}
}
}
}
}
function getCurrent(data, id) {
if (id == 0) {
options.success([]);
return;
}
if (!id) {
return data;
} else {
for (var i = 0; i < data.length; i++) {
if (data[i].id == id) {
return data[i];
} else if (data[i].items) {
var result = getCurrent(data[i].items, id);
if (result) return result;
}
}
}
}
function getTreeView() {
return $("#treeview").data("kendoTreeView");
}
//For TreeView Lazy Loading
var service = "/DijitalArsiv/GetNode/";
let getData = new kendo.data.HierarchicalDataSource({
transport: {
read: function (options) {
var currentId = options.data.id;
var child = get(TreeView, currentId);
var currentNode = getCurrent(TreeView, currentId);
if (child) {
options.success(child);
} else {
$.ajax({
url: service,
data: { "id": currentId, "isMainFolder": currentNode.isMainFolder, "path": currentNode.path },
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
success: function (response) {
var data = $.parseJSON(response);
if (data.items != null) {
options.success(data.items);
}
TreeView = getTreeView().dataSource.view();
}
}).fail(function (result) {
options.error(result);
});
}
}
},
serverFiltering: false,
schema: {
model: {
id: "id",
isMainFolder: "isMainFolder",
isDraggable: "isDraggable",
isDroppable: "isDroppable",
hasChildren: "hasChildren"
}
}
});
$("#treeview").kendoTreeView({
template: kendo.template($("#treeview-template").html()),
dataSource: getData,
dragAndDrop: true,
loadOnDemand: true,
dragend: function (event) {
},
drop: function (event) {
var localTreeView = getTreeView();
var movingItem = localTreeView.dataItem(event.sourceNode);
var destinationItem = localTreeView.dataItem(event.destinationNode);
var movingItemParent = localTreeView.dataItem(localTreeView.parent(event.sourceNode));
if (!event.valid) {
event.setValid(false);
return;
}
if (movingItem != null && destinationItem != null) {
if (destinationItem.id == movingItemParent.id) {
event.setValid(false);
return;
}
if (!movingItem.isDraggable) {
event.setValid(false);
return;
}
if (!destinationItem.isDroppable) {
event.setValid(false);
return;
}
if (destinationItem.spriteCssClass != "folder") {
event.setValid(false);
return;
}
if (event.dropPosition == "after" || event.dropPosition == "before") {
event.setValid(false);
return;
}
FileTransfer(movingItem, destinationItem);
} else {
event.setValid(false);
return;
}
},
select: function (event) {
var node = $("#treeview").getKendoTreeView().dataItem(event.node);
$(".nodeIconGroup").css("display", "none")
$("#"+node.uid).css("display", "inherit")
}
})
function FileTransfer(movingItem, destinationItem) {
destinationItem.hasChildren = true;
$.ajax({
url: "/DijitalArsiv/FileTransfer/",
data: { "movingItemID": movingItem.id, "movingPath": movingItem.path, "movingFileName": movingItem.text, "movingFileType": movingItem.spriteCssClass, "destinationItemID": destinationItem.id, "destinationPath": destinationItem.path, "destinationIsMainFolder": destinationItem.isMainFolder },
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
success: function (response) {
if (response.Status) {
movingItem.path = response.destinationPath;
} else {
getTreeView().dataSource.data(FirstData);
TreeView = JSON.parse(JSON.stringify(FirstData));
}
}
}).fail(function (result) {
});
}
Hello,
I used the code to use the br tag instead of the p tag.
defaultTools.insertLineBreak.options.shift = false;
defaultTools.insertParagraph.options.shift = true;
A new line is marked br tag.
but when I enter and enter the styled text(bold etc), the enter format disappears.
How can I fix it in the 2017 version?
https://dojo.telerik.com/ANaGUDAT