I am trying to get my actionlinks to redner into one column. Currently I have them all laid out in individual columns, but can't figure out how to merge them into one.
.Columns(columns => { columns.Bound(obcs => obcs.ProfileName).Title(xxx.Controllers.FieldTranslation.GetLabel("ProfileName", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Bound(obcs => obcs.EEFinalize).ClientTemplate("#= EEFinalize ? 'Yes' : 'No' #").Title(xxx.Controllers.FieldTranslation.GetLabel("EEFinalize", @xxx.DNetSynch.GlobalVariables.LanguageID)); //columns.Bound(obcs => obcs.CCFinalize).ClientTemplate("#= CCFinalize ? 'Yes' : 'No' #"); columns.Bound(obcs => obcs.Completed).ClientTemplate("#= Completed ? 'Yes' : 'No' #").Title(xxx.Controllers.FieldTranslation.GetLabel("Completed", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Template(@<text> @Html.ActionLink(@item.ProfileID.ToString(), "Index", "OBProfileTasks", new { @item.ProfileID }) </text>) .ClientTemplate("<a class='k-button' href='./OBProfileTasks/Index/#= ProfileID#'>Tasks</a>") .Title(xxx.Controllers.FieldTranslation.GetLabel("Tasks", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Template(@<text> @Html.ActionLink(@item.ProfileID.ToString(), "Index", "OBProfileTasks", new { @item.ProfileID }) </text>) .ClientTemplate("<a href='OBProfileTasks/Index/#= ProfileID#'><i style='color:black;' class='fa fa-plus fa-lg' title='Assign To Client'></a>") .Title(xxx.Controllers.FieldTranslation.GetLabel("AssignToClient", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Template(@<text> @Html.ActionLink(@item.ProfileID.ToString(), "Replica", "OBProfile", new { @item.ProfileID }) </text>) .ClientTemplate("<a href='OBProfile/Replica/#= ProfileID#'><i style='color:green;' class='fa fa-clipboard fa-lg' title='Replicate'></a>") .Title(xxx.Controllers.FieldTranslation.GetLabel("Replicate", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Template(@<text> @Html.ActionLink(@item.ProfileID.ToString(), "Delete", "OBProfile", new { @item.ProfileID }) </text>) .ClientTemplate("<a href='OBProfile/Delete/#= ProfileID#' onclick='return confirm_delete()' title='Delete'><i style='color:red;' class='fa fa-times fa-lg'></i></a> ") .Title(xxx.Controllers.FieldTranslation.GetLabel("Delete", @xxx.DNetSynch.GlobalVariables.LanguageID)); columns.Command(command => { command.Edit(); // command.Destroy().HtmlAttributes(new { @class = "onboard-delete " }); }).Title(xxx.Controllers.FieldTranslation.GetLabel("Controls", @xxx.DNetSynch.GlobalVariables.LanguageID)); })
I'm using a panelbar to display a list of chapters. Within each panel is a list of tasks within that chapter. Think of it like a list:
When the page is loaded, I want to expand the panel w/ the first incomplete task. I know which chapter contains this task (by index, not by ID), and want to have it be expanded when I initialize the panelbar.
Current accordion JS:
function initTasksAccordion() { $("#task_accordion").kendoPanelBar({ expandMode: "multiple" });}And some sample HTML:
<ul id="task_accordion"> # for (var c = 0; c < data.Chapters.length; c++) { # <li>#= data.Chapters[c].Name # # for (var t = 0; t < data.Chapters[c].Tasks.length; t++) { # <div> <h3 class="item-title">#= data.Chapters[c].Tasks[t].Name #</h3> <div class="clear"></div> </div> # } # </li> # } # </ul>So if my first incomplete task is Task 4, I would know that it's the second (or first, if you use 0-based indexing) panel I want to have expanded when the panelbar is created. While I do have multiple selection enabled, for the initial load, only the one panel (with the incomplete task) should be expanded.
Hi
I have the following ClientTemplate column:
columns.Bound(a => a.Quantity).Title("Anzahl").Width(55).ClientTemplate("<input class='text' value='#=Quantity#' id='Quantity' />").Format("{0:n0}");Values displayed or entered here are not exported to PDF.
How can I make this work?
Thanks
Hi
I want to replace every tooltip on my site with the kendo one, I also want in some places to use the 'title' of the div, or to get data dynamically using ajax. To accomplish this I have a tooltip like the below
$('body').kendoTooltip({
filter: "img[data-tooltip-data], div[data-tooltip-data], [title][title!='']",
and content gets the content depending on the target type. I've put the tooltip on body as I want it across everything on the site. I've used a single tooltip rather than multiple tooltips, this is based on advice I've seen in the forums.
I'm getting the problem you can see in the dojo below.
http://dojo.telerik.com/AmEYa
The tooltip never disappears. I'm assume I'm doing something wrong here but I'm not sure how I'm meant to do this
thanks
Anthony
Hi,
Is there any way to retrieve a view column index from the model ( myGrid.columns ) ?
I'm looking for a method like viewIndex() on a column object such like the following code ( or viewIndex(column) ) :
for (var i = 0; i < myGrid.columns.length; i++) { var column = myGrid.columns[i]; console.log('Model column index : ' + i + ' - View column index : ' + column.viewIndex());}Have you any idea ?
Thanks for your help.
Hi,
A newbee to kendo and js:). I am trying to use kendo scheduler in my project and having issue with Create / update operations. Create / Update opertions works and DB is updated but kendo UI dialog stays and gets following error "Uncaught TypeError: Cannot read property 'getTimezoneOffset' of null". Refreshing browser display newly added /updated event. Also in destroy method I nned to add event id to path like /schedules/id, how to add this, in parameterMap we gets like options.models[0].id but not in destroy method.
Any quick help is appreciated. Posting my code:
'use strict';Hello, I have a drop down filter with both checkbox and the default filter. I've been looking at the documentations on how to bind the inputs below with text and I haven't been success in binding all of them. The goal of the default filter is the work and remember the previous settings and text that have been filtered with. I tried to create by own observable on the two input fields in the default filter with unique ids with this code:
var levelOneFilterText = "";var levelTwoFilterText = "";var viewModelLevelOne = kendo.observable({ levelOneFilterText: levelOneFilterText,});var viewModelLevelTwo = kendo.observable({ levelTwoFilterText: levelTwoFilterText}); var defaultFilterInputs =helpTextElement.nextUntil(":has(.k-button)")defaultFilterInputs[1].dataset['bind'] = "text:levelOneFilterText"; // remove a new binding for filtersdefaultFilterInputs[1].id = "charlie-filter-1-"+id; // custom filterdefaultFilterInputs[4].dataset['bind'] = "text:levelTwoFilterText";defaultFilterInputs[4].id = "charlie-filter-2-"+id; kendo.bind($("#charlie-filter-1-"+id),viewModelLevelOne);kendo.bind($("#charlie-filter-2-"+id),viewModelLevelTwo);id++;I am able to bind one filter, but if I open another filter up, the inputs will be missing. I don't know why this is happening so I wanted to make a post here in order to ask for for advice.
The sample project here Dojo proj is the exact code I am using.