Telerik Forums
Kendo UI for jQuery Forum
1 answer
316 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
228 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
207 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
967 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
89 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
124 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
321 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
169 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
594 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
2 answers
218 views
Hi, 
Using the Kendo grid in Single Page Application using MVVM.
The filtering is only at client side, so when the user filters once on a column (say it has only one row) and then next reloads new data to the grid -the filter persists on the grid. It should ideally clear the filter off and reload fresh data without filters.
How is that possible (how to enforce it since it is not happening as expected)
Madzie
Top achievements
Rank 1
 answered on 20 Nov 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?