Telerik Forums
UI for ASP.NET MVC Forum
4 answers
1.2K+ views
Hi everyone,

I'm using a Grid to ajax edit a simple model in the inline mode and on the Controller the ModelState.IsValid is always false.
The error message is "The value '/Date(-62135578800000)/' is not valid for Expiration."

I have attach the relevant code of my test application and would appreciate any help.


Thanks,
Alexandre Lefebvre
Marcel Härry
Top achievements
Rank 1
 answered on 01 Nov 2016
1 answer
129 views
How to create multiple sub columns in grid headers where the titles can be read from datasource? The number of parent header and sub columns depends on datasource.
Niko
Telerik team
 answered on 01 Nov 2016
1 answer
305 views

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?

 

Danail Vasilev
Telerik team
 answered on 01 Nov 2016
1 answer
210 views
I want to make the rich text editor control shorter. I've tried applying a "height" style to the css as well as directly to the control but cannot get it shorter than 175px. Is it possible to shorten it?
Rumen
Telerik team
 answered on 31 Oct 2016
3 answers
114 views

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!

 

Rumen
Telerik team
 answered on 31 Oct 2016
3 answers
1.0K+ views

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

Vessy
Telerik team
 answered on 31 Oct 2016
1 answer
1.0K+ views

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">

Danail Vasilev
Telerik team
 answered on 31 Oct 2016
1 answer
273 views
We are usingc trial version of Telerik UI for ASP.NET MVC R3 2016 With MVC 4

PROJECT DESCRIPTION 
We are using System.Web.Mvc version as 5.2.2.0.And Kendo.MVC.dll of version 2012.3.1114.340.
We are using kendo datepicker but on edge the saved date value is not displaying.If we put type="text" it removes the validations from that field like required filed etc. And also tried to replaced Kendo.MVC.dll of new trial version i.e. 2016.3.914.440 but still it's not working, Do we need to replace an css or js files also,If yes please let me know which are those.
We need to have common fix because we need to do this change at one common place as at many places we are using that.
Please give us the solution.

Thanks,
Ashvini

Viktor Tachev
Telerik team
 answered on 28 Oct 2016
3 answers
309 views

 

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

 

 

 

 

Veselin Tsvetanov
Telerik team
 answered on 28 Oct 2016
6 answers
742 views
I have an operation in the MVC controller that might run a few seconds before completing for Create and Update actions in the grid.  How do I get a spinning wait cursor to display during this operation and prevent the user from clicking on anything else?
Pavlina
Telerik team
 answered on 28 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?