Telerik Forums
Kendo UI for jQuery Forum
4 answers
801 views
How do I align those buttons to the right, which are otherwise defaulted to the left

Vladimir Iliev
Telerik team
 answered on 11 Jan 2013
3 answers
657 views
Hi,

My row is binded to a certain item. I need to give this item as a variable to my custom command. How can I this?

the grid:
<div data-bind="kendoGrid: {
    data: items,
    columns: [
            {width: 90, title: 'Action', command: { text: 'Edit', click: editItem}},
            {field: 'Name',title: 'Name'}]"/>

the script:
editItem = function (item) {
            location.href = 'Item/Edit/' + item.Id;
}
Thus, what I want to do is pass the item (or directly the itemId) to my editItem function. Now item is the created button.
How can I do this?
Rosen
Telerik team
 answered on 11 Jan 2013
1 answer
1.7K+ views
I cant get a dropdown list to work, this is the first time Ive used kendo and as far as im aware Im using it correctly but I cant get the dropdown list to show.  Heres the code

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

Model.UserRoles is populated with 3 items.  Firebug console is showing this error

TypeError: jQuery("#UserRole").kendoDropDownList is not a function


and this is the HTML rendered

<li>
<label for="UserRole">User role</label>
<input id="UserRole" type="text" name="UserRole" data-val-required="The User role field is required." data-val="true">
<script>
jQuery(function(){jQuery("#UserRole").kendoDropDownList({"dataSource":["Agency","Artist","Venue"],"autoBind":true,"index":0});});
</script>
</li>
 can anyone tell me where Im going wrong ?

Iliana Dyankova
Telerik team
 answered on 11 Jan 2013
3 answers
593 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
412 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
751 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
858 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
264 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
118 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
189 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
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
Drag and Drop
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
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?