Telerik Forums
Kendo UI for jQuery Forum
1 answer
1.2K+ views
I can see these 2 from the number format doc.  I would like to know what the others are or are these universal and not unique to Kendo UI

en-US
de-DE

Thanks,
Alexander Valchev
Telerik team
 answered on 04 Jan 2013
1 answer
126 views
I was recently reviewing the Chart/API/Methods demo. Here is my understanding of the approach used in the demo:
  1. Thanks to event bubbling, the change event for the "configuration" div fires when any of the chart configuration settings change.
  2. The change event handler calls the refresh function, which scans all the current settings in the configuration div and refreshes the chart.
Is my understanding correct? If so, I was wondering if there are any alternative approaches for widget configuration that utilize Kendo MVVM. In other words, while I understand that HTML elements can be bound to each other using a ViewModel and the Kendo MVVM framework, I'm curious if a Javascript object property, such as a chart series type, can be bound to an HTML element, such as a radio button, in a similar manner.

A related question:
My ultimate goal is to create an app in which the user can configure a chart to his/her liking and then save that configuration to his/her ASP.NET profile. Does anyone know of any documentation or tutorials that explain how to save, say, a Kendo Stockchart configuration to a persistent data store?
Alexander Valchev
Telerik team
 answered on 04 Jan 2013
1 answer
178 views
Hi,

basically I have a combo box with about 100 entries in it upon which the dropdown is not visible when you click on it, this happens in all browsers.

I have tracked the issue down to the "top" css property on the div with the class "k-animation-container" (the div which ends up containing the dropdown list). It seems that when I click on my comboBox the top property gets set to -10000px.

here is my code for creating the comboBox : 

$(document).ready(function () {
 
           // Create Data Source
           var individualDataSource = new kendo.data.DataSource({
               transport: {
                   read: {
                       url: "/Individual/JsonDataList/",
                       dataType: "json"
                   }
               },
               serverFiltering: true,
               schema: {
                   model: {
                       fields: {
                           Id: { type: "number" },
                           Display: { type: "string" }
                       }
                   }
               }
           });
 
           // Create Combo Box
           $('#Combo').kendoComboBox({ filter: "contains",
               suggest: true,
               placeholder: "Select Individual",
               dataTextField: "Display",
               dataValueField: "Id",
               dataSource: individualDataSource
           });
 
       });
And my page layout is this : 

<html>
<head>   
         <link id="favicon" rel="shortcut icon" href="http://localhost:52617/Content/favicon.ico"  />
    <link href="http://localhost:52617/Content/style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="http://localhost:52617/Content/print.css" rel="stylesheet" type="text/css" media="print" />
    <link href="http://localhost:52617/Content/redmond/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
    <link href="http://localhost:52617/Content/kendo.common.min.css" rel="stylesheet" type="text/css"/>
    <link href="http://localhost:52617/Content/kendo.default.min.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="http://localhost:52617/Scripts/CombinedScripts.aspx"></script>
    <script type="text/javascript" src="http://localhost:52617/Scripts/kendo.web.min.js"></script>
    <script type="text/javascript" src="http://localhost:52617/Scripts/kendo.aspnetmvc.min.js"></script>
  
</head>
<body>
        <div id="pageheader">
            <a href="http://localhost:52617/" title="My Page">
        </div>
<div id="menucontainer">        
   <div id="MenuItems">
       <ul class="menu">
           <li>Main Menu</li>
           <li><a href="http://localhost:52617/account/logon">Log On</a></li>
       </ul>
   </div>
</div>
<div id="main">
    <h2>Test</h2>
    <div id="comboDiv">
        <input id="Combo"/>
    </div
 </div>  
</body>
</html>

I am using Kendo UI v2012.3.1114 (JQuery is included in my combinedScripts.aspx)

I have also included a screenshot of the dropdown in action.

Any help with this would be much appreciated. 

A

 

 
Andrew
Top achievements
Rank 1
 answered on 04 Jan 2013
3 answers
180 views
The DatePicker popup doesn't work if the jQuery Globalize library was included before the Kendo UI lib in the page:

http://jsfiddle.net/XBSjf/1/

(the datepicker popup is shown, but the input field/mvvm model isn't updated with the selected date). Workaround: include jQuery Globalize after Kendo UI lib.
Iliana Dyankova
Telerik team
 answered on 04 Jan 2013
2 answers
401 views
For the following code :

<div class="QTFFDetail">
    @(Html.Kendo().Grid(Model.Case.Investigators)
        .Name("Dashboard")
        .Columns(columns =>
        {
   columns.Template(@<text></text>).ClientTemplate("<div>Investigator : #=FirstName# #=LastName# (#=Pernr#) <a href='\\#' style='float:right;' class='openFeedbackForm'>+ Create Feedback Form</a></div>");
   })
        .ClientDetailTemplateId("feedbackFormTemplate")
        .DataSource(dataSource => dataSource
            .Ajax()
            .Model(model => model.Id(p => p.Pernr))
            .Read(read => read.Action("GetAllInvestigatorsForCase", "CaseSummary"))
        )
    )
</div>

<script id="feedbackFormTemplate" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<Intranet.Data.Review.Info.FeedbackFormInfo>()
        .Name("FeedbackForm_#=Pernr#") 
        .Columns(columns =>
        {
            columns.Template(@<text></text>).HeaderTemplate("<div>#=SubmissionDateString# </div>");
        })
                .ClientDetailTemplateId("reasonTemplate")
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .Read(read => read.Action("GetByInvestigator", "FeedbackForm", new { pernr = "#=Pernr#" }))
                )
                .ToClientTemplate()
            )
</script>


... the columns.Template in the feedbackFormTemplate producs a javascript error (JavaScript runtime error: 'SubmissionDateString' is undefined) when I try to expand the row (SubmissionDateString is a property of Intranet.Data.Review.Info.FeedbackFormInfo).
I have seen a ton of nested grid examples, but none that show you how to customize a column in the child grid.

Please advise, thanks!
Jeffrey
Top achievements
Rank 1
 answered on 04 Jan 2013
9 answers
236 views
I have 2 line charts and one bar chart on the same page. I have buttons underneath each chart that will re-initialize the chart with new data. Everything works but when I press the buttons under each line chart, both charts render again. I only change the data of one of them and recreate it, but the other chart does it's loading animation again, even though nothing has changed in it.

Here is some pseudo code that I'm using to re-init the chart:

$('#graph1').empty();
createGraph('graph1', fullYear, -77);

The createGraph function does some work to create a settings object and then calls $el.kendoChart(settings);
Hristo Germanov
Telerik team
 answered on 04 Jan 2013
2 answers
435 views
I'd like to pass multiple parameters to the seriesClick event handler, but unsure how to handle the default parameters
The following works
...
seriesClick: onSeriesClick
function onSeriesClick(e) {
    var currentDate = new Date(2012, 0, 1);
    currentDate.setMonth(currentDate.getMonth() + e.category - 1);
however, when I need to pass in the additional parameter fails as it doesn't recognize e
 ...
seriesClick: onSeriesClick(e, contentItem),
function onSeriesClick(e, contentItem) {
    var currentDate = new Date(2012, 0, 1);
    currentDate.setMonth(currentDate.getMonth() + e.category - 1);
Steve
Top achievements
Rank 1
 answered on 03 Jan 2013
1 answer
122 views
I have KendoMobileListView. In the template I also have a check-box. when user click on an item of the list there is a click event being fired. I would like to ignore the click event when user select/unselect the check-box.

please help

Hagai
Alexander Valchev
Telerik team
 answered on 03 Jan 2013
2 answers
265 views
I'm just getting around to trying out Kendo UI Web for the first time, and I've run into an error that I didn't expect, and can't see why it's coming up...  I created a Kendo UI/MVC 4 project, added a couple Views to the Home controller and on the List View I added a Kendo Grid.  When I run the page I get this error in the debugger:

Microsoft JScript runtime error: '$document' is undefined

What?  Crazy, right?  I have jquery.min.js correctly referenced in my _Layout.cshtml file, and confirmed it's loaded when the site runs.  So where is this error coming from and how do I fix it?  I am binding the grid to my model, which is an IEnumerable, and if I bind it to a table in the SAME VIEW, it works beautifully.  So the data is good.

Here's the code I'm using in the View:
<div id="container">
    <div id="grid"></div>
    <script>
        $document.ready(function() {
            $("#grid").kendoGrid({
                id: "gridList",
                dataSource: model,
                schema: {
                    model: {
                        fields: {
                            IncidentType: { type: "string" },
                            Location: { type: "string" },
                            WatchDateTime: { type: "date" },
                            PostDateTime: { type: "date" }                           
                        }
                    },
                    pageSize: 10
                },
                height: 600,
                scrollable: true,
                sortable: true,
                pageable: { input: true, numeric: false },
                columns: [
                    {
                        field: "IncidentType",
                        title: "Incident Type",
                        width: 300
                    },
                    {
                        field: "Location",
                        title: "Location",
                        width: 100
                    },
                    {
                        field: "WatchDateTime",
                        title: "Incident Date",
                        width: 100
                    },
                    {
                        field: "PostDateTime",
                        title: "Post Date",
                        width: 100
                    }
                ]
            });
        });
    </script>
</div>
Any ideas?  I'd love to get started using Kendo, if I can get past this initial issue...

Thanks!
Software
Top achievements
Rank 1
 answered on 03 Jan 2013
1 answer
307 views
Hello,

I'm new to the Kendo UI stuff, so please forgive me if this is an easy one; 


I want to load the partial view inside the Kendo window, how i can do that? I tried as shown in below but it is showing the blank window. could any one please help me.

@(Html.Kendo().Window()
    .Name("windowEditPopup")
    .Title("Edit pricing")
    .Content(@<text>
        <div>
            @{
                Html.RenderPartial("EditPricingControl", Model);
            }
        </div>
        </text>)
                     .Draggable()
                     .Animation(true)
                     .Resizable()
                     .Modal(true)
                     .Width(800)
                     .Height(450)
                 )
Regards,
Ravi.
AWL
Top achievements
Rank 1
 answered on 03 Jan 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
Application
Map
Drag and Drop
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
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
AIPrompt
TimePicker
AICodingAssistant
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?