Hello,
I use the following Code to create a Kendo window dynamical to load a partial view - after closing the window I call the destroy method
to remove the window and it Content from the DOM.
$("<div id='win" + name + "' />").kendoWindow({ title: stitle, actions: ["Close"], draggable: false, resizable: false, //appendTo: "#containerTest", modal: true, animation: { open: { effects: "slideIn:left", duration: 500 }, close: { effects: "slideIn:left", reverse: true, duration: 500 } }, visible: false, pinned: false, content: { url: surl, iframe: iframe }, close: function (e) { }, deactivate: function (e) { this.destroy(); } }); var window = $(windowname).data("kendoWindow"); window.wrapper.addClass("gpdb-sidebar-window"); window.open();
But there is a Performance Problem if I open the window in a view with a Kendo grid with more then 500 rows - it seems that to use the destroy() in the deactivate Event of the window becomes slower and slower the more rows in the grid exists...
I have attached a Picture from the Chrome performance analyser - it seems there is a "Recalculate Style" in Kendo.all.js which is called often...
robert

How do I debug a source binding that isn't working?
I know i have an ObservableArray that I know exists and has data because if I for loop over it then data shows up
//works
<script id="tripEventTemplate" type="text/x-kendo-template">
# for(var i=0; i < Waypoints.length; i++){ #
<div style="color:#:Waypoints[i].FontColor #;margin-bottom:10px;background-color:#:Waypoints[i].BackgroundColor #">
<div>
<div>#= Waypoints[i].description #</div>
</div>
</div>
# } #
//But if I try to use a template for the array then it doesn't work
<script id="tripEventTemplate" type="text/x-kendo-template">
<div data-template="tripWaypointCalendarTemplate"
data-bind="source: Waypoints">
</div>
<script id="tripWaypointCalendarTemplate" type="text/x-kendo-template">
<div style="color:#:FontColor #;margin-bottom:10px;background-color:#:BackgroundColor #">
<div>
<div>#:description #</div>
</div>
</div>
</script>
Hi.
I have a problem: tooltip's background color in charts was missing. I tried to fix this but one color for all tooltip bg does not suit. It is necessary that backgorund color coincides with the color of the graphic
Can you tell me please how to fix this?

Hello All,
I have a Kendo Grid that has a Kendo upload inside of a column. I am currently getting the byte array of an image uploaded thru the Kendo Upload control but having difficulty passing that back to the Kendo Gird so it can add it to its model and call then .Update method from its controller once the update button from the Kendo Grid is pressed.
My Editor template is returning a byte array I am having trouble getting the Kendo grid to recieve this data and add it to its model before it calls the .Update Method from my controller... Currently the grid calls .Update but the field where the byte[] should be set to is null.
Please let me know if I should attach more code and how I can resolve this issue, Thanks In advance!
Grid
@(Html.Kendo().Grid<AuctionItemModel>() .Name("UserGrid") .Columns(columns => { columns.Bound(p => p.ItemName).Filterable(true).Width(50); columns.Bound(p => p.ItemDescription).Filterable(true).Width(250); columns.Bound(p => p.BidIncrement).Filterable(true).Width(25); columns.Bound(p => p.ItemPrice).Filterable(true).Width(25); columns.Bound(p => p.ImageBytes).ClientTemplate("<img height = '100' width = '100' src='" + "data:image/gif;base64,#=Image64#'").Title("Photo").EditorTemplateName("ResumeFileUrl"); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250); // command.Destroy(); }) .ToolBar(toolbar => toolbar.Create().Text("Add AuctionItem")) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Filterable(filter => filter.Enabled(true)) .Pageable() .Sortable() .Resizable(x => x.Columns(false)) .Events(x => x.Edit("doOnRowSelect")) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Model(model => { model.Id(p => p.AuctionItemID); }) .Create(update => update.Action("Create", "AuctionItem")) .Read(read => read.Action("Read", "AuctionItem")) .Update(update => update.Action("Update", "AuctionItem").Data("ItemFormValues")) .Destroy(update => update.Action("Destroy", "AuctionItem")) ))
EditorTemplate:
@model byte[]@(Html.Kendo().Upload().Name("ResumeFileUrl").Events(events =>{ events.Select("onSelectResumeFile"); events.Success("onUploadSuccessResumeFile");}).Messages(messages =>{ messages.Select("Upload");}).Async(async =>{ async.Save("SaveResumeFile", "AuctionItem"); async.Remove("DeleteResumeFile", "AuctionItem"); async.AutoUpload(true);}).Multiple(false))
SaveImageFunction:
public JsonResult SaveResumeFile() { string filename = String.Empty; const string sessionKey = "RESUMEFILE"; byte[] fileBytes = null; if (HttpContext.Request.Files != null && HttpContext.Request.Files.Count > 0 && HttpContext.Session != null) { List<HttpPostedFileBase> files = HttpContext.Session[sessionKey] as List<HttpPostedFileBase>; foreach (string fileName in HttpContext.Request.Files) { HttpPostedFileBase newFile = HttpContext.Request.Files[fileName]; if (files == null) { files = new List<HttpPostedFileBase> { newFile }; } else { files.Add(newFile); } HttpContext.Session[sessionKey] = files; if (newFile != null) filename = Path.GetFileName(newFile.FileName); Stream fileStream = newFile.InputStream; var mStraemer = new MemoryStream(); mStraemer.SetLength(fileStream.Length); fileStream.Read(mStraemer.GetBuffer(), 0, (int)fileStream.Length); mStraemer.Seek(0, SeekOrigin.Begin); fileBytes = mStraemer.GetBuffer(); } } return Json(new { Type = "Upload", FileName = filename, /*Image64 = Convert.ToBase64String(fileBytes)*/ ImageBytes = fileBytes }, JsonRequestBehavior.AllowGet); }

Hi there,
I'm having trouble with a Kendo grid resizing. Basically, the content is extending beyond the width of my table, when the content should be wrapping instead. I've added a screenshot to try and display the issue - the 'Description' column should be wrapping but instead isn't and the table content therefore is going beyond the width of the div the table sits in. Furthermore, using the debug tools in Chrome shows that the table itself is positioned correctly, but it's the th and td cells which are displaying outside of the table area (hopefully the screenshot demonstrates that too). The code I am using in my view is fairly basic :-
Html.Kendo().Grid((IEnumerable<TEAMSPortalV2.Models.SampleComputedDataViewModel>)ViewData["samples"]) // Bind the grid to the Model property of the view
.Name("ItemsByRiskSamples")
.Sortable()
.Columns(columns =>
{
columns.Bound(s => s.BuildingDesignation).Title("Building");
columns.Bound(s => s.FloorNoConverted).Title("Floor");
columns.Bound(s => s.RoomDescription).Title("Room");
columns.Bound(s => s.RegisterItemNo).Title("Item No.");
columns.Bound(s => s.SampleRef).Title("Sample Ref.").Width(40);
columns.Bound(s => s.SourceDescription).Title("Description");
columns.Bound(s => s.AsbestosType);
columns.Bound(s => s.MaterialAssessmentScoreString).Title("MA Score").Width(40);
columns.Bound(s => s.PriorityAssessmentScore).Title("PA Score").Width(40);
columns.Bound(s => s.RiskScore).ClientTemplate("<span bgcol='#= RiskScoreGroupColour#'>#= RiskScoreString#</span>").Width(40);
columns.Bound(s => s.RecommendedAction).Title("Rec. Action").ClientTemplate("<span bgcol='#= RecommendedActionColour#'>#= RecommendedAction#</span>");
})
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
.Events(e => e.DataBound("itemBackColours"))
I've played around with it and by adding a width property to other columns sometimes rectifies the problem (but not always at smaller resolutions) seemingly randomly. That said, I don't want to specify column widths - I'd rather let the browser display the content as efficiently as possible as per normal HTML table behaviour. I also noticed that at wider resolutions it often seems to snap into the correct widths - which seems to suggest thast Bootstrap is involved somehow (my site has got Bootstrap installed).
Please could you assist and give me some suggestions of what I can try to rectify this issue.
Thanks, Mark

Hello,
I'm looking for a way to change the text of a toolbar button. I was hoping the following would work:
$("$myButton").text("My text");
Unfortunately, that also replaces the ImageUrl. Can you please tell me a supported way of changing the text?
<fieldset> <legend>Additional Loose Parts</legend> <table> <tr> <td>Part Number</td> <td>Quantity</td> <td></td> </tr> <tr> <td>@( Html.Kendo().DropDownList() .Name("AvailableLooseParts1") .Events(ev => ev.Change("AutomationDeviceMappingDDLChanged")) .DataTextField("Name") .DataValueField("PartNumberId") .DataSource(source => source.Read(read => read.Action("LooseParts", "AutomationDevice"))) .HtmlAttributes(new { style = string.Format("width:{0}px", 200) }) ) </td> <td> <input type="text" id="textboxLoosePartQuantity" class="bpNumeric" style="width: 30px" /></td> <td> <button type="button" id="buttonAddLoosePart" onclick="onAddLoosePart()" title="Add Loose Part" value="Add"></button> </td> </tr> <tr> <td colspan="3"> @(Html.Kendo().Grid<BluePillar.Aurora.DataEntity.Models.AutomationDevicePartsMapping>() .Name("GridAutomationDevicePartsMapping") .ToolBar(toolbar => toolbar.Template( @<text> Site: @( Html.Kendo().DropDownList() .Name("AvailableLooseParts2") .Events(ev => ev.Change("AutomationDeviceMappingDDLChanged")) .DataTextField("Name") .DataValueField("PartNumberId") .OptionLabel("Any") .DataSource(source => source.Read(read => read.Action("LooseParts", "AutomationDevice"))) ) </text> )) .Editable(editable => editable.Mode(GridEditMode.InCell)) .Pageable() .Sortable() .Scrollable() .Selectable(s => s.Mode(Kendo.Mvc.UI.GridSelectionMode.Single)) .DataSource(dataSource => dataSource .Ajax() .Batch(true) .ServerOperation(false) .Model(model => { model.Id(p => p.AutomationDeviceId); // model.Field(p => p.PartNumberName).Editable(false); }) .Create(update => update.Action("CreateNewAutomationDevicePartsMap", "AutomationDevice")) .Read(read => read.Action("GetAutomationDeviceMaps", "AutomationDevice").Data("AutomationDeviceID")) .Update(update => update.Action("UpdateAutomationDevicePartsMap", "AutomationDevice")) .PageSize(50) ) .Events(e => e.DataBound("GridAutomationDevicePartsMapping")) .Columns(columns => { columns.Bound(s => s.PartNumberName) .Width(300); //.ClientTemplate(Html.Kendo().DropDownList() // .Name("PartNumberxyz") // .Events(ev => ev.Change("AutomationDeviceMappingDDLChanged")) // .DataTextField("Name") // .DataValueField("PartNumberId") // .DataSource(source => source.Read(read => read.Action("LooseParts", "AutomationDevice"))) // .ToClientTemplate() // .ToHtmlString()); columns.Bound(p => p.QuantityMultiplier).Title("Quantity"); columns.Command(commands => commands.Destroy()).Width(100); }) ) </td> </tr> </table></fieldset>