Telerik Forums
Kendo UI for jQuery Forum
1 answer
131 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
427 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
180 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
97 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
563 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
168 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
914 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
570 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
1 answer
322 views
Hi,

I have a very simple tree view by using html tags as below:

I try to use jQuery to loop through the data for each level.

When I called the chidlren("li") function, it's supposed to return the nodes in next level.

But it returned null.
 
        // loop the second level
        // second level 2
        $("ul#treeview > li > ul > li").each(function () {

            var parentId = "parentId";
            var parentText = $(this)[0].firstChild.textContent;
            
            // go down to the next level    <-- the method children("li") return null, but it's supposed to return the li element in the next level
            $(this).children("li").each(function () {
                //alert($(this).text());
                var subId = "ChildId";
                var subText = $(this).text();
               // alert(subId + " " + subText);
                
                var subItem = { id: subId, name: subText };
                // add the item into array
                subData.push(subItem);
            });


           // var subItems = subData;
            var item = { id: parentId, name: parentText, items: subData };


            data.push(item);
        });


    <ul id="treeview">
        <li data-expanded="true">
            <span class="k-sprite folder"></span>Active Adapters
                <ul>
                    <li data-expanded="true">
                        <span class="k-sprite folder"></span>Adapter 1
                                <ul>
                                    <li><span class="k-sprite html"></span>
                                        <input type="checkbox" id="1" style="margin-bottom: 5px;" /><a href="#" class="bootstrap-custom-link1">Sub1</a></li>
                                    <li><span class="k-sprite html"></span>
                                        <input type="checkbox" id="2" style="margin-bottom: 5px;" /><a href="#" class="bootstrap-custom-link1">Sub2</a>   </li>
                                </ul>
                    </li>
                    <li data-expanded="true">
                        <span class="k-sprite folder"></span>Adapter 2
                                <ul>
                                    <li><span class="k-sprite html"></span>
                                        <input type="checkbox" id="3" style="margin-bottom: 5px;" />&nbsp;<a href="#" class="bootstrap-custom-link1">Instance 1</a></li>
                                    <li><span class="k-sprite html"></span>
                                        <input type="checkbox" id="4" style="margin-bottom: 5px;" />&nbsp;<a href="#" class="bootstrap-custom-link1">Instance 2</a></li>
                                </ul>
                    </li>
    </ul>
Nohinn
Top achievements
Rank 1
 answered on 10 Sep 2012
1 answer
316 views
validation on dropdownlist not working. I want to show also validation summary on the top of the form. please give me any suggestion. i think the validation summary is not available in kendo ui. i want to show all validation messages on the top of form..
Mk
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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
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
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?