I'm using kendo html helper mvc with the next code in the View:
@(Html.Kendo().Grid(Model) .Name("Grid") .HtmlAttributes(new { }) .Columns(columns => { columns.LoadSettings(new List<GridColumnSettings>() { new GridColumnSettings() { Hidden = true } }); columns.Bound(c => c.TextCol1).Hidden(true); (....) }) .RowTemplate(@<div class="objLst"> <div class="row">... ... ...</div ></div>)
I need to group the elements of the grid using javascript. I have the next code:
var grid = $("#Grid").data("kendoGrid");grid.dataSource.group({field:"TextCol1" });
but when I run the javascript instruction, the application (kendo grid) makes an GET request to the server to group the data. I need that the grouping run only on the client side.
It's possible? Or I should migrate all code to javascript?
Thank you.
Is there a way to create a wizard inside a kendo window with postback on each step?
Tried following this link, but wasn;t able to get : http://developer.telerik.com/featured/step-wise-forms-with-asp-net-mvc-and-kendo-ui/
Grids inside kendo tabs do not work ( no ajax calls being made to populate grids ).
Hello!!!
I'm using MVC Scheduler with a all day event template.
<script id="event-template" type="text/x-kendo-template"> #if(data.IsControl && hasControlElement(data)) {# #= title# #}else {# <div class="amagat"> </div> #}#</script>I want to hide all the events with the template that contains <div class="amagat"/>
I've tried it by javascript and css, but no luck...
<style> .k-event > .amagat {visibility: hidden ; display: none}</style>
I've attached two images with the current result and the desired result.
Thanks!!
Hi,
I have a requirement where i want only visible columns json data send to server. This is so because user will have ability to hide columns client side. Requirement is create excel at server side with only visible columns.
Regards,
Pankaj
Hi guys,
I have a few problems with my brandnew grid. The situation is this: I added a grid to an mvc view. I made the grid columns filterable with the filterable: true setting.
The grid also contains a column with a checkbox to enable multiselect and a submit button to process the selection. If I tick a few boxes and process the selection everything works fine. If I use the filter and then select multiple rows to process, the list returned to the controller contains the wrong number of records or no records at all.
Furthermore, only rhe 'contains' option in the filter produces results, if I choose another option I get a grid with no results. I put the code for the View, ViewModel, Controller, the _layout.cshtml and the bundle.config in the attached zip. I'm afraid I couldn't get it in to a working project, because of the necessary data. I hope you'll still be able to figure out what's going wrong.
Cheers,
Mirjam
We've noticed long running requests in the worker processes in IIS, some have been sitting for anywhere between 1 hour to 3/4 hours.
The request URL is:
/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=
Any ideas what could be causing this?
Thanks in advance.

Hi all,
I've a dynamic grid (no columns defined). I want to allow the user to change the text in the column header. Ideally, I'd like the user to click the column menu, select Rename. A modal will appear prompting them for the new column title. They enter text, click OK, and that title is applied to the selected column. Any thoughts how I can achieve that?
If it's any help, below is my Razor code that generates the grid.
Thanks in advance!
Steve.
@(Html.Kendo().Grid<dynamic>() .Name("StandardTable_" + Model.InstanceKey) .ToolBar(toolbar => { toolbar.Template(@<text> @ToolbarTemplate() </text>); }) .Resizable(resize => resize.Columns(true)) .Pageable(pageable => pageable .Input(true) .Refresh(true) .PageSizes(true) .ButtonCount(5) .Enabled(true) .Numeric(false) ).ColumnMenu() .Sortable(s => s.SortMode(GridSortMode.MultipleColumn).AllowUnsort(true)) .Filterable() .Groupable() .Reorderable(reorder => reorder.Columns(true)) .EnableCustomBinding(true) .Events(m => m.DataBound("pan.dashDatapart.getGridState(" + Model.DataPart?.DatapartKey + "," + Model.InstanceKey + ")")) .DataSource(d => d .Ajax() .PageSize(pageSize) .Read(read => read .Action("StandardTableRead", "DashDataparts").Data("pan.dashDatapart.StandardGridRead(" + Model.DataPart?.DatafeedKey + "," + Model.InstanceKey + ")") ) ))
Hi,
I am using kendo upload control and I need to upload zip file through only if zip file has only one file inside it other wise i needed to fail the upload. OnSuccess event of upload I am calling controller action to add validations for the upload file. How can I send file itself through Ajax to controller action so that i can extract zip file on server side and fail the upload if zip has more than 1 file inside it.
@(Html.Kendo().Upload()
.Name("files").ShowFileList(false)
.Async(a => a.AutoUpload(false)
.Save("UploadSingleDocument", "Upload")
)
.Multiple(false)
.Events(events => events
.Select("attachClickHandler")
.Upload("OnUpload").Success("OnSuccess").Error("onError"))
)
Below is my javascript code. e.files[0] is always returning null.
$.ajax({
url: ('@Url.Action("ValidateDocumentExtension", "Upload")'),
contentType: "application/json",
async: true,
type: "POST",
data: JSON.stringify({files:e.files[0], fieldlst: webFormFields, fileName: document.getElementById("DocumentName").value }),
success: function(data) {
if (data === 'False') {
showNotification("Upload Document", "Invalid Document Extension", "error");
flagUpload = false;
} else if (data === 'True') {
flagUpload = true;
if ($("div.k-notification-error").Exists()) {
$("div.k-notification-error").hide();
}
if ($("div.k-notification-info").Exists()) {
$("div.k-notification-info").hide();
}
}
}
});
Hello,
I want to know if it´s posible to make a Tooltip on a tabstrip on (MVC) .
best Regards F.K.

Hi,
I have requirement of freezing column at the start and the end. for eg. let say, i have 10 column in the grid. from these i want first two columns to be freezed and last column to be freezed. however column should NOT loose their respective position i.e. last column should remain as the last column but in freezed manner. between columns should be horizontal scroll-able. Please guide