I set Scheduler to bind with a WebService (c#) like source below,
but WebService need a date with parameter, how can do ?
and when click prev,next, and datepicher button, how rebind with correct parameter ?
dataSource: {
batch: true,
transport: {
read: {
url: "/WebServices/LessonsTimeGrid.ashx",
dataType: "json"
},
...
...
I have a hierarchy grid controlled by a TabStrip. I need to pass additional parameters, such as the TabStrip value, to the child Grid read action method.
For example
.Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#", TabStip​Value = value}))​I know you can pass parameters using a javascript function with
.Data("javascriptFunction")But I am not sure how to pass the template expression to that function.
Below is the code I am using​
<div id="dataEntryContainer"> @(Html.Kendo().TabStrip() .Name("sitetabs") .Items(tabstrip => { bool selected = true; foreach (var site in Model.Sites) { tabstrip.Add().Text(site.Name) .Selected(selected) .Content(@<text> @(Html.Kendo().Grid(Model.Categorys) .Name("grid_" + site.DisplayName) .Columns(columns => { columns.Bound(c => c.Name).Title(""); }) .Events(events => events.DataBound("dataBound")) .ClientDetailTemplateId("metricgroup-template") .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("HierarchyBinding_Categorys", "DataEntry")) ) ) </text> ); selected = false; } }) .Events(events => events.Select("onSelect")) )</div> <script id="metricgroup-template" type="text/kendo-tmpl"> @(Html.Kendo().Grid<BalancedScorecardManagement.Models.vMetricGroup>() .Name("grid_#=CategoryKey#") // template expression, to be evaluated in the master context .Columns(columns => { columns.Bound(m => m.MetricGroupLabel).Title(""); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#" })) ) .Events(events => events.DataBound("dataBound")) .ClientDetailTemplateId("metric-template") .ToClientTemplate() )</script>I have a hierarchy grid controlled by a TabStrip. I need to pass additional parameters, such as the TabStrip value, to the child Grid read action method.
For example
.Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#", TabStipKey = key }))​
I know you can pass parameters using a javascript function with
.Data("javascriptFunction")But I am not sure how to pass the template expression to that function.
Below is the code I am using
<div id="dataEntryContainer"><br> @(Html.Kendo().TabStrip()<br> .Name("sitetabs")<br> .Items(tabstrip =><br> {<br> bool selected = true;<br> foreach (var site in Model.Sites)<br> {<br> tabstrip.Add().Text(site.Name)<br> .Selected(selected)<br> .Content(@<text><br> @(Html.Kendo().Grid(Model.Categorys)<br> .Name("grid_" + site.DisplayName)<br> .Columns(columns => { columns.Bound(c => c.Name).Title(""); })<br> .Events(events => events.DataBound("dataBound"))<br> .ClientDetailTemplateId("metricgroup-template")<br> .DataSource(dataSource => dataSource<br> .Ajax()<br> .Read(read => read.Action("HierarchyBinding_Categorys", "DataEntry"))<br> )<br> )<br> </text><br> );<br> selected = false;<br> }<br> })<br> .Events(events => events.Select("onSelect"))<br> )<br></div><br><br><script id="metricgroup-template" type="text/kendo-tmpl"><br> @(Html.Kendo().Grid<BalancedScorecardManagement.Models.vMetricGroup>()<br> .Name("grid_#=CategoryKey#") // template expression, to be evaluated in the master context<br> .Columns(columns =><br> {<br> columns.Bound(m => m.MetricGroupLabel).Title("");<br> })<br> .DataSource(dataSource => dataSource<br> .Ajax()<br> .Read(read => read.Action("HierarchyBinding_MetricGroups", "DataEntry", new { CategoryKey = "#=CategoryKey#" }))<br> )<br> .Events(events => events.DataBound("dataBound"))<br> .ClientDetailTemplateId("metric-template")<br> .ToClientTemplate()<br> )<br></script>​Hi everyone
I have a kendo grid with a custom popup editor.
On this editor I have a async upload to add more files, but when adding files it never fires the update ActionResult. I have to manually change some values of the other model fields before it fires?
I have even set a model value via jQuery when a file is uploaded, but it seems it ignores changes via jquery.
Please advise.
Thank you.
Hi,
I'm trying to create a timeline of meeting schedules based on grouping buildings, floors and room. I was able to group floors and rooms but how can i include building into the picture as seen in the attached image.
Hi!
I want to use this example:
http://docs.telerik.com/kendo-ui/web/scheduler/how-to/custom-edit-and-event-templates
But in ma case I want 'Owner' to be selected in edit mode, ie. when I click some event I see (in edit mode) 'Owner' is not selected, although on main schedular it shows as e.g "Alex".
Could you tell me how can I do this?
Hi! Is there a suggested way to keep the selected row of a grid after an operation of filtering, grouping or sorting?
I've searched for something similar and the suggestion that I've found is to keep the grid state on a cookie, but I think that's too much, I mean, for save only a row (maybe only an ID) use a cookie is too expensive.
Thank you,
Mattia
If a value does not exist in the list, is there a way to type in the textbox and add a new answer that way? The answer would display in the textbox just like if you had selected one from the list (with the 'x' next to the item). Basically, I am looking for a way to specify an 'other' value.
Thank you.
Matt
Hello. The popup is shifted, when bootstrap theme is applied.
please, open attached "ie.png" to see the problem.
Also it is repeatable on dojo. http://dojo.telerik.com/uqoFa
What is wrong in applied stiels?
My styles looks like below:
<link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.common-bootstrap.min.css" /><link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.bootstrap.min.css" /><link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.dataviz.min.css" /><link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/kendo/2015.2.902/kendo.dataviz.bootstrap.min.css" /><link rel="stylesheet" type="text/css" href="/ThinkTimeWeb/Content/css_kendo/main.css" />
But it would be enough to fix it in http://dojo.telerik.com/uqoFa
Thanks in advance.
Hi,
I'm using drawing.drawDOM to create a PDF. I have to make a table of contents in the beginning of the PDF. I've got two issues:
- How do I link to another section of the PDF? <a href="#conclusion">Conclusion</a> and then later <a name="conclusion"></a> doesn't seem to work :-/
- How do I figure out on which page a specific part of the document is being rendered? In my TOC I would like to say "Conclusion....page 22".
I hope you can help me :-)
Thanks!