Telerik Forums
Kendo UI for jQuery Forum
2 answers
284 views
i want to bind list of values to kendoCombobox from dataBase through webservices.here is the code
  

<select id = "CbxArea" style="width:200px">
</select>

$(document).ready(function () 
$("#CbxArea").kendoComboBox();       
var cmbArea = $("#CbxArea");        
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "FlashReportWebService.asmx/GetAreaNames",
dataType: "json",
success: function (data) {
for (i = 0; i < data.d.length; i++) {
cmbArea.append($("<option></option>").val(data.d[i].AreaName).html(data.d[i].AreaName));
}
}
});


list of values are coming successfully, but the problem is only 1st value is showing in combobox,remaining values are not displaying(i have 16 values in list)
if i write $("#CbxArea"); instead of $("#CbxArea").kendoComboBox(); total 16 values are displaying in comboBox.is there any problem in kendocombobox for binding values from .asmx page....i must display values in kendoComboBox only...please help..
thanks,
parsanamoni.

shankar parshimoni
Top achievements
Rank 1
 answered on 30 Nov 2012
3 answers
231 views
Hi,

I have read almost all examples of Kendo Grid hierarchy and tried everything but it does not seem to work for me. I am not doing anything extra at all. Please see the demo project here http://www.mediafire.com/?5qjyp40qfef7dkb

I always get 'Uncaught Error: Invalid template:'' error.

You will need Kendo.Mvc.dll file to run this project. You could see the error once you un-comment this line //.ClientDetailTemplateId("employeesTemplate")

Thanks!
Eric
Top achievements
Rank 1
 answered on 29 Nov 2012
1 answer
244 views
Hi there,

Are there currently any plans to introduce a native looking dialog box?

Many thanks
Brandon
Top achievements
Rank 2
 answered on 29 Nov 2012
1 answer
203 views
I've just been recently looking into KendUI as a solution for my company and in tests I have run into a few problems and have not found anything useful in your documentation.

The questions:

Can you create a model outside of the view model and reference it from the view model? 
In other frameworks such as KnockoutJS you can create your view model and models independently of each other. I don't believe I saw a way to do this in your documentation

How do you set the option a select defaults to?
I noticed that there is an option in the drop down list widget for and option named "optionLabel" that creates a default option in your drop down list. I tried using what I assumed was your method of specifying it in the MVVM framework using "data-option-label" but that only added an option to the select list and didn't display it by default. Does this have to be done using the value binding in order to work correctly?

How do you specify calculated fields in select boxes?
I saw in your documentation that you used 
<div data-bind="text: person.lowerCaseName"></div>
to call a function that returns a lowercase string but if I do that on a select I just get the string representation of the function I declared. If I added parenthesis to the end then the correct value was displayed in the select box but that broke the code if I used an optionLabel, which leads into my next question.

How do you use calculated values in situations where you also use the "optionLabel?"
I tried using both on a select but exceptions were thrown because it was trying to find the calculation function on the option label which is only a string object.
Lynn
Top achievements
Rank 1
 answered on 29 Nov 2012
1 answer
112 views
Hi, 
I wish to know how i can combine kendoui mobile version with ember js, this is pretty straight forward with kendoui web, where you can wrap up the widget in views using didinsert method. but kendoui mobile requires an instantiation of app and has its own architecture different from kendoui web. how then do i go about using emberjs to power the application flow while only using kendoui mobile for views rendering
Alexander Valchev
Telerik team
 answered on 29 Nov 2012
1 answer
150 views
I have a grid bound to an XML data source.  Some elements in the XML may be missing; in this case, the value of the corresponding field should be null.  This is working fine when I use a string or number-type editor, but when using a DropDownList, if the element is missing from the XML, the grid cell remains blank after I select a value from the list.  You can see this in this fiddle (try selecting a value in the bottom right cell).
Petur Subev
Telerik team
 answered on 29 Nov 2012
18 answers
1.4K+ views
Hi,

I downloaded the new release today (upgrade from beta 2)...a new bug appears to have been introduced.

I've created a modal Window and one of the controls in that window happens to be a DropDownList.  When I click to open the list, the Popup displays behind the window (see attached screen shot).  This occurs in all major browsers (ie/ff/chrome/safari)

After a bit of inspecting, it looks like the z-index of the Popup (from the DropDownList) is less than the z-index of the Window, this explains it's positioning.  I can see that the popup code tries to set it's index to be greater than any of it's parents in the DOM, but since the modal Window is not one of the direct parents of the Popup, then it doesn't work.

I've tried explicitly setting the z-index but that appears to get overridden by internal code in the Popup.

Any ideas/suggestions/fixes would be greatly appreciated.

John
Elena
Top achievements
Rank 1
 answered on 29 Nov 2012
4 answers
263 views
Hello!

I have been trying to deal with some SEO/link issues for my client and I wanted to see how hard it would be to implement the new html5 pushState/replaceState and the popstate event stuff with kendo.  It's not going well though -- I'm able to change the address bar, but the back button is giving me grief.

I thought it would be good to check out what the kendo.history code does, so I downloaded the source but could not find the history code.  

So, my questions are -- 1. where is the code for kendo.history?  2. Will you be supporting the new html5 pushState/replaceState and the popstate event stuff with kendo?

Thanks!
scott
Top achievements
Rank 1
 answered on 29 Nov 2012
2 answers
338 views
I am trying to disable the contents of a TabStrip when it is loading. I am using kendo.ui.progress() to do so, but it covers the whole page, not just the content of the tab.

Here is a jsFiddle showing what I am doing.

What am I doing wrong?

Thanks.
Jeff Cuscutis
Top achievements
Rank 1
 answered on 29 Nov 2012
1 answer
361 views
Hi,

Is there a way to data bind selected value to model. I have try to use this, data, and self but it does not work. What does work is creating a nested object and binding it to a user selection.

Below is what I am trying to do but it does not work:
<div id="data-view" data-bind="source: this" data-template="data-view-template">
</div>
<script type="text/html" id="data-view-template">
    <div>
        <input id="search" data-role="autocomplete" data-bind="source: ds, value: this" data-text-field="Name" />
        <div data-bind="text: Value"></div>
    </div>
</script>
$(function () {
    var values = [{ Name: "Foo + Bar", Value: 1 }, { Name: "Foo - Bar", Value: 2 }, { Name: "Foo * Bar", Value: 3 }];
    var model = kendo.observable({
        Name: "???",
        Value: "???",
        ds:  values
    });
    kendo.bind($("#data-view"), model);
});
Below is what I can do but feels funny:
<script type="text/html" id="data-view-template">
    <div>
        <input id="search" data-role="autocomplete" data-bind="source: ds, value: Person" data-text-field="Name" />
        <div data-bind="text: Person.Value"></div>
    </div>
</script>
var model = kendo.observable({
    Person: {
        Name: "???",
        Value: "???",
    },
    ds:  values
});
Thanks,
Max
Alexander Valchev
Telerik team
 answered on 29 Nov 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
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
Licensing
PivotGridV2
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?