Telerik Forums
Kendo UI for jQuery Forum
1 answer
797 views
Hi 

I am a newbie to KendoUi. I am facing an issue with the data grid in setting up the filters for the columns with numeric values.
In my code I am getting  filters (startswith, contains .. - which are String filters ) instead  of numeric filters (less than, greater than.. ) .

Working demo of the porblem : http://jsfiddle.net/Sbb5Z/1125/

Regards
Arun
Alexander Valchev
Telerik team
 answered on 21 Nov 2013
1 answer
269 views
I am trying to display a simple chart from remote data, but I'm having trouble with aggregates.  For a table of people, I'd like to see a bar chart that shows the number of people in each role.  I think the bottom-line question is, "where are the aggregates calculated?"  Does the framework calculate them on the client side after the data has been returned from the server?  In my ASPNet MVC controller, I can see the expected Kendo.Mvc.GroupDescriptor list and the Kendo.Mvc.IFilterDescriptor list populated correctly, but the Kendo.Mvc.AggregateDescriptor list is empty.  Should it be?  Also, the AggregateFunctions collection in the GroupDescriptor is also empty.  Please advise.

var myDataSource = new kendo.data.DataSource({
        transport: {
            prefix: "",
            read: {
                url: "/Team/TeamMembers",
                type: "POST"
            }
        },
        group: {
            field: "personRole",
            aggregates: [{
                field: "personId",
                aggregate: "count"
            }]
        }
}
Petur Subev
Telerik team
 answered on 21 Nov 2013
4 answers
177 views
Hi, I have been in this problem for too long. The Foreign Key Column doesn't render a DropDownList, instead of that, it renders an <input>. I don't know why. I've been through many forums but without success. Please help me. I have the following structure.

The model and view:
public class ProcesoEvaluacionDTO
    {
        [ScaffoldColumn(false)]
        public int ID { get; set; }
 
        [Required]
        [MaxLength(200)]
        public string Nombre { get; set; }
 
        [DisplayName("Fecha de cierre a evaluadores")]
        [Required]
        [DataType(DataType.Date), DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public string FechaCierre { get; set; }
 
        [Required]
        [UIHint("GridForeignKey")]
        [DisplayName("Autorizado por")]
        public int AutorizadorID { get; set; }
 
        public ProcesoEvaluacionDTO() { }
}
public class ColaboradorDTO
    {
        public string NombreCompleto { get; set; }
 
        public int ID { get; set; }
 
        public ColaboradorDTO() { }
 
    }
@{
    IList<ColaboradorDTO> colaboradores = ViewBag.colaboradores;
    SelectList lista = new SelectList(colaboradores, "ID", "NombreCompleto");
}
 
@(Html.Kendo().Grid<ProcesoEvaluacionDTO>()
            .Name("ProcesosDeEvaluacionGrid")
            .Columns(columns =>
                {
                    columns.ForeignKey((p => p.AutorizadorID), lista);
                    columns.Bound(p => p.Nombre);
                    columns.Bound(p => p.FechaCierre);
 
                    columns.Command(command => {
                        command.Edit();
                        command.Destroy();
                    }).Width(300);
                }
            )
            .ToolBar(toolbar => toolbar.Create())
            .Editable(editable => editable
                .Mode(GridEditMode.PopUp)
            )
            .Pageable(paper => paper.Refresh(true))
            .Filterable()
            .Sortable()
            .Scrollable(w => w.Height(330))
            .DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(20)
                .ServerOperation(false)
                .Events(events => events.Error("error_handler"))
                .Model(model => { model.Id(p => p.ID); })
                .Create(update => update.Action("EditingInline_Create", "ProcesoEvaluacion"))
                .Read(read => read.Action("EditingInline_Read", "ProcesoEvaluacion"))
                .Update(update => update.Action("EditingInline_Update", "ProcesoEvaluacion"))
                .Destroy(update => update.Action("EditingInline_Destroy", "ProcesoEvaluacion"))
            )
        )
Also, GridForeignKey.cshtml is in the correct place ~/Views/Shadres/EditorTemplates. I really don't know why an <input> appears. I've even tried to write my own custom editor template but I've got the same error. Help please.
Vladimir Iliev
Telerik team
 answered on 21 Nov 2013
2 answers
161 views
In one of our requirement, we are showing kendo donut chart on kendo window. Kendo donut chart is rendering properly but its label are not getting placed at their correct coordinates( x, y) position.
When we investigated further, we found out that label tag(<text>) is forming perfectly but it is not getting placed at its desired position. 

Is this issue occuring as we are showing kendo donut chart on kendo Window? 
We are getting this issue on Google Chrome only.
FSA
Top achievements
Rank 1
 answered on 21 Nov 2013
14 answers
859 views
Hi, I need to send back checked items in a hierarchical tree view and the state they're in.  The state has to have 3 values, checked, unchecked and the "partial" check where only some children are checked (and the checkbox itself is "filled").

How do I get this state?  I see no class, or anything that tells me it's partial (short of looking through it's child tree and looking for checked items, which I don't want to do).
Alex Gyoshev
Telerik team
 answered on 21 Nov 2013
1 answer
73 views
In my DropDownList Close event, I need to get the current row in the Grid that the closing drop down is a child of.  How can I do that?
Thanks,
--Ed
Alexander Valchev
Telerik team
 answered on 21 Nov 2013
1 answer
79 views
For the life of me, I cannot find kendoPopup() in the TypeScript definition file as either an extension to JQuery or as a class widget in kendo.ui.

Is this by design or an oversight?
Atanas Korchev
Telerik team
 answered on 21 Nov 2013
1 answer
290 views
It is pretty straight forward, there are plenty of references to using:
@(Html.Kendo().Chart(Model.oeeList)
    .Name("widget-oee-breakdown")
    .Theme("black")
    .DataSource(ds => ds
        .Group(group => group.Add(model => model.resp_id))
    )
    .Series(series =>
    {
        series.Column <double?, string> (model => model.total, categoryExpression: model => model.area_name).Color("White").Name("Downtime").Labels(labels => labels.Visible(false).Format("{0:n2}")).Stack(true);
    })
    .ChartArea(ca => ca
        .Background("transparent")
    )
    .CategoryAxis(axis => axis
        .MajorGridLines(lines => lines.Visible(false))
        .Labels(model => model.Rotation(90))
    )
    .Legend(legend => legend
        .Visible(false)
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Max(100)
        .Line(line => line.Visible(false))
        .MajorGridLines(lines => lines.Visible(false))
        .Labels(false)
    )
    .Tooltip(tooltip => tooltip
        .Visible(true)
        .Template("#= dataItem.resp_name #: #= kendo.format('{0:n2}', value) #")
    )
)
In this forum as well as others.  "dataItem" doesn't return as undefined, but any member I specify does.  In the example above I am using resp_name, which is in the data.  Even if I try to use resp_id, which is what shows if I use series.name instead.  Basically, anything I put after dataItem returns as undefined.  Any ideas??

Iliana Dyankova
Telerik team
 answered on 21 Nov 2013
0 answers
147 views
A last minute regression slipped into Kendo UI Mobile Q3 2013 - the ModalView always has 100% width and height.

In order to fix it, use the attached stylesheets or download the latest internal build that will be available later today.
Kendo UI
Top achievements
Rank 1
 asked on 21 Nov 2013
4 answers
535 views
I've got a column chart with a single series.  I am trying to add an average line to it.  So, let's say the column chart has 5 data points [10, 20, 30, 20, 30] and shows 5 columns on the chart.  The average is 22.  Do I really need to have the average data be [22, 22, 22, 22, 22], which will put a circle for each data point on the line?  Ideally, I'd like a single horizontal line across the chart without any data points showing up (while still having the data points on the columns show up so I can do hover).  Hmmm, it would be nice to still have the hoverable capability on the average line so the user can see the exact value.
What are my options here?
Thanks,
--Ed
Chuen
Top achievements
Rank 1
 answered on 21 Nov 2013
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?