Duplicate subfolder entries show up in the left-hand TreeView, when following these steps:
Steps to reproduce:
This is in version 2024.2.514, which is the latest as of now.
After testing the new paragraph and formatting marks toolbar selection, I am seeing a couple of issues when using this selection for inline editing. The first issue is that formatting marks are generated in all editors and across all elements on the html page, not just the selected editor. The second issue is that if the editor area is scrollable, the formatting marks do not scroll with the content and remain stationary.
Please see this Dojo for example of the issues:
https://dojo.telerik.com/AZosilAv
Thanks.
Is it possible to use HTML fragments in the legends.template (https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/legend.labels#legendlabelstemplate)?
I tried several html tags (<span></span>, <br/>), but the template is rendered as clear text, not as html text. even the \n does not work :
config:
legend: {
position: "bottom",
labels: {
template:
function(e){
return '<span style="color: red;">' + e.text +'</span>';
}
}
}
result:
var gridName = <HTML_SELECTOR+NAME>,
gridURL = <SERVER_URL>,
columnNames = [{
template: "# if((uploaded_status =='Delete In Process')||(uploaded_status =='GSTN Delete Error')||(uploaded_status =='Saved')|(uploaded_status =='Submitted')|(uploaded_status =='Filed') ){} else { # <input type='checkbox' class='checkBoxClassInv' name='selectgst[]' value='#: data.gstin_of_customer #:#: data.invoice_no #'> #}#",
field: "gstin",
title: "<input type='checkbox' check-id='checkBoxClassInv' class='checkAllGrid'>",
filterable: false,
sortable: false,
groupable: false,
width: 30
}, {
template: "<div class='status #: uploaded_status #'>#: uploaded_status #</div>",
field: "uploaded_status",
title: "Status",
width: 100
}, {
field: "outwardvsgstr1_status",
title: "OutwardVsGstr1 Status",
width: 90
}, {
field: "invoice_category",
title: "Tran Type",
width: 100
}, {
field: "doc_type",
title: "Doc Type",
width: 100
}, {
template: "<span class='grid-align-left'>#: customer_name #</span>",
field: "customer_name",
title: "Customer Name",
width: 200
}, {
template: "<span class='invoice_no' >#: invoice_no #</span>",
field: "invoice_no",
title: "Doc No ",
width: 100
}, {
field: "invoice_date",
title: "Doc Date",
width: 100
}, {
field: "place_of_supply",
title: "POS",
width: 90
}, {
command: [{
text: " ",
name: "Details",
click: outwardInvoiceDetails,
iconClass: "k-icon k-icon-20 k-i-info m-r-0-imp op-1"
}, {
text: " ",
name: "Edit",
click: outwardInvoiceEditDetails,
iconClass: "k-icon k-icon-20 k-i-edit m-r-0-imp op-1",
visible: function (dataItem) {
if ((dataItem.uploaded_status == 'Deleted') || (dataItem.uploaded_status == 'Pending Response') || (dataItem.uploaded_status == 'Delete In Process') || (dataItem.uploaded_status == 'GSTN Delete Error') || (dataItem.uploaded_status == 'Saved') || (dataItem.uploaded_status == 'Submitted') || (dataItem.uploaded_status == 'Filed')) { } else {
if (outwardManualEntryConf == 1 && editable == 1) {
return true;
} else {
return false;
}
}
}
}],
title: "<span class='select'>Details</span>",
width: 130
}],
gridData = {
p_gstin: gstin,
return_period: fpdate
};
//below is kendo grid defination
$("#" + gridId).empty().kendoGrid({
dataSource: {
transport: {
read: {
url: <SERVER_URL>,
type: "POST",
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: gridData,
dataType: "json"
}
},
schema: {
aggregates: serverAggregateConf,
model: modelConf,
parse: function (response) {
//schema response structure
},
total: function (count) {
// custom total page counter
}
},
error: function (response) {
dataSourceError(response);
},
serverPaging: serverpgination,
pageSize: defaultPageSize,
aggregate: aggregateConf,
serverAggregates: typeof (serverAggregateConf) == 'undefined' ? false : true
},
dataBound: function (e) {
//UI manipulations logic
},
scrollable: true,
change: function (e) {
//setting heights as per UI
},
dataBinding: function () {
srno = (this.dataSource.page() - 1) * this.dataSource.pageSize();
},
noRecords: {
//custom message if no message
},
height: 800,
groupable: groupableConf,
sortable: sortableConf,
columnMenu: columnMenuConf,
resizable: resizableConf,
pageable: pagingConf,
filterable: filterConf,
columns: gridColumns,
excelExport: excelConf,
excel: {
allPages: true
}
}).data("kendoGrid");
We have been using an older version of your libraries from 2021 and decided to update it to the current one.
We have a grid and we have been using server-side filtering/sorting/etc... In the old version there used to be syntax like this:
filter: RequestStatus~eq~1~and~PersonFullName~contains~'Steve'
We took this string, parsed, and processed the data. However, with the update, this is no longer the case. Now it looks like this:
And we are clueless on how to properly parse and or process this format on our back end.
This is the code that we use on the front end to query the back end.
gridDataSource = new kendo.data.DataSource({
serverFiltering: true,
serverGrouping: true,
serverSorting: true,
serverPaging: true,
serverAggregates:true,
pageSize: 25,
transport: {
read: {
url: __config.baseUrlAbsolute + "Requests/Home/GetCurrentViewRequests",
dataType: "json",
data: function () {
return {
type: requestTypesList[requestType],
id: personId,
};
}
}
},
});
})
Our backend is .NET MVC and this is the method that we have used to process the request. But this no longer works.
public string GetCurrentViewRequests([DataSourceRequest] DataSourceRequest request, int type, int id)
{
var filters = Request.Params.Get("filter");
var groups = Request.Params.Get("group");
var sorts = Request.Params.Get("sort");
//Process
}
Would you be so kind as to point us in the right direction on how to properly parse and process the request?
I would like to conditionally bind and unbind events from a kendo UI multiselect's select event. The component was initialized with a select event that must always be fired regardless of the conditions being met. In standard JQuery, I can give an event a namespace such as select.myconditionalevent. Later I can unbind that using that same namespace. Unfortunately, I tried this with the Kendo Multiselect and it didn't work. How would you suggest I add an event that I will later take away, without affecting the initialized event? I can't use the enable disable because I need them to be able to open the dropdown and see what they selected (it is single tag mode and there isn't room on the UI to display a bunch of tags)
Example:
If (!canSelectStuff) { bind event }
else { unbind myconditionalevent }