Telerik Forums
Kendo UI for jQuery Forum
2 answers
489 views
Hi,

I am trying to bind a model to a higherlevel element and then later bind another model to something nested deeper in the dom.

When I do this, i get the following stack trace:
  1. Uncaught TypeError: Cannot read property 'parent' of undefined kendo.all.js:8419
    1. binders.source.Binder.extend.renderkendo.all.js:8419
    2. binders.source.Binder.extend.refreshkendo.all.js:8332
    3. Class.extend.bindkendo.all.js:8158
    4. Class.extend.applyBindingkendo.all.js:8954
    5. Class.extend.bindkendo.all.js:8930
    6. window.CubeBrowserModelBinder.CubeBrowserModelBinder.bindcubebrowser.model.binder.js:15
    7. CubeBrowserModelBindercubebrowser.model.binder.js:7
    8. (anonymous function)59:478
    9. jQuery.Callbacks.firejquery-1.8.3.js:974
    10. jQuery.Callbacks.self.fireWithjquery-1.8.3.js:1084
    11. jQuery.extend.readyjquery-1.8.3.js:406
    12. DOMContentLoaded

Which looks to be caused by my 2nd view using data-bind to source and then  a template

I have tried to replicate it here: http://jsbin.com/iyayuk/7/edit and that gives me a different error but i believe it is close to the same problem.
  1. Uncaught TypeError: Cannot call method 'replace' of undefined kendo.all.min.js:9
    1. Template.compilekendo.all.min.js:9
    2. p.isFunction.fjquery-1.8.2.min.js:2
    3. parseOptionskendo.all.min.js:9
    4. (anonymous function)edit:21
    5. f

I noticed this one: http://www.kendoui.com/forums/framework/mvvm/nested-views-bindings.aspx but i dont think i can see a way to get a jquery selector to correctly exclude the deeper elements.

But beyond that I would not expect the code to throw an error.

Appreciate your help on this

Thanks

James.


James
Top achievements
Rank 1
 answered on 01 Mar 2013
4 answers
182 views
Sorry if this is not the right spot...but I couldn't find anywhere else to report that it appears that the documentation portion of the site is down.  The page just hangs and never gets there...all other areas (except for the demo page portions that have documentation inlined, which also appear to be down) of the site seem to be working just fine.
Alexander Valchev
Telerik team
 answered on 01 Mar 2013
6 answers
239 views
i tried the example with the integration with knockout.js
and i noticed that you are using version 1.2.1 of knockout.
i changed the version of knockout with the latest 2.1.0(only switch the reference to 2.1.0 instead of 1.2.1)  and the result was that the ui did not apply the kendo theme.
Is kendo depending on version 1.2.1 of knockout or what should be the problem?

Regards,
Daniel
Daniel
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
112 views
I'm really happy with the implementation direction you guys went with for the MultiSelect.

There is, however, one issue I noticed in the BETA download...   when constructing the float wrapper div, the BETA download uses the class floatWrap instead of k-floatwrap

This occurs in both the kendo.all.min.js and the kendo.multiselect.min.js
Georgi Krustev
Telerik team
 answered on 01 Mar 2013
1 answer
198 views
Hello,

I have the following challenge:
I'm using the ListView in an ASP.NET MVC application, where the Kendo UI ListView sits in a Partial View. The items in the list view shall be created using another Partial View (so their content may be different item by item). I've tried to hook up some jQuery code, which alter the elements by using AJAX calls, but it seems that my code runs before the ListView gets rendered. The Action URL is stored in a data attribute of the generated 'div' sections.
Here is the .cshtml code for the partial view:

@model TheModel
@*@{ Layout = null; }*@
<link href="@Url.Content("~/Content/listviewitem.css")" rel="stylesheet" type="text/css" />
<script type="text/x-kendo-tmpl" id="template">
    <div class="itemclass" data-actionurl="${ActionUrl}" />
</script>
<div>
    @(Html.Kendo().ListView<TheDetailModel>()
        .Name("ListView")
        .TagName("div")
        .ClientTemplateId("template")
        .Pageable()
        .DataSource(p_DataSource => p_DataSource
            .Read(p_Read => p_Read.Action("TheDetailModel_Read", "TheModel")
            .Data("additionalData")))
        )
</div>
<script type="text/javascript">
    function additionalData() {
        return { p_TheDetailModelId: "@Model.Id" };
    }
    jQuery(function () {
        jQuery('.itemclass').each(
            function (index, element) {
                var actionUrl = jQuery(element).attr('data-actionurl');
                jQuery.ajax({
                    url: actionUrl,
                    success: function (result) {
                        jQuery(element).html(result);
                    }
                });
            }
        )
    });
</script>

Has anybody an idea how to make this work as expected?
Daniel
Telerik team
 answered on 01 Mar 2013
3 answers
131 views
I have watched my users use the DateTime Picker and have noticed that they are slightly confused by its default UI behavior. I'd like to make a case for a small tweak, for better intuitiveness.

Recommendation:   the selected date should be forgotten, not remembered, when the user clicks on the header and chooses a different month from the list of months.

We are using the DateTime Picker to pick a day, which triggers some other action. Nothing special.  The day cell style shows that is has been chosen. However, when the user clicks on the header and chooses a different month, any previously chosen day number is remembered. If the previous selection was May 3rd, when the user changes to December, the 3rd will be selected. The cell style shows it. This pre-selection causes users to pause every time. They wait for the desired selected-date behavior to occur because they see the visible sign that a selection has occurred. Then they realize it is a default and click on a date.

Not a big problem, just a small hitch in the step. 

Thanks




Georgi Krustev
Telerik team
 answered on 01 Mar 2013
1 answer
252 views
Hi,
I am creating a customized kendo alert box in which i am adding DOM elements dynamically.The response of the kendo button click which is created dynamically is not up to the mark in safari and chrome browser of iPhone device. In android browser the button click event is not working.
PFA the file.
Alexander Valchev
Telerik team
 answered on 01 Mar 2013
2 answers
405 views
I have a hierarchical grid but i first have to save the parent before adding child records. But you can open the child view even if the parent isn't saved yet. Does anyone has a solution? Catch an onrowleft event or something?

Thanx
Vladimir Iliev
Telerik team
 answered on 01 Mar 2013
4 answers
264 views
Hello everyone, I would like to override the close() function of a modalView. What I need is to do something first before it closes.

Here is what I am trying to do:

var modalView = $("#modalview-menu").data("kendoMobileModalView");    
modalView.close = function () {
  // do something...
  ...
  // then close it.
}

Thanks!
Anton
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
719 views
I've got a kendo grid where I need to fire a function AFTER the destroy command is completed for row. I know that the 'remove' event on the grid fires before it happens, is there any way to capture the event after completion?

Thanks
Vladimir Iliev
Telerik team
 answered on 01 Mar 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
Dialog
Chat
DateRangePicker
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
TimePicker
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
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?