Telerik Forums
Kendo UI for jQuery Forum
5 answers
371 views

I try using KendoWindow in the Kendo Mobile app but whenever the window close, it also close the current view and go back to the main index view. It did the same for locally defined view by using data-role="view" in a div of the index.html or external view having <div data-role="view" as the beginning of the page.

 Please help.

 Thanks

Edwin

Alexander Valchev
Telerik team
 answered on 18 Jun 2012
1 answer
138 views
Will we need to buy a license for KendoUI Mobile?  It does not look like it is free on Telerik's site.
Clemri
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
135 views
Hi,
i want to retrieve data from the database and to show it in the kendo ui app.Can anyone please show some steps with an example to satisfy this objective.

One more thing which has been killing me since the day i started playing around Kendo UI is,"if i develop an app in kendo UI in my local system which will be a html page and then how can i run it in an android  mobile device without using phone gap.

Thanks,
swarup
Swarup
Top achievements
Rank 1
 asked on 18 Jun 2012
4 answers
121 views
I have a case where the datasource object is passing a blank $filter param. When using the MVC4 RC Web-api it throws an error because the filter is blank. 

Here is a sample URL the datasource is calling:
http://localhost:3046/api/clients?%24inlinecount=allpages&%24format=json&%24top=50&%24filter=

What appears to be happening is that it only adds the blank filter if I clear out the search criteria  (right now I just have this bound to a combo box). So when I type in something to the combo, it makes the call to the server, filters correctly. But if I clear that, it will pass a blank filter.

How can I intercept that to make sure it isn't even passing the filter?
Alexander Valchev
Telerik team
 answered on 18 Jun 2012
1 answer
53 views
When we press the enter key without selecting any item from the opened list area of an Autocomplete kendo plug-in, we may get an error 
"Line: 217. Error: Unable to get value of the property 'index': object is null or undefined"
in IE9. This is because the "item" object of the passed-in parameter "e" is null. The following fixed me this issue.

if (e.item == null) return;
                var dataItem = this.dataItem(e.item.index());
I hope that a developer like me, makes use of this.
Georgi Krustev
Telerik team
 answered on 18 Jun 2012
1 answer
63 views
After setting the animation to false, try to expand the panel contains some sub-panels and then collapse it and then expand it again, the sub-panels within this panel will not work properly. 
Kamen Bundev
Telerik team
 answered on 18 Jun 2012
3 answers
177 views
I am trying to get DnD to work from a TreeView to another component.  

How do I get the item from the TreeView on drop?  I have tried e.draggable, but I cannot find the item there.  
     
I have also tried calling $("treeview").data('kendoTreeView").select(), but it only returns the html and not the item.
This method also has the problem where if the item is dragged, but not selected, select returns nothing.

Thanks for the help.

Adam


Alex Gyoshev
Telerik team
 answered on 18 Jun 2012
2 answers
217 views
Hello! I am new kendo ui and i am developing a mobile web application for an institute. At first stage, I want to show all the courses which contains 5 columns(eg name, details...). My question is how can I return these data to data reader and bind to listview?

Thanking you in advance!
Dhananjay
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
332 views
Hi,

I am trying to create a ListView of items. I am trying to make it such that when a user clicks on the "rowdelete" detail button, that particular row gets updated or deleted in the dataSource, and the ListView gets synced to that.

I declare my list view with a template like this:

<ul id="flat-listview" style="font-size: .8em"></ul>
<script type="text/x-kendo-template" id="customListViewTemplate">
${name}: ${qty}<a data-role="detailbutton" data-style="rowdelete" data-click="deleteItem"></a>
</script>

The functions to refresh the ListView and add items to it are as follows:
<script>
function reinitListView() {
$("#flat-listview").kendoMobileListView({ 
dataSource: kendo.data.DataSource.create({data: dataList}), 
template: $("#customListViewTemplate").html(),
});
}

function addToList(item) {
for (var i = 0; i < dataList.length; i++) {

if (dataList[i].name == item) {
dataList[i].qty++;
reinitListView();
return;
}
}
dr = new Object();
dr.name = item;
dr.qty = 1;
dataList.push(dr);
reinitListView();
}
</script>

I tried writing a function called deleteItem (called when the button is clicked), but I don't know how to access the list view row from there. 
Sherry
Top achievements
Rank 1
 asked on 18 Jun 2012
1 answer
133 views
Hello, Its been week and still no luck on dropdown and finally I'm throwing up my towel. I hope you can help me on this.


          
         var lastNameData =[{"lastName":"White","lastNameID":0},{"lastName":"Great","lastNameID":1}];
          
               var lastNameDataSource = new kendo.data.DataSource({
        data: lastNameData,
            schema: {
            model: {
                id: "lastNameID"
            }
        }
    });
             
             
             
          
          
         function lastNameDropDownEditor(container, options) {
                         
                  $('<input data-bind="value:' + options.field + '"/>')
    .appendTo(container)
    .kendoComboBox({
         autoBind: false,
        dataTextField: "lastName",
        dataValueField: "lastName",
        dataSource: lastNameDataSource
    });
                }
          
var blankData;
                $(document).ready(function () {
                    var dataSource = new kendo.data.DataSource({
                         
                                parameterMap: function(options, operation) {
         
        //alert(operation);
                                    if (operation !== "read" && options.models) {
                                        return {models: kendo.stringify(options.models)};
                                    }
                                   
                                    },
                 
                transport: {
                     
         read: {
dataType: "json",
 type: "POST",
data: {"SQLCMD":"SELECT * FROM gridTest","Table":["firstName","nickName","lastName"],"PrimaryKey":"peopleID"}
},
         update: {
            type: "POST"
         },
         destroy: {
             type: "POST"
          },
          create: {
              type: "POST",
               data: {
                req: ["firstName","nickName"]                }
               
               
           }
         },
                
         // determines if changes will be send to the server individually or as batch
         batch: false,
         //...
 
 
                       pageSize: 30,
                       data: blankData,
                       autoSync: true,
                       schema: {
                           model: {
                             id: "peopleID",
                             fields:
                                {"peopleID":{"editable":false,"nullable":true},"firstName":{"type":"string","validation":{"required":true},"nullable":false,"defaultValue":""},"nickName":{"type":"string","validation":{"required":true},"nullable":false,"defaultValue":""},"lastName":"lastName"}                             }
                           ,  parse: function (data) {
        // alert(data);
            return data;
        }
                       }
                    });
 
                    $("#grid").kendoGrid({
                        dataSource: dataSource,
                        pageable: true,
                        height: 340,
                        toolbar: ["create"],
                        columns:
                            [{"field":"firstName","title":"First name"},{"field":"nickName","title":"Nick Name"},{"field":"lastName","width":"150px","editor":"lastNameDropDownEditor"},{"command":"destroy","title":" ","width":"110px"}]                            ,
                             
                        editable: true
                    });
                });


Please help! thanks!
Mike
Top achievements
Rank 1
 answered on 17 Jun 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?