Telerik Forums
Kendo UI for jQuery Forum
3 answers
518 views
Ive just started using Kendo UI for the first time and I cant get the dropdown to show for a combobox.  Heres the code in the view

<li>
               @Html.LabelFor(m => m.UserRole)
               @Html.Kendo().ComboBoxFor(m => m.UserRole).BindTo(Model.UserRoles).AutoBind(true).SelectedIndex(0).Suggest(true)
           </li>

In debug ive checked the contents of Model.UserRoles  and there are currently 3 items.  But when the page displays, I see a normal text box, not a dropdown.  I have the required .js files and .css files loaded, so what am I doing wrong ?
mww
Top achievements
Rank 1
 answered on 11 Jan 2013
1 answer
367 views
I have a custom editor for looking up objects.  Instead of a dropdown, I show a search icon that opens a modal window.  The user then searches for a record in that modal window and clicks a row.  My modal lookup window then closes, and I am now in a javascript function in my custom editor with the selected object from the modal lookup window.

But now, how do I get the selected row from the grid and update the new values into it?  For example, the user picked an object, but now I need to set the Id (hidden) and Name (visible) into the grid.
Alexander Valchev
Telerik team
 answered on 11 Jan 2013
6 answers
702 views
Every 30 seconds the app fetches freshened data (same schema model) from the server. Existing rows in the grid that have become "stale" are updated using dataItem.set( fieldname, value).  Existing rows that no longer exist on the server are deleted with grid.removeItem(row).   But addRow() puts the grid into (visual) edit mode.   Is there a way to insert a fully populated row (as distinct from a blank row) into the grid without rebinding the grid to the freshened dataset by way of dataSource.data( newFreshData)  which disrupts the UI state of collapsed/expanded groups?

Dimo
Telerik team
 answered on 11 Jan 2013
1 answer
800 views
I am struggling a bit with this. I need to be able to set the Default values dynamically based on previously entered values. Currently I am storing the values in Session variables and pulling them with a regular jsonget. My problem is that I can't get the foreignkey dropdownlists to actually set the values, it sets them visually but when I try to update the popup. Note that I use the MVC extension.

Obviously if there are better way to handle dynamic default values I'd be happy to know.

I tried setting this value manually to a specific value also but it gave the same results. I have AutoBind false btw.

This is how I do it now (on the Edit event).

   if (insertMode == true) {
            $.getJSON('/TargetValue/GetDefaultValues', function (data) {
                var kfval = data.kf;
                $("#KeyFigureId").data("kendoDropDownList").value(kfval); <-- The value is set visually but the value registers as 0 when rying to post the save.

            });
            
        }
Alexander Valchev
Telerik team
 answered on 11 Jan 2013
4 answers
229 views
My understanding is that once a page is rendered in Kendo Mobile, it actually never get destroyed or removed from memory.  This has some impacts on our java script coding that has unintended consequences.

Does Kendo Mobile have a page caching attribute like jQuery Mobile attribute data-dom-cache="true" to clear out cache for individula pages?
Petyo
Telerik team
 answered on 11 Jan 2013
2 answers
80 views
Hi,

I've the following footer declared in my index.html page:
<div id="footer" data-role="footer">
      <div data-role="tabstrip">
           <a href="#tabstrip-home" data-icon="home">Posts</a>
           <a href="Test.html" data-icon="action">Activities</a>
      </div>
<ul id="log">
                 
</ul>
</div>
When I stay on index.html there's no problem to change the content of ul#log, but when I'm on the Test.html page (my 2nd tab), when I try to add something with jquery by doing this:
$('#log').prepend('blablabla');
If I read the content of ul#log with jquery, I can see the new 'blablabla' text, but on the screen it's not displayed!?

Can anyone explain me why?

Thanks,
Bastien
Petyo
Telerik team
 answered on 11 Jan 2013
2 answers
157 views
Hi , is there a possibility for a pie chart to avoid showing on the chart data that have very low value numbers?
 if for a example you want to design a pie chart with a array of 150 items and display the percentage of them in the pie chart;
 if some items have the value lets say 0.01% you don't want to show them on the chart .
Because the slice will be neglictable and also will be too much information around the pie chart that would make it difficult to read.
So the question deep down is if you can set a minimum and a maximum range of values for the pie chart and fetch display data only that belong to that range.
Kyriakos
Top achievements
Rank 1
 answered on 11 Jan 2013
1 answer
116 views
<ul id="panelbar">
    <li class="k-state-active">
        Vendors
        <ul>
                <li class="k-state-selected" ><span onclick="SetVendorID(1)">Vendor 1</span></li>
                <li><span onclick="SetVendorID(1)">Vendor 2</span></li>
       </ul>     
    </li>
</ul>

This selects the first item in the list but only highlights the text not the background of the item like it does when you click on it.

When you click on Vendor 2, Vendor 1 does not deselect the text, it stays white when it should be deselected (black).

Why doesn't this work?
Dimo
Telerik team
 answered on 11 Jan 2013
1 answer
1.8K+ views
Hello, 

I have a template defined as:
<script id="roiTemplate" type="text/x-kendo-template">
        <div id="roi" class="span2 offset1 kpi">
            <p>#=title#</p>
            <input type="text" data-width="100" value="#=value#" class="dial" data-readOnly="true"/>
        </div>
</script>

And here I'm invoking the template and providing it data:
var getTemplate = kendo.template($('#roi').html());
var data = { value : "50", title: "ROI"};
$('#campaign-metrics').append(getTemplate(data));

When I load this page, I get the error "Uncaught TypeError: Cannot call method 'replace' of undefined" kendo.all.js at line 252." What am I doing wrong?

Atanas Korchev
Telerik team
 answered on 11 Jan 2013
4 answers
244 views
go to menus and change the theme to bootstrap. start hovering over the menu items that have dropdowns and the title is whited out. So far i have noticed it on multiple browsers.
Alexander Valchev
Telerik team
 answered on 11 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?