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
Our grid has a columns to retrieve more details based off the "npinumber". This wouldn't be on edit or any other actions. I just want to open up a window. I don't even know where to begin with this, so if anyone can help me or guide me to a solution, that would be awesome!
Thank you!
Hi, I'm using a solution for exporting several grids to one excel file and it works great, but it only exports the current page of the application. Is there any way I can export all pages of the grids? Just like this:
.Excel(excel => excel
.FileName("Reporte.xlsx")
.Filterable(true)
.AllPages(true)
.ProxyURL(Url.Action("Excel_Export_Save", "Export"))
)
This is my current solution:
In the grids I have am Event trigger:
.Events(e => e.ExcelExport("pendientes_excelExport"))
And then a js function, fired by a button click:
// used to sync the exports
var promises = [
$.Deferred(),
$.Deferred(),
$.Deferred(),
$.Deferred(),
$.Deferred()
];
$("#export").click(function (e) {
// trigger export of the grids
$("#grillaOrigen1").data("kendoGrid").saveAsExcel();
$("#grillaOrigen2").data("kendoGrid").saveAsExcel();
$("#grillaConciliadas").data("kendoGrid").saveAsExcel();
$("#grillaManuales").data("kendoGrid").saveAsExcel();
$("#grillaPendientes").data("kendoGrid").saveAsExcel();
// wait for exports to finish
$.when.apply(null, promises)
.then(function (grillaOrigen1Workbook, grillaOrigen2Workbook, grillaConciliadasWorkbook, grillaManualesWorkbook, grillaPendientesWorkbook) {
// create a new workbook using the sheets of workbooks
var sheets = [
grillaOrigen1Workbook.sheets[0],
grillaOrigen2Workbook.sheets[0],
grillaConciliadasWorkbook.sheets[0],
grillaManualesWorkbook.sheets[0],
grillaPendientesWorkbook.sheets[0]
];
sheets[0].title = "Origen1";
sheets[1].title = "Origen2";
sheets[2].title = "Conciliadas";
sheets[3].title = "Manuales";
sheets[4].title = "Pendientes";
var workbook = new kendo.ooxml.Workbook({
sheets: sheets
});
// save the new workbook
kendo.saveAs({
dataURI: workbook.toDataURL(),
fileName: "Conciliacion.xlsx"
});
});
});
function origen1_excelExport(e) {
e.preventDefault();
promises[0].resolve(e.workbook);
}
function origen2_excelExport(e) {
e.preventDefault();
promises[1].resolve(e.workbook);
}
function conciliadas_excelExport(e) {
e.preventDefault();
promises[2].resolve(e.workbook);
}
function manuales_excelExport(e) {
e.preventDefault();
promises[3].resolve(e.workbook);
}
function pendientes_excelExport(e) {
e.preventDefault();
promises[4].resolve(e.workbook);
}
Thank you very much
Hi,
- Is it possible to move the Update and Cancel button of the popup Editor to the top instead of the buttom of the editor?
- or is it possible to hide/remove that two buttons and use my own Buttons or use a toolbar with a Save and Cancel Button instead?
regards robert