I have a nullable Guid column in my grid that is using an editor template to display a the text value associated with the Guid in the lookup table.
columns.ForeignKey(p => p.NotAcceptableReason, (System.Collections.IEnumerable)ViewBag.NotAcceptableReasons,
"NotAcceptableReasonId"
,
"NotAcceptableReasonName"
).Width(200);
The editor template:
@
using
Kendo.Mvc.UI
@model
object
@(
Html.Kendo().DropDownListFor(m => m)
.BindTo((SelectList)ViewData[ViewData.TemplateInfo.GetFullHtmlFieldName(
""
) +
"_Data"
])
.OptionLabel(
"--- Select ---"
)
.ValuePrimitive(
true
)
)
On that column's column filter popup,I get all the text values from the lookup table in a drop down list and the filtering work as expected.
However, when I try to filter the column on "Is null" or "Is not null" I get an error -> System.FormatException: Unrecognized Guid format.
I suspect this is because there is no NULL entry in the lookup table I'm binding the drop down list to. Any suggestions for getting the "Is null" or "Is not null" column filters to work correctly in this scenario?
Hello,
I am trying to use the AutoComplete editor with MVC6. Kendo Version 2016.3.914
I keep getting, Uncaught TypeError: jQuery(...).kendoAutoComplete is not a function when I run the page.
I found this post from last year: http://www.telerik.com/forums/missing-textboxfor-and-autocomplete#a-GwYBg2-ECJCMqxHipYVQ
Has support for AutoComplete been added yet?
Thank you!
I'm wondering if anyone has tried and would like to share how to dynamically store the telerik html code in a database and render it onto a MVC view dynamically. I have a project I'm currently working on and have been unsuccessful so far.
Thanks,
Neil
Is there any way to declare the value of a checkbox? Currently the value is always 'true'.
<input name="AppleYN" class="k-checkbox form-control" id="AppleYN" type="checkbox" value="true">
I would like to specify the values for check box lists:
<input name="AppleYN" class="k-checkbox form-control" id="AppleYN" type="checkbox" value="21">
<input name="BananaYN" class="k-checkbox form-control" id="BananaYN" type="checkbox" value="22">
<input name="OrangeYN" class="k-checkbox form-control" id="OrangleYN" type="checkbox" value="23">
We are currently working with the Upload control in what would seem to be a very simple setup.
@(Html.Kendo().Upload()
.Name("files")
.ShowFileList(false)
.Multiple(false)
.Async(a => a
.Save("Save", "Patient")
.AutoUpload(true)
.SaveField("files")
)
.Validation(validation => validation.AllowedExtensions(new string[] { ".gif", ".jpg", ".png" }))
)
and our controller is defined as such
[HttpPost]
public
async Task<IActionResult> Save(IEnumberable<HttpPostedFileBase> files)
What is happening is that the files parameter is not null but has a count of 0. This is in an ASP.NET core MVC app.
What could the issue be? Is there something simple we are missing here?
Thanks
AJ