Telerik Forums
Kendo UI for jQuery Forum
6 answers
270 views
I've already seen too many forum post about problems, so I'm looking for a better intro and walkthrough for getting started that does NOT make any assumptions.

Yes, I understand that KendoUI is HTML5+jQuery+CSS but when building multi-targeted mobile apps for iOS, Android, etc must the HTML5 app be served from a web server?  Or will it be accessed from an app installed on the mobile device after packaging with PhoneGap? So that the HTML5 web pages are actually packaged into the app that is installed on each mobile phone device?

And if packaged with PhoneGap, where do you start: with a PhoneGap project?  Or with a Visual Studio project?  Especially if you want to build upon existing ASP.NET project dll's and ASP.NET MVC3 or MVC4 projects?

A complete walkthrough clarifying which development steps to complete in which development environment would prevent time wasted on trial and error.   Especially for the situation where I want to develop in Visual Studio with ASP.NET MVC 4 plus KendoUI on PC Windows, then eventually get to an iOS app for iPad and iPhone on Apple.
Dimo
Telerik team
 answered on 02 May 2012
1 answer
98 views
Is it possible to have a slider on graphs. We have a lot of data to graph and presently it just makes the columns or bar smaller trying to fit everything in the area allowed. I have attached an exemple to show what we would like to have.

Thanks in advance.

Pierre Sauvé

Hristo Germanov
Telerik team
 answered on 02 May 2012
1 answer
197 views
Hello,
data-init=" function " is executed when the page view is loaded the first time.

who load a function each time that is displayed ?

I try
app.navigate( url );

or
window.location = url;


but the page not call the function again.
Sasha
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
4.8K+ views
Hello,
I have a grid being populated through a json data source. I can enable sorting on the grid by setting the sortable property to true. This enables sorting on all of my grid columns. Is there a way to enable sorting for particular fields only? So if I have a grid with 3 columns, I only want the users to sort by the first or second column.

Thanks in advance.
Tonny
Top achievements
Rank 1
 answered on 01 May 2012
0 answers
88 views
I've got a grid that is declaratively bound:
data-role="grid" data-bind="source = logEntries"

One of the columns is a Log Level column.  The data source field (Level) is an integer. I have that column declared with the template 
"template": "#= viewModel.getLogLevelAsName(Level) #"
that converts the integer into a human-friendly display name.  A human doesn't know the difference between log level "2" and log level "5" but certainly knows the difference between log level "Debug" and log level "Error."  This works out great because when the user sorts, they are sorting on the relative underlying value (the log level number) and not the display text.

That said, when I group by that column, the underlying data (log level number) shows to the user (see attached screenshot).  I'd like to run that number through the same
viewModel.getLogLevelAsName(...)
method.

Or maybe I'm missing something?  For example, some baked-in way to provide a lookup (display) value for items in a grid (besides using a manually-written template)?  Something like the ability to assign a column a "lookup data source" (data-display pair) so that the underlying data is always shown to the user based on the results of the lookup.
Chad
Top achievements
Rank 1
 asked on 01 May 2012
0 answers
66 views
Hi All:

Pretty sure it's a configuration issue.  When I load the WCF CRUD demo into Visual Studio, build, and run, I'm getting the following message when attempting to add a new record (grid is initially blank, btw):

Error: 'ProductID' is null or not an object.

Configuration uses SQL Server 2008 Express.  Could that be the problem, I wonder?

Dave
David Holland
Top achievements
Rank 1
 asked on 01 May 2012
1 answer
79 views
Just a small tip for everyone out there....
If the editor appears 'disabled' in Chrome (like in the attached screenshot) the likely reason is that it's been initialized outside $(document).ready(). 

Just move it inside $(document).ready() to fix it.  I found this out the hard way :)
Alex Gyoshev
Telerik team
 answered on 01 May 2012
2 answers
219 views
this code is part of my last project,it can be execute right.
$(document)
            .ready(
                    function() {
                        var dataSource = new kendo.data.DataSource(
                                {
                                    transport : {
                                        read : {
                                            url : "${pageContext.request.contextPath}/queryAllBusLineServlet",
                                            dataType : "json"
                                        },
                                        update : {
                                            url : "${pageContext.request.contextPath}/updateBusLineServlet"
                                        }
                                    },
                                    batch : true,
                                    schema : {
                                        model : {
                                            id : "id",
                                            fields : {
                                                id : {
                                                    editable : false
                                                },
                                                name : {
                                                    editable : true
                                                }
                                            }
                                        }
                                    }
                                });
                        $("#grid").kendoGrid( {
                            sortable : true,
                            dataSource : dataSource,
                            pageable : true,
                            height : 600,
                            columns : [ {
                                field : "id",
                                title : "id",
                                editable : false
                            }, {
                                field : "name",
                                title : "name"
                            }, {
                                command : [ "edit" ]
                            } ],
                            editable : "popup"
                        });
                    });

in next project ,i write like that,
var url = "${pageContext.request.contextPath}/querySamplesServlet?status="
                + status;
        var dataSource = new kendo.data.DataSource(
                {
                    transport : {
                        read : {
                            url : url,
                            dataType : "json"
                        },
                        update : {
                            url : "${pageContext.request.contextPath}/updateSampleServlet"
                        }
                    },
                    batch : true,
                    schema : {
                        model : {
                            id : "id",
                            fields : {
                                id : {
                                    editable : false
                                },
                                name : {
                                    editable : false
                                },
                                status : {
                                    editable : true
                                }
                            }
                        }
                    }
                });
        $("#samples").kendoGrid( {
            sortable : true,
            dataSource : dataSource,
            pageable : true,
            height : 600,
            columns : [ {
                field : "id",
                title : "id",
                editable : false
            }, {
                field : "name",
                title : "name",
                editable : false
            }, {
                field : "status",
                title : "status"
            }, {
                command : [ "edit" ]
            } ],
            editable : "popup"
        });

here is the problem,it has no error or warning in chrome console,but the edit button shows "undefined",and while i edit status,it just doesn't work,no data send to server.
Chris Foster
Top achievements
Rank 1
 answered on 01 May 2012
3 answers
335 views
Hi guys,

Im having trouble getting an editor to working inside a jquery dialog box. The result of the code below is that the the editor is drawn very small and you are unable to enter any text.

Any help you might be would be greatly appreciated.
<div id="createBulletinDialog" style="display: none;" title="Create Bulletin">
<p>
    Fill in the form below to create a new bulletin
</p>
<table width="100%">
    <tr>
        <th>
            Name:
        </th>
    </tr>
    <tr>
        <td>
            @Html.TextBoxFor(n => n.Name, new { name = "Name" })
        </td>
    </tr>
    <tr>
        <th>
            Message:
        </th>
    </tr>
    <tr>
        <td>
            @*@Html.TextBoxFor(n => n.Message, new { name = "Message" })*@
            <textarea id="editor" name="Message" rows="10" style="width: 100%;"></textarea>
        </td>
    </tr>
</table>
    </div>
Alex Gyoshev
Telerik team
 answered on 01 May 2012
1 answer
118 views
Most of the examples on the website demonstrate attaching the select event in documentReady method.

var
treeView = $("#treeView").data("kendoTreeView");
How can I attach the select event of 'treeView' to an onSelect function? Could you please also suggest how to detach the event?
Richard
Top achievements
Rank 1
 answered on 01 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?