Hello,
I tried to achieve Server-side grouping function with Kendo UI grid. The grid is grouping by two groups. Below is the grid configuration:
$("#gridTableNew").kendoGrid({
Below is the formated json data returned from server fetching the first grouping data, the grid display the data without any problem.
Then I expanded one of the first group to fetch the second group data, the server return the same formated json data:
But this time, the kendo grid throw this exception:
What could be the problem?
My chart as below:
$("#myChart).kendoChart({
chartArea: {
height: 50
},
seriesDefaults: {
spacing: 0,
gap: 0,
margin: 0,
padding: 0,
type: "bar",
stack: {
type: "100%"
}
},
series: [
{
labels: {
visible: true,
position: "center",
font: "bold 16px arial",
color: "black",
format: "{0}%",
template: "# if (value == 0) { #### } else if (value < 7) { ##=value## } else { ##=value#%# } #",
background: null
},
data: [80],
color: "#11fa00"
}, {
labels: {
visible: true,
position: "center",
font: "bold 16px arial",
color: "black",
format: "{0}%",
template: "# if (value == 0) { #### } else if (value < 7) { ##=value## } else { ##=value#%# } #",
background: null
},
data: [0],
color: "#0026ff"
}, {
labels: {
visible: true,
position: "center",
font: "bold 16px arial",
color: "black",
format: "{0}%",
template: "# if (value == 0) { #### } else if (value < 7) { ##=value## } else { ##=value#%# } #",
background: null
},
data: [0],
color: "yellow"
}, {
labels: {
visible: true,
position: "center",
font: "bold 16px arial",
color: "black",
format: "{0}%",
template: "# if (value == 0) { #### } else if (value < 7) { ##=value## } else { ##=value#%# } #",
background: null
},
data: [20],
color: "red"
}
],
valueAxis: {
min: 0,
max: 1,
line: {
visible: false
},
minorGridLines: {
visible: false
}
},
categoryAxis: {
line: {
visible: false
},
minorGridLines: {
visible: false
}
},
valueAxes: {
visible: false,
majorGridLines: {
visible: false,
}
}
});
Please help me understand what is the difference and why this issue is happening. Thanks
Hello All,
I have a gird with several columns, whose data source is a json(RepProjectData) with more than 500 records. with 7 checkboxes in each row.
I need to implement select all feature. In this when a user checks the checkbox on header then all the below checkboxes(in same column) must get selected.
headerTemplate: "<span class='title-vertical'><input type='checkbox' class='chkheaderBC'> Business Case</span>",
template: function (e) {
if (e.RepBusinessCase == true) {
return dirtyField(e, 'RepBusinessCase') + '<input type="checkbox" checked class="chkbxBusinessCase1" />';
}
else {
return dirtyField(e, 'RepBusinessCase') + '<input type="checkbox" class="chkbxBusinessCase1" />';
}
}
For this, I have written below code on data bound
$('.chkheaderBC').change(function (e) {
checkAll(e, "RepBusinessCase")
});
chekAll function-
function checkAll(e, FieldName) {
displayLoading();
var checked = e.target.checked;
var currentGrid = $("#gridGenerateDocument").data("kendoGrid");
var data = currentGrid.dataSource.view();
var rowCnt = RepProjectData.length;
for (var i = 0; i < data.length; i++) {
data[i].set(FieldName, checked);
}
}
This code is working and solve the purpose when there are <100 records. But when there are >200 records then it is taking longer than expected. Is there any other way to perform this action with minimum time?
Thanks in Advance :)
Hi Team,
is it possible to show the sort icon to tell user that "column can be sorted by clicking here" when none of the column is sorted.
thanks
How can I render a currency when all I have is a number in cents? I've tried with factor set to 0.01 but this only works for the input once it's selected. When not selected it shows 8999,00 while when I select it, goes to 89,99.
I have a reproducer here: https://dojo.telerik.com/uDUdErOG
$(".currency").kendoNumericTextBox({
value: 8999,
format: "c2",
factor: 0.01,
min: 0,
max: 8999,
step: 1,
restrictDecimals: true,
decimals: 2,
spinners: false,
});
});

Could you please help me to change the default design of kendo file upload.
I want to display my custom design on the web page for users. Also , I want to give both functionalities like below
---------------------------------------------------------
Drag and Drop File or Browse File
----------------------------------------------------------
Hi,
I'm trying to avoid dragging column in treelist to very first position, since it's kind of checkbox column and must be the first all the time. I wanted to handle columnReorder event (which i handle anyway) and cancel it, but this approach simply does not work.
Something like
if (e.newIndex === 0)
{e.preventDefault();}
Have you got any tips, what to try next, please?
Regards, Jaroslav
Scroll of Dropdown tree is not working when navigate through keyboard's down arrow.
We have similar implementation like below link. and in the provided link scroll bar is also not working when we navigate trough keyboard.
Link: https://dojo.telerik.com/oVoboJeq
Please let us know solution/workaround for it.
Thanks!!
Hi
I have implemented Kendo Grid with requirement as below.
Overflow-y should always be set to auto despite of number of rows. This is causing the grid row & header misalignment
Can you suggest how to avoid this misalignment with overflow-y: auto style is retained, is there any way to achieve it?
Dojo here : https://dojo.telerik.com/UqAqAGOw
Screenshot below: Page size is 5 with overflow-y set to auto which distorts the alignment