Telerik Forums
Kendo UI for jQuery Forum
1 answer
171 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
170 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
390 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
225 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
429 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
117 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
254 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
293 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
8 answers
921 views
I am attempting to hurdle our last issue with moving to Kendo charting.  On most of our charts, we provide a more indepth look at the data when hovering over a bar series item.  Often we will popup a panel with a pie chart breaking down totals, or a grid of the data that makes up the bar item etc.
I can utilize the onserieshover and create the pie chart/grid but can't seem to figure out how to make it appear as though it is a popup/hover item of the parent chart.  
My last attempt (which was a horrible idea, but I figured I'll try it), was to expand the .k-tooltip div to the size I needed, append a div tag, and call .chart on that.  It works... sort of.  It looks like it is drawing the chart, but then disappears.
See fiddle http://jsfiddle.net/giltnerj0/ZPEWN/5/ may hopefully describe what I am trying to do a little better.

If you comment out the 
    $(".k-tooltip").width(300);
    $(".k-tooltip").height(400);
    $(".k-tooltip").append("<br /><div id='childChart'></div>");

and then uncomment the 
<!--<div id="childChart"></div>--> 

It works perfectly, just as a separate chart.
David
Top achievements
Rank 1
 answered on 03 Jan 2013
1 answer
2.5K+ views

Trying to add a % sign to a number in a Kendo NumericTextBox. You suggest escaping the % sign as such:

$("#numeric").kendoNumericTextBox({
    format: "# \%"
});

but when I give it a value of 3, it still gives me 300%!

From your documentation:

"%" - percentage placeholder Multiplies a number by 100 and inserts a localized percentage symbol in the result string. Note: '%' symbol is interpreted as a format specifier in the format string. If you need to prevent this, you will need to precede the '%' symbol with a backslash -'kendo.toString(12, "# \%")' -> 12 % (en-us).

Alexander Valchev
Telerik team
 answered on 03 Jan 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?