Telerik Forums
Kendo UI for jQuery Forum
1 answer
127 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
162 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
123 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
419 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
173 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
90 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
554 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
159 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
908 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
2 answers
562 views
Hi,

Based on your beta demo here: http://demos.kendoui.com/beta/web/treeview/odata-binding.html 

I have put together the following:

var Folders = new kendo.data.HierarchicalDataSource({
        transport: {
            read: {
                url: function(opt) {
                    if(opt.UID == undefined) opt.UID = 0;
                    return kendo.format("/api/GetFolders/{0}",opt.UID)
                    },
                type: "GET",
                dataType: "json"
            }
        },
        schema: {
            model: {
                hasChildren: function() {
                    return true;
                },
                id: "UID",
                children: Folders
            }
        }
    });


    $("#testTree").kendoTreeView({
        dataSource: Folders,
        dataTextField: ["Title"]
    });

As you can see I am using a fairly ugly hack for the initial UID setting. But it works with my data.

Since there is no documentation yet (that I can see) can you advise if there is a better way of doing this? In particular I'd like to have more than one TreeView on screen (sharing a single data source if possible) and be able to specify at runtime where each TreeView should 'start'.

Thank,

Mark.
foo
Top achievements
Rank 1
 answered on 10 Sep 2012
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
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
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
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?