Hi,
I have kendo ui timeline view controller and i want to set events from a different datasource, which will be javascript array. i tried to set array to kendoScheduler datasource but event was not bind to the controller and when i double click on time line it gives a event popup which has unwanted fields which i cant remove. please find the sample below.
http://dojo.telerik.com/@lilan123/UPuDE/3
Thanks,
Lilan
I am trying to implement a search feature on a TreeView. For my search, I am receiving a list of paths to the correct nodes on the tree.
The challenge comes in that I need to use lazy loading for my remote data source. I need to know when the data is loaded and the node has finished expanding or I need the ability to trigger the expansion of a node once the data for that node has loaded.
I've tried doing this with the fetch function but that doesn't seem to work properly. Since the search returns multiple results, I have a loop call my search function iteratively. What appears to happen is that the loop progresses without finishing a call until the last element because the data has not loaded from the remote data source until that time. I believe it may have something to do with calling both fetch and then expand afterward.
Does the expand function implement the Promise API? Is there another way to make this work?
My code is the following:
//the following function is initially called with:// - the full path (including the element)// - the first level dataItem
// - the number 1
function findNode(path, dataItem, currentLevel){ var treeview = $("#treeview").data("kendoTreeView"); var ds = treeview.dataSource; var node = treeview.findByUid(dataItem.uid); if(currentLevel < path.length) { dataItem.children.fetch().always( function(){ treeview.expand(node); $.each(dataItem.children.data(), function(index, value){ if (value.id == path[currentLevel]) var di = ds.getByUid(value.uid); findNode(path, di, currentLevel + 1); } }); }); } else{ //do things with the found item }}Is it possible to bind an anchor element's (<a href...) click event to your MVVM viewModel when the anchor is the product of a grid column's template?
Here's the scenario: We use TypeScript, Kendo and Kendo's MVVM
ViewModel
01.export class ViewModel {02. 03. public people: Array<person>;04. 05. constructor() {06. this.people = new Array<person>();07. 08. $.getJSON(url)09. .done((result) => {10. $.each(result.contacts, (index, value) => { 11. this.people.push(new person(value));12. });13. });14. 15. }16. 17. onTradeRecordIgnore(dataItem: TradeRecordViewModel): void {18. dataItem.IsDeleted = !dataItem.IsDeleted;19. }20.}HTML & Template
01.<div id="tradeGrid"></div>02.<script id="tradeGridIgnore" type="text/x-kendo-template">03. # if (IsDeleted == false) { # 04. <a href="\#" data-uid="#:uid#" data-command="ignore" class="glyphicon glyphicon-unchecked text-center"></a>05. #}06. else 07. {#08. <a href="\#" data-uid="#:uid#" data-command="ignore" class="glyphicon glyphicon-check text-center"></a>09. #}# 10.</script>
Main Questions:
Hello,
I'm creating a grid using Razor syntax and would like to lock the left column
@(Html.Kendo().Grid(Model.GridData)
.Name(GridID)
.Columns(columns =>
{
columns.Template(o => o).ClientTemplate("<a class='k-button k-grid-details'>...</a>").Width(15).Locked(true);
When I run the grid with .Locked(true) as part of that column definition, the grid doesn't load. I only see the loading icon and the website hangs.
Please let me know what's wrong with my syntax. I've seen threads saying that the grid doesn't allow locked columns with templates, but the example was a hierarchical grid. My grid is not a hierarchy.
I'm trying to ensure that the left most column stays a constant width. It doesn't need to be locked necessarily, I just don't want it to get narrower if the window size changes. The grid must be 'Scrollable' so that the headers are always visible at the top.
Thanks in advance, and let me know if I can provide any more information.
Hi Telerik Team,
I have requirement to not show the default loading image while doing any actions and show them programtically.
Can you let me know in which event I can stop them and show it when ever required.
This is quite urgent.
Thanks,