Telerik Forums
Kendo UI for jQuery Forum
10 answers
659 views
kendo.bind() binds the element and all child elements to the viewModel by calling bindElement.
bindElement calls first unbindElement so that works fine if you call kendo.bind() multiple times, e.g. when you want to bind another model to your markup.
But bindElement also creates widgets if an element has a data-role attribute.
unbindElement on the otherhand does not destroy the element. So bindElement will again create the widget when you call kendo.bind() a second time. Should there not be a check if the widget is already created?

So
1) In the bindElement (or somewhere deeper) should bet checked if the widget is already created and if so do not create again
2) Add a parameter to kendo.unbind() to optionally destroy the widgets.
        a) This would be a perfect oppertunity to destroy dom elements like the popup of a dropdownlist ( see http://www.kendoui.com/forums/ui/dropdownlist/how-to-clean-up-dropdownlist-lists.aspx#1991068)
        b) By making it optional you have the oppertinity to keep all your widgets and just only bind a new (view)model to your markup.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
4 answers
135 views
When you want to click on the scrollbar to scroll, the popup is closed.
You can reproduce it in your own demos:
http://demos.kendoui.com/beta/web/dropdownlist/remotedatasource.html

In the current version it is working fine:
http://demos.kendoui.com/web/dropdownlist/remotedatasource.html

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
2 answers
332 views
I have this HTML:
<select data-role="dropdownlist", data-bind="value: xxx", data-text-field="field1", data-value-field="field2", data-source='{"transport":{"read":"my-url"}}' />
Then I bind this template.
But the data-source is not used.

Found an issue in the function kendo.initWidget.
Inside that function there is the code:

if (dataSource) {
     options[
"dataSource"] =
window[dataSource];
}

dataSource does here indeed have the transport object I defined in the attributes. But window[dataSource] is undefined.
Seems to me that this line of code must be:

if (dataSource) {
     options[
"dataSource"] = dataSource;
}

When I change it this way, the dropdownlist works!
So not sure if this is a bug or that I am doing something wrong.

Regards, Jaap
Jaap
Top achievements
Rank 2
 answered on 26 Mar 2012
4 answers
98 views
Hi team,

I attended the webinar yesterday and today I started testing things out.

I followed all the steps and created tabstrip.

With 3 html pages.

Clicking on tabstrips pointing to html page is not working. Link is getting created like account.html/#account.html and it is not working.

R u going to load the demo you shown somewhere so that we can match code and see what we are doing wrong.
Petyo
Telerik team
 answered on 26 Mar 2012
6 answers
1.0K+ views
Hello,
How do I center the draggable to the mouse pointer?
Petyo
Telerik team
 answered on 26 Mar 2012
2 answers
91 views
Hi, 
 I have too much data to display all label (100 Records) so I need to show some label, please tell me how to.

   such as

data [
{
d1 = "00"
value = 90
}, {
...
}, {
dn = "99"
value = 23
}
}

show only dx%5 == 0 or something like this

Thank you, ^ ^
Sorry for my english
Tanawatra
Top achievements
Rank 1
 answered on 26 Mar 2012
1 answer
122 views
Hi,

I used the this article (http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html) to
build my Kendo Mobile Application. 

The Applications is working Ok as a Web Application but the Phonegap version has a problem. It works ok but when I turn the tablet to landscape the application crashes.

Is there any known issue about this ???

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 26 Mar 2012
4 answers
576 views
I have a JSON object that is returned from the WS which will have a sample of below:
 
{
    "MenuID"5,
    "MenuVersion"1,
    "MenuName""Lunch Menu",
    "MenuItems"[
        {
        "Name""TUSCANI MEDITERRANEAN CON POLLO",
        "Description""Pasta",
        "PKID"2,
        "ParentID"1,
        "Ingredients"[
            {
            "PKID"123,
            "IngName""Cheese",
            "Included"true,
            "ExtraPrice"0},
        {
            "PKID"124,
            "IngName""Sausage",
            "Included"false,
            "ExtraPrice"0.99}
        ],
        "ItemPricing"[
            {
            "PKID"456,
            "SizeName""Large",
            "SizePrice"12.99},
           {
            "PKID"678,
            "SizeName""Small",
            "SizePrice"14.99}
        ]}
    ]
}​ 

Are there any examples on how to work with complex objects like these. (Loop through the Menu items in this example and being able to display required info.) . I need to dynamically display the prices or ingredients to the user based on what is selected.  I will be having more than one Menu Item to work with.

Thanks,
Chandu
Andre
Top achievements
Rank 1
 answered on 25 Mar 2012
1 answer
128 views
And disappear from original position?
And then move it inside the target from one spot to another?
Tim
Top achievements
Rank 1
 answered on 25 Mar 2012
0 answers
72 views
http://www.kendoui.com/documentation/framework/draganddrop/overview.aspx

In the above link, the "Drag" and "Drag Axis" examples use a lowercase "kendo" when I think they should be using a capitalized "Kendo".
Tim
Top achievements
Rank 1
 asked on 25 Mar 2012
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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?