Are there any examples doing drag and drop from a grid control to the scheduler in Angular? I have found the jQuery example, but for the life of me can't get it to work correctly with the angular directives. Right now I am using a combination of jQuery and angular, which is both terrible to look at, and causing problems since my templates cannot use Angular controls.
The parts I am unsure of how to do in Angular are:
var grid = $("#grid").data("kendoGrid"); var gridRowOffset = grid.tbody.find("tr:first").offset(); grid.table.kendoDraggable({ filter: "tbody > tr", dragstart: function (e) { //add margin to position correctly the tooltip under the pointer console.log('drag start'); console.log(gridRowOffset); $("#dragTooltip").css("margin-left", e.clientX - gridRowOffset.left - 50); },Essentially if I could get the demo from http://www.telerik.com/support/code-library/drag-and-drop-17b3dbbc367a
to work in Angular, I could figure the rest out from there!
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/GetData",
dataType: "json"
}
},
group: {
field: "Name",
dir: "asc"
}
});
dataSource.read();
var view = dataSource.view();
Using Fiddler, I can see that the call to dataSource.read() is successfully getting the JSON. However, dataSource.view() always returns an empty array. I'm not sure why this is the case.
The JSON I'm returning looks like this:
[
{
"Name": "Bob",
"Count": 2762,
"Date": "2011-11-14 09:00"
},
{
"Name": "Sue",
"Count": 521,
"Date": "2011-11-14 09:00"
},
{
"Name": "Bob",
"Count": 2769,
"Date": "2011-11-15 09:00"
},
{
"Name": "Sue",
"Count": 525,
"Date": "2011-11-14 09:00"
}
]
We are exporting Kendo grid content to Excel files. We’re really impressed with how well it works and how easy it is to use. Unfortunately, it is missing one feature that is critical for us. We need to be able to set cell comments in the exported Excel file. I posted the “idea” below to the Telerik site. I think this would only be a few lines of code for Telerik to implement. Our schedule is really tight – we’d really appreciate any help we can get - even if it is just guidance on how we could hack Kendo JavaScript to make it work (as a short-term solution).
This is the 'idea' that I posted: Add support for exporting cell comments to Excel
I'm going to explain this in a number of different ways just to help clarify what I'm asking for: 1) When exporting Kendo grid to Excel, add support for setting the cell comments. 2) Please add support for a "comment" property to sheets.rows.cells. The value of the "comment" property would be used to set the cell comment in the generated Excel file. 3) In the link below, there is support for sheets.rows.cells.format. Add a similar property named sheets.rows.cells.comment that is used to set the cell comment in the exported Excel file. http://docs.telerik.com/kendo-ui/api/javascript/ooxml/workbook.html
I have an Editor Template popup for Edit functionality in my Grid. I have a combination of controls on the popup including numeric text box, dropdown and plain text boxes. If I edit information on the work, sometimes the Edit action method in my Controller is not being fired. I noticed that the only time it hits the method when a change to dropdown list happens. For any other update, the method does not get fired.
It seems like the only time the edit state gets changed when a change in dropdown list option happens.
Has anyone else noticed this behavior?
I'm trying to use a treelist to display some local data until I'm ready to submit it to the server. Since it starts empty and it'll only be submitting later, which I'll be doing with a different bit of javascript, I don't have any ajax calls back to the server. I just want it using local data. I built the following example using your demo dojo.
<!DOCTYPE html><html><head> <style>html { font-size: 12px; font-family: Arial, Helvetica, sans-serif; }</style> <title></title> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.common.min.css" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.blueopal.min.css" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.min.css" /> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.blueopal.min.css" /> <script src="http://cdn.kendostatic.com/2015.1.408/js/jquery.min.js"></script> <script src="http://cdn.kendostatic.com/2015.1.408/js/kendo.all.min.js"></script></head><body> <div id="example"> <div id="treelist"></div> <button id="btnClick" onclick="clickMe()">Click Me</button> <script> $(document).ready(function () { var dataSource = new kendo.data.TreeListDataSource({ schema: { model: { id: "id", expanded: true } } }); $("#treelist").kendoTreeList({ dataSource: dataSource, editable: true, height: 540, columns: [ { field: "Position" }, { field: "Name" }, { command: [ "edit" ] } ] }); }); function clickMe(){ $("#treelist").data("kendoTreeList").dataSource.add( { id: 123232, parentId: null, Position: "CEO", Name: "Jeff Bezos" }); } </script> </div></body></html>As you can see, it's a pretty simple example where I click a button to add a row to the treelist's datasource and the new row adds just fine. The problem is when I try to edit the row after adding it. When I click "Update" it just removes the row instead of saving the changes.
Please advise.
Hi
I've got an issue with a lockable action columns in a grid where by some data isn't displaying.
Here is an example of the issue
http://dojo.telerik.com/oToFe
If you scroll to the end of the grid you'll notice some of the edit bars are missing - if you resize a column then they will appear - it seems that the height of the locked column isn't calculating correctly.
If you make the pageSize in the dataSource bigger the issue becomes worse (from 10 to 20 in this case)
http://dojo.telerik.com/oToFe/3
Any thoughts on a fix ?
Thanks
Dave
I'm implementing Kendo on a site that uses ColdFusion as our server-side language. I'm setting up a template and I have situation where I must use a ColdFusion variable inside the template. For those not familiar w/ ColdFusion, it uses the # to indicate ColdFusion markup - ie. if I wanted the content of a div to be populated from a CF variable, I'd have something like:
<div>#cf_variable#</div>In fact, the example above is pretty much exactly what I'm trying to do, just inside a template:
<script type="text/x-kendo-template" id="tile_template"> <div class="padding list-items-footer k-block"> <button type="button" class="btn btn-success"> <i class="fa-icon-play"></i> <span class="hidden-xs">##APPLICATION.LC.getValue("LaunchButton")##</span> </button> </div></script>APPLICATION.LC is our system for multi-lingual text/labels, which is why it's a requirement.
I initially only had single # on each side of the CF variable, but that gave me a javascript error. Adding the second # to each side (which is how you escape the # in CF), stopped the error, but what's actually being rendered in the button is 'APPLICATION.LC.get value("LaunchButton")', instead of the CF-calculated value. Additionally, trying to escape the hashes using \, as suggested in the template help, (ie.\#APPLICATION.LC.getValue("LaunchButton")\#), also doesn't cause a javascript error, but again, only outputs '#APPLICATION.LC.get value("LaunchButton")#'.
I was able to find this thread (http://www.telerik.com/forums/syntax) where it was suggested that the selector could be changed for the Kendo templating system, but no further information was provided on how.
For ease of updating in the future, I'd prefer if we didn't have to change the selector, but I realize it may be inevitable. Any suggestions/guidance that can be provided would be appreciated.