kendo-ui

How to display formatted HTML data in kendo ui grid column

我与影子孤独终老i 提交于 2020-01-04 18:19:06
问题 I have added columns in the kendo ui grid dynamically. I have a column named 'Formatted' with the data displayed in the below format. <div class="class1"> <div>This is <strong>bold </strong>text.</div> <div> </div> <div>This is <em>italics</em> text.</div> <div> </div> <div>This is a <a href="http://google.com/">hyperlink</a>.</div> <div> </div> <div>Bulleted list:</div> <ul> <li>Bullet #1</li> <li>Bullet #2</li> <li>Bullet #3</li></ul></div> I want the 'Formatted' column to display the data

Creating 2 child kendo grids at the same level

人走茶凉 提交于 2020-01-04 15:47:33
问题 I have a requirement to create 2 child kendo grids for a parent kendo grid. I know I can create one kendo grid using the detailInit and keep using that method for more levels of hierarchy. But the problem I need to solve is to have both the child grids as siblings. So, the structure needs to look something like this: Parent Grid 1 Child Grid 1 Child Grid 2 Parent Grid 2 Child Grid 1 Child Grid 2 I am not sure how to go about that. I am thinking, I can have some kind of a detail template with

Kendo ui Grid shows json instead of grid Asp .net razor

*爱你&永不变心* 提交于 2020-01-04 15:16:27
问题 I trying to initialize my Kendo ui grid. I am able to populate it using the View object, but when I try doing it in Json format (i.e. when moving to next page) I get a screen showing json results instead of my view. Here's the controller code: public class CampaignsController : Controller { // // GET: /Campaigns/ [HttpGet] public ActionResult Index() { return View(GetAllCampaigns()); } public ActionResult Campaigns_Read([DataSourceRequest] DataSourceRequest request) { DataSourceResult result

Grouped and Stacked Column Chart

纵饮孤独 提交于 2020-01-04 14:01:32
问题 I have a service returning JSON like: { "data": [ { "portfolio": "Portfolio 01", "REGN_NME": "Africa/Middle E", "Regn_Group": "Emerging", "sector": "Sector 08", "exposure": 0.109977544284 }, { "portfolio": "Portfolio 01", "REGN_NME": "Americas", "Regn_Group": "Frontier", "sector": "Sector 06", "exposure": 1.78919403995e-09 }, ... ]} I'm trying to generate a grouped and stacked column chart. I need to group by the "portfolio", stack by "Regn_Group", and aggregate "exposure". I can get the

Kendo UI Scheduler: Custom view and edit behavior

落爺英雄遲暮 提交于 2020-01-04 06:24:01
问题 I've been looking into this for a few days now and searched the forums high and low. Both in stack overflow, as well as Telerik's own forums, to no avail. I'm using a Kendo UI scheduler component in an MVC application. Below is part of the index.cshtml that creates the scheduler. @(Html.Kendo().Scheduler<TaskViewModel>() .Name("scheduler") .Views(views => { views.CustomView("ThreeDayView"); }) .DataSource(d => d .Read("Read", "Home") .Create("Create", "Home") .Destroy("Destroy", "Home")

Kendo UI Scheduler: Custom view and edit behavior

扶醉桌前 提交于 2020-01-04 06:23:10
问题 I've been looking into this for a few days now and searched the forums high and low. Both in stack overflow, as well as Telerik's own forums, to no avail. I'm using a Kendo UI scheduler component in an MVC application. Below is part of the index.cshtml that creates the scheduler. @(Html.Kendo().Scheduler<TaskViewModel>() .Name("scheduler") .Views(views => { views.CustomView("ThreeDayView"); }) .DataSource(d => d .Read("Read", "Home") .Create("Create", "Home") .Destroy("Destroy", "Home")

How to set column width to autofit in Kendo Grid MVC

做~自己de王妃 提交于 2020-01-04 03:18:11
问题 I use to my page of Kendo grid that have multi columns. I want set a column width to autofit and change width automatically. Plz help me , thanks @(Html.Kendo().Grid<GardeshKar.Models.v_marhaleh_marahel>() .Name("grdMarahel_Gardeshkar") .ToolBar(toolbar => toolbar.Custom().Name("btnAddMarhaleh").Text("اضافه").HtmlAttributes(new { id = "btnAddMarhaleh", href = "#" })) .Columns(columns => { columns.Bound(c => c.Code).Width(50).Title("کد"); columns.Bound(c => c.Desc).Width(150).Title("شرح");/

Kendo UI Grid - Show row number

半世苍凉 提交于 2020-01-03 18:35:15
问题 How do I show the row number in a Kendo UI Grid? The code I have is not working. The page displays the column but it's empty. @{int counter = 1;} @(Html.Kendo().Grid<QueueViewModel>() .Name("Queue") .Columns(columns => { columns.Template(@<text><span>@counter @{ counter++; }</span></text>).Title("#"); }) .DataSource(dataSource => dataSource .Ajax() .PageSize(10) .Read(read => read.Action("GetOpenQueue", "DataSource", new { GeneralQueue = true }) )) 回答1: Do this: @{ int counter = 1; } @(Html

Disable editing in kendo grid

谁都会走 提交于 2020-01-03 17:18:05
问题 I am trying make the an editable grid to uneditable depend on conditions. I have tried in jquery as below var $grid = &("#gridName").data("kendogrid"); Var model = $grid.datasource.at(1); if(model) model.field["cell"].editable = false; but here the 'model' is getting undefined. also tried $grid.data() and then looping through the grid, but the cells are not getting uneditable they are still editable. Can anyone please let me know how can I make this work. 回答1: You have some typographic errors

MVC helper inside a template

谁都会走 提交于 2020-01-03 16:55:24
问题 I am trying to use a kendo MVC helper inside a template (remote template file loaded like: http://docs.kendoui.com/howto/load-templates-external-files#remote-templates. I have a controller that sends to the client the generated markup) My template file is something like: <script id="my-pager-template" type="text/x-kendo-template"> My pager @(Html.Kendo().ListView<Business.Data.MyPage>() .Name("myPagerListView") .TagName("div") .ClientTemplateId("my-pager-item-template") .DataSource(dataSource