Telerik Forums
Kendo UI for jQuery Forum
0 answers
109 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
594 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
198 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
948 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
605 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
355 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
347 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
0 answers
116 views
Does anyone suggest how can I get the value what has been grouped?
In group.png the user save the group of order then how can I get the value that user grouped the order
the 2nd is group1.png how can I get the value when user save the group order-customer?
does anyone suggest or help me how to deal with that problem

Here's other link of image
group
group1

Chretien Kevin
Top achievements
Rank 1
 asked on 10 Sep 2012
8 answers
315 views
I am trying to loads multiple window on runtime based on my xml configure.Xml contains like window name,height,width,url
using "for" loop to creating window 
But i am not able to load the multiple window on Runtime
Please advice me ,how to proceed futher.

Code Sample
        for (var i = 0, sl = jsonDoc.widget.length; i < sl; i++)
          {
             var panelname;
             panelname = "#panel" + i;
             $(panelname).kendoWindow(
             {
                draggable: true,
                name: jsonDoc.widget[i].name,
                title: jsonDoc.widget[i].title,
                height: jsonDoc.widget[i].height,
                width: jsonDoc.widget[i].width,
                resizable: true,
                actions: ["Minimize", "Maximize", "Refresh", "Close"],
                content: {
                    url: jsonDoc.widget[i].url
                }
              });
            }


 

 

 

 

 

 

Prakash
Top achievements
Rank 1
 answered on 10 Sep 2012
3 answers
283 views
Hi,

This is a strange problem. I have a grid with dates from ASP.NET MVC. In the grid the dates are look OK.
I'm using "hu-HU" globalization.
When I update, or create a row, the sended date is this format: Wed Aug 1 17:32:58 UTC+0200 2012
This looks like in httpencoding in GET: projects%5B0%5D.start=Wed+Aug+01+2012+00%3A00%3A00+GMT%2B0200+(K%C3%B6z%C3%A9p-eur%C3%B3pai+ny%C3%A1ri+id%C5%91) 
And here it is my MVC controller action:
public JsonResult CreateProject(IEnumerable<ProjectViewModel> projects){...}

When I check projects I see that date's parsed failed so I see my Datetimes in my incoming object: {0001.01.01. 0:00:00}

Please advice, what should I do for good date communication protocol?

Thank you very much!
Sig
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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?