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
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
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?
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
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.
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.
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 :)
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
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.
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