can someone tell me why this is not working? I am trying to puss the ID of the video to GetVideoDuration().
<script type=
"text/x-kendo-template"
id=
"template"
>
<div class=
"duration"
>
@{string VID =
"VID"
;}
@VID.Replace(
"Vimeo_ID"
,
"${VID}"
)
@MultimediaController.GetVideoDuration(VID)
</div>
</script>
Second line display the correct VID on every record. But when GetVideoDuration() is getting executed the value passed is VID string not the actual number.
multimedia controller.
public
static
string
GetVideoDuration(
string
VID)
{
string
strDuration =
string
.Empty;
}
I wish to exchange the radiobuttons in the default boolean filter with a checkbox.
I expected that there was a GridUIRole for this, but alas it was not so.
How would I go about this practically?
Hi,
I have a Kendo Tabstrip in which I use LoadContentFrom to load content from a controller action that return a PartialView. The code is
<% Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
foreach (var pillar in Model.Evaluation.Pillars)
{
tabstrip.Add()
.Text("Name")
.LoadContentFrom("EvaluationFormPillar", "Evaluations", new { id = Model.Evaluation.Id, pillarId = pillar.Id,
hasActionItem = Model.Editable , editable = Model.Editable
});
}
})
.SelectedIndex(Model.SelectedTabIndex)
.Render();
%>
public ActionResult EvaluationFormPillar(int id, string pillarId, bool hasActionItem, bool editable)
{
var model = new EvaluationPillarViewModel();
Evaluation evaluation = this._evaluationsBL.GetEvaluation(id);
......
return PartialView(model);
}
But strangely enough, LoadContentFrom can't go to action "EvaluationFormPillar". It just displays a empty tabstrip with correct tab (set by SelectedIndex). Can anyone help me on this problem? Thanks.
Hi,
I'm not sure if i posted in the correct sub forum. But i have a problem using drawer as navigation menu. The menu links need to open the page in current tab/page. My code works ok in desktop browser but when test it on ipad it's opened in new tab. I have tried using the code from telerik documentation something like this:
<div data-role="drawer" data-views='["bar.html"]'>
<ul data-role="listview">
<li><a href="#foo">Foo</a></li>
<li><a href="bar.html">Bar</a></li>
</ul>
</div>
but the page wouldn't open correctly and just looks like a blank page. What am i doing wrong? Please someone help me.
I have attached my sample code as reference. Thank you.
Ady
I have a grid which has inline editing with one field visible (a date field).
For some reason when I press edit on a row and then cancel (on any row apart from the top row) the whole row turns into the value of the top item.
No data is saved to the database as refreshing the grid shows the correct values again.
I've put in an event handler to see what's being happening when cancel is pressed and it seems by the time the cancel event is hit, the object that gets returned is the first item of the grid.
How can I stop this behaviour from happening?
Hi,
I want to see only one series visible on page load. I have dynamically loading the series:
.Series(series =>
{
foreach (var def in Model.Series)
{
series.Column(def.Value).Name(def.Years);
//.Visible(just year "2014")
}
})
Thanks,
Victor
Working w/a C# MVC Project that displays a Company's information if the user chosen from a ComboBox EXISTS. One of the data fields displayed is the Company's State which is itself a ComboBox:
@(Html.Kendo().ComboBox()
.Name("CompanyState")
.Placeholder("Select a state...")
.BindTo((List<string>)ViewBag.StateNames)
.Value("NV")
.Suggest(true)
)
Note that when the ComboBox is first created, its data source is bound to the List in "ViewBag.StateNames".
When the data is displayed, I DISABLE the "CompanyState" ComboBox as there is no need for the App User to enter the data.
$("#CompanyState").kendoComboBox({ enabled: false });
My problem is when I need to ENABLE the "CompanyState", I lose the binding to the List in "ViewBag.StateNames". My question then is: how can I rebind to that List?