Telerik Forums
UI for ASP.NET MVC Forum
1 answer
546 views
Hello. We're having an issue with our datepickers, where only Sunday and Monday of the week are visible. I've attached a screenshot of the issue, and you can see how no other days of the week are visible. This persists whether you move to another month or not.

This issue is affecting all of our datepickers. We have several that are used in Grid Column Filters for date types (which generate automatically), as well as others that we have placed manually. Here is an example piece of our code declaring a datepicker:

<input kendo-date-picker id="statFromDate" ng-model="fromDate"/>

We don't have any CSS styles that i can see that affect the datepickers, their containers, or make changes to the k-calendar class.

Is there some sort of configuration option that we might have set up correctly? 

Thank you for your help!
Kiril Nikolov
Telerik team
 answered on 14 Aug 2014
0 answers
109 views
Hi,

I have a grid which is bound to a list of viewmodels. When creating a record I want to upload an image as well. Following is my VM.

public class ClientModel : IClientModel
    {
        [ScaffoldColumn(false)]
        public int ClientID { get; set; }
 
        [Required]
        [DisplayName("Client Name")]
        public string Name { get; set; }
 
        [UIHint("_ClientHeaderImage")]
        public string HeaderImage { get; set; }
                 
        public bool IsActive { get; set; }
 
        private string _status;
                 
        public string Status
        {
            get
            {
                _status = IsActive ? "Enabled" : "Disabled";
                return _status;
            }
            set { _status = value; }
        }
 
    }

For the HeaderImage  property I need an upload control. So I have defined an editor template for it.

@(Html.Kendo().Upload()
    .Name("HeaderImage")
)

When I go in to Create record the upload control displays fine. The problem is

1. How can I grab the uploaded files from the Action Method?
2. How to restrict the files to .png and jpg for Kendo().Upload()


Thanks!!
Chuong
Top achievements
Rank 1
 asked on 14 Aug 2014
1 answer
155 views
Hi,

I'm using a treeview with the checkbox to allow the user the choices of the sections to put in a report.  The problem is that if the user check of the child all the parents should also be included. So what I need is a way to check all the parentfor the user when he select a child and unckeck all childs when a parent un uncheck. Any idea on how I can achieve this?
Daniel
Telerik team
 answered on 13 Aug 2014
3 answers
225 views
does the treeview findByText method support wildcards?
For example:
searchText = "Qrtly0422"
item = treeview.findByText(searchText)
dataItem = treeview.dataItem(item)
nodeText = dataItem.text

I can find the exact node, no problem, but if I try searchText = "422" it fails to find a result but doesn't throw any errors

I noticed the datasource filter can take an operator ie:  treeview.dataSource.filter({ field: "text", operator: "contains", value: nodeText })

so I tried to pass that structure to the findByText method but item will equal 0 and then the rest of the code fails with null errors.
item = treeview.findByText({ field: "text", operator: "contains", value: searchText })

Thanks.
Alexander Popov
Telerik team
 answered on 13 Aug 2014
3 answers
295 views
Hi,

How can I change shadow background area to specific DIV while displaying modal kendo window?

Thank you.

Shabtai
Dimo
Telerik team
 answered on 13 Aug 2014
3 answers
163 views
What "using" directive must  required to use Mousedoubleclick
on a RadPivotGrid? 

I keep getting the following error:
Error 17 The type or namespace name 'MouseEventArgs' could not be found (are you missing a using directive or an assembly reference?) \\jt3netapp1-2\users\Keith.Love\Visual Studio 2010\Projects\Telerik_WebApplication1\Telerik_WebApplication1\BigSheet2014Telerik.aspx.cs 748 68 Telerik_WebApplication1

and I have the following directives in my code:
using System;
using System.Globalization;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
using Telerik.Web.UI.PivotGrid;
using System.Text;
Angel Petrov
Telerik team
 answered on 13 Aug 2014
5 answers
167 views
Just installed Q2. Tried to upgrade a site. Get this error "Please go back and select at least one project in order to continue the upgrade."

Worked fine before. MVC 5.2
Starting to getting tired on all upgrade errors with new releases.
Momchil
Telerik team
 answered on 12 Aug 2014
3 answers
207 views
I am interested in the functionality of the Gantt control, but I don't want to display the timeline view. I only want the treelist view.

Is there a way to hide the timeline view? I know there are a bunch of view options (day, week, month, etc), but I don't see one for "none", so I don't know if this is possible or not.

If not, is that because there is a different control that offers the same functionality that I should be using?

Thanks!
Jason

Bozhidar
Telerik team
 answered on 12 Aug 2014
7 answers
249 views
I have been looking for awhile on how to export a chart to a JPG on a button click. I have found some documentation on the matter and most of the links are broken or the solution doesn't work. Is there an current examples of a chart being exported to jpg or png?

One of links I have found is http://www.telerik.com/support/code-library/kendo-ui-chart-export and the project doesn't seem to want to pull up for me.
T. Tsonev
Telerik team
 answered on 12 Aug 2014
5 answers
225 views
I haven't seen any documentation on razor syntax for the Gantt control. Is this somewhere? I am trying to do the following:

@(Html.Kendo().Gantt(Model) // Bind the grid to the Model property of the view
        .Name("Gannt")
        .Columns(columns => columns.Bound(o=>o.Title).Title("Title"))
        )

And I'm receiving the following error: CS1501: No overload for method 'Gantt' takes 1 arguments

In looking at the ASPX example here: http://docs.telerik.com/kendo-ui/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/GanttColumnBuilderBase

<%= Html.Kendo().Gantt(Model)
.Name("Gantt")
.Columns(columns => columns.Bound(o => o.OrderID).Title("ID"))
%>

It looks like the only parameter is the Model itself. This is probably something silly that I'm missing. Any help is greatly appreciated.






Jason
Top achievements
Rank 1
 answered on 11 Aug 2014
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?