Hi Team,
am using Kendo UI grid and I have a scenario where I need to set server sorting to true if I get the total number of records >= 1000, if the number of records are less than 1000 , then the server soring should set to false. I also have dynamic columns and headers. Here is the rough code.
If I get more than "1000" records then server sorting is set to true but it triggers the read operation again continuously? Could you please help with this scenario, please let me know if am missing anything here.
this.bindWidgetData = function () {
$("#" + gridId+ "").empty();
$("#" + widgetId + "").kendoGrid({
sortable: {allowUnsort:true},
selectable: "Single, Cell",
resizable: true,
pageable: false,
dataBound:this.dataBound,
change: function (e) {
var i = 10;
}
//dataBinding: this.dataBinding,
})
setGridData();
}
this.setGridData = function () {
var gridData = $("#" + this.gridid).data("kendoGrid");
_widgetCallParams = this.getCallParameters();
this.UpdateSortInfo(sort);
var dataSource = new kendo.data.DataSource({
transport: {
read: function (options) {
$.ajax({
url: getBaseURL() + "WSIHome/GetCustomListData",
dataType: "json", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
data: _widgetCallParams,
type: "POST",
success: function (result) {
var columns = _this.getGridColumnsHeadersandFormat(result.data);
gridData.setOptions({
columns: columns
});
gridData.dataSource.options.serverSorting = (result.rowtotal) >= _widgetCallParams.TopX ? true : false;
options.success(result);
},
schema: {
data: "data",
total: "rowtotal"// twitter's response is { "results": [ /* results */ ] }
},
});
gridData.setDataSource(dataSource);
};
Hi,
I have 2 questions.
Q1:
I am trying to add Dropdown to gantt Chart Tollbar, Dropdown is added but it is not working.
In HTML
<div id="example">
<div kendo-gantt k-options="ganttOptions"></div>
<script id="template" type="text/x-kendo-template">
<select kendo-drop-down-list
k-data-text-field="'name'"
k-data-value-field="'id'"
k-data-source="productsDataSource"
style="width: 100%"></select>
</script>
</div>
In Angular Controller
$scope.ganttOptions =
{
toolbar: [
{ template: kendo.template($("#template").html())}
]
}
$scope.productsDataSource =
{
transport: {
read: {
url: "Data/products.json",
dataType:"json"
}
}
};
Q2:
I want to Remove the Add Task Button at the bottom. I have used "gantt.footer.find(".k-button").css("visibility", "hidden");" , that's not working in my case may be due to angular. Can you specify a way to acheive this for angular.
Hello,
I am trying to restrict user input of the AutoComplete but the AutoComplete is inside a Kendo UI (MVC) Grid. I successfully implemented the example showing how to restrict user input of an AutoComplete but it does not keep the value cleared when the AutoComplete is inside a Grid. This is the example that I followed: http://docs.telerik.com/kendo-ui/controls/editors/autocomplete/how-to/restrict-user-input
Can you please show me how to "Restrict User Input" for the AutoComplete that is inside a Kendo UI (MVC) Grid batch edit mode? The autocomplete is implemented setting an EditorTemplateName bound to a column.
Thanks,
Michael

I printed date from datePicker that you are providing.
'6/14/2016 12:00 AM' was result and I want to change it into 'YY/MM/DD' format.
I use Oracle DB so I tried TO_DATE(Column name, 'MM/DD/YYYY HH:MI') and it didn't work.
Is there any way to change format of your datePicker format just like as customizing templates?

Hi,
I'm building a scheduling app which would use the Scheduler component and would like to allow my users to stretch and drag and drop events on the weekly schedule.
However, they are working in 1-2 hour events through out the day, but possibly through multiple days.
On this demo:
http://demos.telerik.com/kendo-ui/scheduler/move-resize
It is seen that event resize works EITHER horizontal OR vertical depending on is it an all day event or not.
What I would like to do is:
- When the user clicks on an empty slot, open a popup to let him add an event slot
- When he drags it verticalit will be the length of the event in the day 1-2-4-8 hours, when he drags it horizontal it will be the number of days it spans
From the demos and examples I cannot find that you can make both options on the same slot...so resize in both directions.
Is it possible?
Added question...also a click on the empty space in the scheduler to add a slot?
Thank you!

Hi,
I'm try to localize Insert Hyperlink popup in Kendo Editor by using kendo culture, but unfortunately I can't make it.
I also couldn't see that in your demo (please see the attached screenshot).
I was wondering if you could help me with that.
Thanks!


I have set the max text length in the underlying model and the grid does not enforce it. I have tried the following and it does not work:
function onEdit(e) { debugger; if (e.model.isNew()) { e.container.find("input[Id='strSubFundCode']").attr('readonly', false); e.container.find("input[Id='strSubFundCode']").attr('disabled', false); } else { e.container.find("input[Id='strSubFundCode']").attr('readonly', true); e.container.find("input[Id='strSubFundCode']").attr('disabled', true); e.container.find("input[Id=strSubFundCode]").attr("maxlength", 7); } }Any suggestions would be welcome.
Thanks

Angular Code to update datasource:
$scope.bindGroupCost = function (groupCostData) {
$scope.bindGroupCostData = new kendo.data.DataSource({ data: groupCostData });
$scope.bindGroupCostData.read();
}
HTML Code:
<div class="k-content">
<div>
<div kendo-chart
k-title="{ text: 'Group Total Cost', position: 'bottom' }"
k-series-defaults="{ type: 'pie' }"
k-series="[{ field: 'groupCost', categoryField: 'groupName', padding: 0 }]"
k-tooltip="{ visible: true, format: 'Group Cost: {0} £' }"
k-data-source="bindGroupCostData"
k-series-hover="onSeriesHover"
style="width:100%; height:350px; border:1px;"></div>
</div>
</div>
Calling angular function from javascript:
angular.element(document.getElementById('tblContainer')).scope().bindGroupCost(JSON.parse(slices));
My problem is that when I am updating the 'slices' values at runtime, kendo pie chart is not updating the datasource and pie chart is not updating.
Please let me know how to refresh the keno chart when datasource is updating at runtime.
Look forward to hear from you.
Let me know if you need any more details..