Telerik Forums
Kendo UI for jQuery Forum
2 answers
171 views
I'm trying to wrap my head around the data binding feature of kendo. I'm building a mobile app.
I use the following code for my databinding

var app = new kendo.mobile.Application(document.body);
    
    var dayViewModel = kendo.observable(
    {
        todayText: "_",
        showNextDay: function () {
            alert("next");
        },
        showPreviousDay: function () {
            alert("previous");
        }
    });


    kendo.bind($("#dayView"), dayViewModel, kendo.mobile.ui);

As soon as kendo.bind is invoked, the Layout is lost. If the view already has a header element specified, this element is shown instead. Why is this happening?

Also, I've tried a bit further, since the reason why I need to invoke kendo.bind manually, is that I want to load data into the viewModel from a ajax response. I've added the following code for the ajax request

$(function () {
        $.get("request_url", function (data) {
            dayViewModel.todayText = data.DayDescription;
            
            kendo.bind(document.body.children, dayViewModel, kendo.mobile.ui);
        });
    });

And it works just is intended, but I'm still not able to use my Layout. Although I've discovered that if I comment out the first call to kendo.bind, the Layout is applied. Although then the header grows to about double height. And I've got no custom styles or similar.
Allan
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
174 views
Hi,

I bumped into a weird problem, that when I use kendoWindow, with the default animation, it sometimes (inconsistent) opens the windows with the following CSS style:
–webkit –transform: scale(0.01)
Which made it very very small (in the size of a few pixels, almost invisible)

The workaround I found for that, is to change the animation from the default, to the following:
animation: { open: { effects: "fadeIn" }, close: { effects: "fadeIn", reverse: true } }

Is anyone familiar with that problem?

Thank you very much..
Kamen Bundev
Telerik team
 answered on 27 Nov 2012
1 answer
59 views
Is Kendo working with MVC4.
Because my application in MVC3 working fine.
but in MVC4 application Grid not working with JSon.
following code :

@Html.Kendo().Grid(Model).Name("qxtgrid"
                ).DataSource(dataSource => dataSource
          .Ajax()
            .Read(read => read.Action("Read", "Grid")

Sagar
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
297 views
Hi all.

I'm new to Kendo (I'm coming from jQuery Mobile) and am struggling to achieve something fairly simple. I have a form with yes/no radio buttons. I want the radios to be styled as a Kendo button group. I tried putting the inputs/labels in LI's with the button group role applied to the UL which kinda worked but I could still see the actual radio buttons in the button group. Is there a way to this in Kendo (very simple in JQM).

Thanks in advance.
Petyo
Telerik team
 answered on 27 Nov 2012
2 answers
157 views
Hello. When I add a record in my Grid, "create" url is hit using POST, but checking in the httpd logs, POST parameters are empty.
This is my Grid & Datasource definition:

$(function() {
                $("#grid").kendoGrid({
                    dataSource: {
                        transport:{
                            read:"libyMsg.php?way=getUsrMsgList",
                            create:{
                                url :"libyMsg.php?way=createMsg",
                                type:"POST"
                            },
                            update:{
                                url :"libyMsg.php?way=updateeMsg",
                                type:"POST"
                            },
                            destroy:{
                                url :"libyMsg.php?way=destroyMsg",
                                type:"POST"
                            }
                        },
                        batch: true,
                        pageSize: 10,
                        schema: {
                            data: "data",
                            model: {
                                id: "msg_id",
                                fields: {
                                    msg_id: { editable: false, nullable: true },
                                    msg_title: { validation: { required: true } },
                                    msg_content: {  validation: { required: true } },
                                    msg_type: { type: "number", validation: { min: 0, required: true }},
                                    msg_date: { type: "date", validation: { required: true } },
                                    msg_status: { type: "number", validation: { min: 0, required: true } }
                                }
                            }
                        }
                    },
                    columns: [{ field: "msg_id", width: 40,title: "ID" },
                        { field: "msg_title",width: 230, title: "Title" },
                        { field: "msg_content", width: 370,title: "Content" },
                        { field: "msg_type", width: 40,title: "Type" },
                        { field: "msg_date", width: 300,title: "Date" },
                        { field: "msg_status", width: 40,title: "Status" }],
                    scrollable: true,
                    sortable: true,
                    editable:"popup",
                    pageable: {
                        refresh: true,
                        pageSizes: true
                    },
                    toolbar: ["create", "save", "cancel"],
                });
            });
             
                         
        </script>
I wonder why im receiving an empty POST.
Thanx,
M
Marta
Top achievements
Rank 1
 answered on 27 Nov 2012
1 answer
45 views
Nice improvement in the styling, especially on Blackberry. Tabstrip is really slick now and buttons are much more attractive in Android.

Working nicely on iOS, Android and Blackberry. 

Font icons work much better and overall it seems to run smoother on the handsets.

Kamen Bundev
Telerik team
 answered on 27 Nov 2012
0 answers
82 views
Hi,

I am having a simple form where i am showing a grid from a datasource.After I need to show the same in a window.
It is working fine but, after closing the window upon showing the data if i want to reload the data again then I am getting undefined error for the grid.
For this i have just tried an example with opening a window and after loading the data again for a dropdown box it is also throwing the same error.
Is it the problem with kendoui or have anybody faced this kind oof error.
Any idea??

Regards,
Sri.
SriNi
Top achievements
Rank 1
 asked on 27 Nov 2012
0 answers
174 views
@(Html.Kendo().TabStrip()
    .Name("tabstrip")
    .Items(tabstrip =>
    {
tabstrip.Add().Text("About Us")
                .Content(@<text>
                                     
                </text>);
            tabstrip.Add().Text("Contact Us")
                .Content(@<text>
                                     
                </text>);
             
    })
    .SelectedIndex(0)   
)
 
<style>
.k-tabstrip .k-tabstrip-items { padding:0.3em 0.35em 0;}
.k-reset { text-align:right;}
</style>
Khieu Kim Khun
Top achievements
Rank 1
 asked on 27 Nov 2012
1 answer
120 views
is there any reason why this wouldn't result in a console log upon clicking of the link?

$(".woot").click(function() {
console.log('test');
});

{field: "id", title: "id", template: "<a href='javascript:;' class='woot' id='#= id #' />#= id #</a>"},

Nikolay Rusev
Telerik team
 answered on 27 Nov 2012
1 answer
110 views
While adding or editing a row in a grid if we select date or time using datepicker or date time picker it is sending wrong date/ time to the controller(Spring MVC controller) .

e.g.

if we select  15 Nov 2012 as date it is sending it as 14 Nov 2012

same as if we select 12:30AM in time it is sending it as 19:00 hrs i.e. 07:00PM  

Nathan
Top achievements
Rank 1
 answered on 27 Nov 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
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
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
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?