Telerik Forums
Kendo UI for jQuery Forum
1 answer
110 views

Hi,

I am using kendo dropdown for updating Status in my database, but when i open my popup page I dont get the default value from the database in my dropdown,

here is the dropdown I am using

 

@(Html.Kendo().DropDownListFor(model => model.Status)

.Name(

 

"Status")

 

.DataTextField("Text")

 

.DataValueField("Value")

 

 

.BindTo(

 

new List<SelectListItem>() {

 

 

 

 

new SelectListItem() {

 

Text =

 

"Active",

 

Value =

 

"true"

 

},

 

 

new SelectListItem() {

 

Text =

 

"InActive",

 

Value =

 

"false"

 

 

 

 

 

 

}

 

}

)

)

 

Georgi Krustev
Telerik team
 answered on 10 Sep 2012
1 answer
142 views
Hi!

I want to display a full list of my grid without any paging.

@(Html.Kendo().Grid(Model)
    .Name("GridField")
    .Columns(columns =>
    {
        columns.Bound(item => item.SalonID);
        columns.Bound(item => item.Avtnr);
        columns.Bound(item => item.SalonName);
        columns.Bound(item => item.Street);
        columns.Bound(item => item.ZipCode);
        columns.Bound(item => item.City);
        columns.Bound(item => item.Telephone);
        columns.Bound(item => item.SalonEmail);
        columns.Bound(item => item.Description);
        columns.Bound(item => item.ContactPerson);
    })
    .ColumnMenu()
    .Groupable()
    .Pageable()
    .Sortable()
    .Resizable(resize => resize.Columns(true))
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
  
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("Read", "Salon"))
        .ServerOperation(false)
    )
    .Events(events => events.Change("grid_selected"))
)
$("#FilterShowAll").click( function()
 {
    var grid = $("#GridField").data('kendoGrid')
    grid.dataSource.filter({});
grid.pagable(false); // Error here...
});
OnaBai
Top achievements
Rank 2
 answered on 10 Sep 2012
1 answer
192 views
Hi! 
I have an issue with nested arrays source binding: view model has an "items" array, each element of contains its own array of elements.
On first load it renders correctly, but if I add an item into internal array of first item, it render this internal item (which is correct) and another copy of first item of root array somewhere in the middle. 
Fiddle: http://jsfiddle.net/G9L5U/11/ 
Click the button to reproduce this error.

Interesting, that version Q1.515 works correct, try it. I would use it, but it doesn't have mobile split view, what I need for my POC.



Alexander Valchev
Telerik team
 answered on 10 Sep 2012
1 answer
147 views
Is there a way to use not like as a filter operator for a Kendo Datasource. Similiar to SQL { WHERE x not like '%y%' }?
Rosen
Telerik team
 answered on 10 Sep 2012
1 answer
450 views
Hi,

How to fire backbutton action with javascript on my own button (ie <a>back</a>).

Thanks,
Martin
Alexander Valchev
Telerik team
 answered on 10 Sep 2012
5 answers
196 views
upgraded to the latest jquery 1.8.1 to fix some IE issues from 1.8 and it appears i can't use selectable anymore.
David
Top achievements
Rank 1
 answered on 10 Sep 2012
0 answers
107 views
Hi there,

I am doing a listview application which gets data from the server and - onclick - displays detail data for the current listview item.
When loading the first page of data from the server (the server id paging) everything works flawlessly. On clicking / touching the item the details page is provided with all the data from the record.
However, after scrolling down and (automatically) loading the 2nd page I am just able to get details data for the items from the 2nd page when clicking / touching them but not from the previous 1st one anymore. The details pages of the first page are simply empty.

Is this happening by design? Or am I doing sth. wrong? And if it's not my fault, will this be addressed in any next release?

regards,
Erik
d2uX
Top achievements
Rank 1
 asked on 10 Sep 2012
4 answers
587 views
Hello,



I use MVVM to bind a ListView to my viewmodel and also the item template uses the MVVM pattern. The ListView dataBound event is binded to a function on my viewmodel.

The problem is that, when my dataBound function is called, the items exists, but are not yet binded to the data.

It appears that the item binding is triggered in the ListView.refresh function by calling the trigger('dataBound') function. There are actually 2 dataBound events, my event and an event of the binding system. And it appears my event is called first.

In my opinion it should be ensured that the binding event is always the first one executing.



I can workaround it by attaching my dataBound event after the binding of the ListView ( with listview.bind('dataBound', function (e) {...}) ), but that is against the MVVM pattern.



Regards, Jaap

Jaap
Top achievements
Rank 2
 answered on 10 Sep 2012
1 answer
192 views
Hello,



See this fiddle: http://jsfiddle.net/JaapM/PtQB7/

The third column has values, so a DropDownList control is generated for it.

When you click in the first column, the editor is show. Then tab to the second column. The editor is displayed also.

Then tab to the third column. The editor (dropdown) is not displayed. It is just a focused cell. When pressing Enter or F2, the dropdown is displayed, but the table cell in the background this has the focus. Also you can navigate away from the cell with the arrow keys, this is not possible in the other columns.



Regards, Jaap
Nikolay Rusev
Telerik team
 answered on 10 Sep 2012
1 answer
938 views
Hi,

I'm using the ListView control to create a Heatmap and it's working perfectly, except I'm trying to limit the height of the control to 250px, but setting "height: 250" doesn't do anything.  I'm not used this control before and I know from using the grid this would work.

Currently I'm loading in about 500 items and it's making the whole page scrollable, but I want to have the control scrollable within it's own div (just like the Grid control).  BTW, I don't want to use paging.

HTML
<div id="heatmapView"></div>

Template
<script id="heatmapitem-template" type="text/x-kendo-tmpl">
    <div class="heatmapitem" style="background-color: rgb(${HeatMapColour})">
        <h3>${Symbol}</h3>
        <div>${kendo.toString(Percent,"p2")}</div>
    </div>
</script>

JQuery
$("#heatmapView").kendoListView({
    dataSource: {
        transport: {
            read: {
                url: ("http://www.getsomedata.com"),
                dataType: "json"
            }
        },
        batch: true
    },
    height: 250,
    template: kendo.template($("#heatmapitem-template").html())
});

Can someone please help?
Nikolay Rusev
Telerik team
 answered on 10 Sep 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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?