Telerik Forums
UI for ASP.NET MVC Forum
1 answer
557 views

Hi,

In Kendo Grid - Export to Excel, is there any way to set the format of an excel column. I need to set the date format to "dd-MMM-yyyy" for transaction date column instead of using default format.


I am using server side grid

Stefan
Telerik team
 answered on 12 Sep 2017
1 answer
87 views

Hi,

We are having problems with paging on a grid when using server side paging.

We have a grid that contains, for example, 500 items. We have this paged to show 6 items and are currently looking at page 7.

On the back end, the data has been updated so that there is now only a single record in the dataset.

When I now do a refresh of the grid, the results are as follows:

The DataSourceRequest is as follows: Page = 7, PageSize = 6, all other properties are 0.

After performing ToDataSourceResult(request), the DataSourceResult is as follows: Data = empty, Total = 1.

Once this is returned, the grid then shows the no data template.

Is this a bug, or is there a way to fix it. I can obviously detect this, modify the request parameters and re-generate the DataSourceResult, but this smells a bit.

Thanks in advance,

Carl

Stefan
Telerik team
 answered on 12 Sep 2017
4 answers
600 views

Hi,

 

in a DDL I display entries of the following type:

public class ConfigEntryLine {
        public long ItemID { get; set; }
        public string ItemText { get; set; }
 
        [DisplayFormat(DataFormatString = "{0:c}")]
        public double ItemPrice { get; set; }

In the dropdown I want to display the"ItemPrice" on the right side formatted like given in the attribute on the model.

I use the DDL like in a editfor like this:

...
else {
    @(Html.Kendo().DropDownListFor(m => m.SelectedID)
                .DataTextField("ItemText")
                .DataValueField("ItemID")
                .AutoBind(true)
                .HtmlAttributes(new { style = "width:280px;font-size:small" })
                .ValuePrimitive(true)
                .BindTo(Model.Lines)
                 .Template("<span class=\"k-state-default\">#: data.ItemText#</span><span class=\"k-state-default pull-right\"><strong>#: data.ItemPrice#</strong>")
                );
}

I get the value - as number without decimal places and currency sign.

Is it possible to use the DisplayFormat attribute in a DDL template?

Heli
Top achievements
Rank 2
 answered on 11 Sep 2017
4 answers
410 views

When I create a new appointment on the calendar, the default end time is 30 minutes after the selected start time. Is there a way to change the default end time to be 2 hours after the selected start time.

Essentially I want to change the default appointment duration from 1/2 hour to 2 hours.

Thanks

Pete
Top achievements
Rank 1
 answered on 08 Sep 2017
1 answer
63 views

I am creating a one of my first MVC applications with Telerik. It seems on textboxes that are numbers it formats them using bootstrap formatting but if it is a numeric field that is a numeric it uses a k-textbox. So my forum looks really off. I am not sure how to make one overrule the other. I'm sure this has to be a common problem.

 

Thanks for the guidance in advanced. 

Preslav
Telerik team
 answered on 08 Sep 2017
3 answers
535 views

Hi Tlerik Team,

 

I'm trying to disable the animation for the Kendo MVC TabStrip and I did like 

 @{ Html.Kendo().TabStrip()     
        .Name("tabxyz")
         .Events(events => events.Select("onSelect"))
          .Animation(animation =>
          {
              animation.Enable(false);
          })

And its working as expected; But when I change the tab using the java script code, the animation is enabled again!!!!

Here is the code that I used.

  var tabstrip = $("#tabxyz").kendoTabStrip().data("kendoTabStrip");  
  var myTab = tabstrip.tabGroup.children("li").eq(selectedTab);
   tabstrip.select(myTab);

 

Please let me know what i'm doing wrong!! 

Thanks in advance.

Mahendra.

 

 

 

Ivan Danchev
Telerik team
 answered on 08 Sep 2017
4 answers
367 views

My 2 new edit fields to not get read or writen to the database.  They do however save to the model in memory and persist in the view.  All other fields save to the DB.

In my MVC Task scheduler I have created a 2 custom fields called (Completed and OnHold) both boolean.  I have created a CustomEditorTemplate.cshtml and reference it in index.cshtml. 

 .Editable(editable =>
    {
        editable.TemplateName("CustomEditorTemplate");
    })

 I have added to the DB then refreshed EF 6 successfully.  I have added both fields to all the same Controllers and Models. The same as the existing boolean field call "IsAllDay".  The only place where my fields don't exist and "IsAllDay" does is the kendo.all.min.js file.  The field "IsAllDay" is in kendo.all.min.js seven times.  If it was not a minified file I could read it.

Is that my problem?  The js file?

Thanks for looking :)

Rick Hubka
Top achievements
Rank 1
 answered on 07 Sep 2017
11 answers
159 views

Hi,

it is possible to obtain KendoUI version 2016 R3 (http://www.telerik.com/support/whats-new/kendo-ui/release-history/kendo-ui-r3-2016)?

Best regards,

Radoslav

Kathryn
Telerik team
 answered on 07 Sep 2017
1 answer
306 views

I was able to reproduce this problem in your online demo page:

https://demos.telerik.com/aspnet-mvc/scheduler

When clicked on "Save" button multiple times, duplicate calendar entries are created in database. How to prevent that?

Screenshot attached.

 

Neli
Telerik team
 answered on 07 Sep 2017
4 answers
304 views

Hello Support Team,

I implemented the scheduler in a mvc project with razor views.

Whats the recommended way to remove entries from the dropdown lists on the editing form? For example: I'd like to remove the option "Yearly" in the "Repeat" dropdownlist and some options in the "repeat on" dropdownlist (day, weekday, weekend day). 

Many thanks for your help.

Regards,

David

Alain
Top achievements
Rank 1
 answered on 07 Sep 2017
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?