I'd like to modify the pager section to center the content. I've tried the usual CSS adjustments to center the content (margin-left & margin-right set to auto, text-align set to center), but no luck. Any ideas?
Thanks,
--Ed
I am creating a tree-map. Treemap is static. It will always have 3 tiles. The data can change but the number of tiles will remain fixed. I looked at the below example.
How can I force each tile to have a unique color from the array of colors I have specified.
<div id="treemap"></div>
<script>
$("#treemap").kendoTreeMap({
dataSource: {
data: [{
name: "Root",
items: [{ name: "foo", value: 1 }, { name: "bar", value: 2 }, { name: "baz", value: 3 }]
}]
},
valueField: "value",
textField: "name",
colors: ["red", "green", "yellow"]
});
</script>

Hi, can I add a value in a middle of soughnut chart?
in general, how can I get the widget from your main page?
Hello,
I met a situation that I should toggle the multiselect control's tag mode dynamically. when there are more than fixed amount items, use single mode, when less than the amount, then use multiple mode.
According to this, I should use k-rebind to recreate the control while the tagMode changed. But the first time it always clear the selected items. I google it and somebody suggest to use k-ng-model, and k-value-primitive, but it also cannot work. here is the sample in dojo.
Does anyone know how to fix this?
Hello,
I have this issue, I am trying to upload files via kendo upload and if the file format is .txt it is uploading the file properly. When I tried the same with .pdf, it always fails. I even tried all other file types like .doc, .xls, .csv etc. but they keep failing. I don't know what I am doing wrong. The following is my implementation of kendo Upload.
HTML: <input id="files" type="file" name="files" />
JQUERY: $("#files").kendoUpload(
{
multiple:true,
//upload: onUpload,
async: {
saveUrl: "/Bank/Save",
//removeUrl: "/Bank/Remove",
autoUpload: true,
}
});
C#: public ActionResult Save(IEnumerable<HttpPostedFileBase> files)
{
//The Name of the Upload component is "files"
if (files != null)
{
foreach (var file in files)
{
// Some browsers send file names with full path. This needs to be stripped.
var fileName = Path.GetFileName(file.FileName);
var physicalPath = Path.Combine(@"C:\New Folder\", fileName); //Server.MapPath("~/App_Data")
// The files are not actually saved in this demo
file.SaveAs(physicalPath);
}
}
// Return an empty string to signify success
return Content("");
}
public ActionResult Remove(string[] files)
{
// The parameter of the Remove action must be called "fileNames"
if (files != null)
{
foreach (var fullName in files)
{
var fileName = Path.GetFileName(fullName);
var physicalPath = Path.Combine(@"C:\New Folder\", fileName);
// TODO: Verify user permissions
if (System.IO.File.Exists(physicalPath))
{
// The files are not actually removed in this demo
System.IO.File.Delete(physicalPath);
}
}
}
// Return an empty string to signify success
return Content("");
}
Hi,
I created a Grid with a custom popup to edit my record I used the code below:
editable: {mode: 'popup', template: kendo.template($("#myEdit").html())},This works fine, but I also wanted to implement an area where I could display the errors that came from the server, so my popup was something like this
<script id="edit_admLicenca" type="text/x-kendo-template" ng-controller='mainController'> <div class="col-md-5 col-md-offset-3"> <h3> Licença</h3> <div class="alert alert-danger"> {{errorHomeMsg}} </div> <div class="form-group"> <label for="nomCliente">Nome:</label> <input type="text" class="form-control" name="nomCliente"/> <label for="datExpiracao">Nome:</label> <input type="date" class="form-control" name="datExpiracao"/> </div> </div></script>But when I try to run it, it doesn't work, it displays the {{errorHomeMsg}} even though my update works correctly.Any thoughts?
Att
Matheus Mokwa
I'm trying to set a splitter to 100% height, as per the example here: http://docs.telerik.com/KENDO-UI/controls/layout/splitter/how-to/expand-splitter-to-100-height
But I'm running into some very strange behaviour, as seen in this video (please ignore the styling, we're in the middle of a system update): http://recordit.co/kE4wBkI3k4
The video starts on a fresh load of the page. You can see the breadcrumbs, and what appear to be the splitter resize and collapse controls. The rest of the page is empty, even though there should be content. When I click the splitter resize, the content blinks in, and while the splitter is highlighted, it seems bent over/doubled up at the top. At 0:10 I refresh the page again, showing how a new page load is blank, except for the splitter controls. Collapsing the left panel causes the content to appear again. I was having a hard time grabbing the splitter to re-expand the left panel, so I refreshed again (0:23), and dragged it out again to test the resizing of the panels. You'll also notice that I have no scrollbars in the video, despite the fact that the content runs off the bottom of the page.
Here's my HTML:
<body> <div id="jsParentContainer"> <div id="splitter"> <div id="tree_pane" class="pane-content"> <div id="nav_tree">/div> </div> <div id="tab_pane" class="pane-content"> <div id='jqxTabs'> <iframe class="tab-iframe" id="start_iframe" src="" testStudioTag="" width="100%" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </div> </div> </div> </div></body>And the splitter init:
function createSplitter() { $('#splitter').kendoSplitter({ orientation: "horizontal", panes: [ {collapsible: true, size: "20%"}, {collapsible: false, size: "80%"} ], messages: { //TODO: add translations retry: '', requestFailed: '', loading: '' }}); }And the CSS I added, as per the help:
<style> html, body { height:100%; margin:0; padding:0; overflow:hidden; } #jsParentContainer { height:100%; margin:0; padding:0; overflow:hidden;} #splitter { border-width: 0; height:100%; }</style>Hi
I have a kendo grid with k-rtl class.
the grid has a horizon scroll, when i scroll to right or left it's work good but when the mouse is leave the grid zone
all the columns move to the left and there is a big white space in the grid or the scroll jump to other side.
you can see this dojo for example: http://dojo.telerik.com/Univi/4
thanks

Hello,
Will the TreeList support to binding to xml data? I try it, calling the data using XML but the result is: No records to display.
Here is the code
JAVASCRIPT
The Gantt already has week and month. I would like to add quarter.
Running a copy and paste of this code doesn't provide a quarter view? Any ideas?
http://docs.telerik.com/KENDO-UI/controls/scheduling/gantt/how-to/creating-custom-view