Telerik Forums
Kendo UI for jQuery Forum
1 answer
113 views
Datepicker no longer supports the touch (on IPAD).

http://demos.kendoui.com/web/datepicker/index.html
Kamen Bundev
Telerik team
 answered on 15 Jul 2012
0 answers
67 views
Hello,

I am evaluating Kendo so don't have support subscription to file an official bug report.

Still, Horizontal kinetic scrolling works great on iOS and Android, but is broken on Opera Mobile. This can be reproduced if you have a large grid.

If you can't reproduce it I'll take some time to create a fiddle to demonstrate the issue.
Anirudh
Top achievements
Rank 1
 asked on 15 Jul 2012
2 answers
333 views

I'm pretty new to kendo and Im trying to set up a foreign key in a grid but instead of using a list like in the example im attempting to use a second datasource instead.
At the moment when in edit mode i can select a drop down box which shows the text values of the foreign key instead of the id number but after i switch out of edit mode it reverts back to an id.

This is currently what i have
http://jsfiddle.net/QPXrf/8/ 

I'm just needing some direction in what would be the best way to do this.




Jye
Top achievements
Rank 1
 answered on 15 Jul 2012
2 answers
115 views
Using the dropdownlist (3) in a mobile web app, using a tabstrip and 3 views. The dropdowns are populated based on data returned after a user enters a value in a textbox. The onblur calls a function which fetches data via Ajax and then populates the dropdowns and a few textboxes. The ajax calls returns all the data needed, there is not a separate call for each dropdown.

My problem is that it always works correctly on the first binding but never on subsequent bindings. I've confirmed that the subsequent ajax calls are returning data and I've also wired up an alert message to the dataBound event for each dropdown and that also fires.

After seeing this problem I thought that maybe clearing the dropdowns before binding might solve the problem but it does not, still have the same issue. I assume there is one small piece I am missing but not sure what that might be.

I don't think this is a browser related issue because it happens in Chrome, Safari, IE, Safari for iPhone and the Android browser.
Greg
Top achievements
Rank 1
 answered on 14 Jul 2012
3 answers
343 views
Hi,

today i have tried to read the data out of a datasource....

i have just seen this post: http://www.kendoui.com/forums/framework/mvvm/mvvm-source-binding-to-datasource.aspx

which is bascially what i have been trying to do all day.

tho trying the answer doesn't work, when using kendo.bind($("#container"), a); it Never hits the controller action method (using MVC3) leading me to believe that the datasource never calls the server.

VIEW:
 
@section ViewModel
{
    <script type="text/javascript">
        $(function () {
            var a = kendo.observable({
                theList: new kendo.data.DataSource({
                    transport: {
                        read: "/home/zaza",
                        dataType: "json",
                        type: "POST"
                    },
                    schema: {
                        model: {
                            id: "ID",
                            fields: {
                                ID: {
                                    editable: false,
                                    nullable: false
                                },
                                Name: {
                                    editable: true,
                                    nullable: true
                                }
                            }
                        }
                    }
                })
            });
 
            kendo.bind($("#container"), a);
        });
    </script>
}
 
<h2>@ViewBag.Message</h2>
<div id="container">
        <ul data-role="listview" data-template="ul-template" data-bind="source: theList">
        </ul>
</div>
<script id="ul-template" type="text/x-kendo-template">
<li>
    id: <span data-bind="text: ID"></span>
    name: <span data-bind="text: Name"></span>
</li>
</script>
 
HOME - CONTROLLER:
 
 public class Place
        {
            public int ID { get; set; }
            public string Name { get; set; }
        }
 
 
        [HttpPost]
        public JsonResult zaza()
        {
             
            List<Place> plases = new List<Place>();
 
            plases.Add(new Place() { ID = 0, Name = "Larocque" });
            plases.Add(new Place() { ID = 1, Name = "St-Louis" });
            plases.Add(new Place() { ID = 2, Name = "Dorval" });
            plases.Add(new Place() { ID = 3, Name = "St-Pierre" });
 
 
 
            return Json(plases, JsonRequestBehavior.DenyGet);
        }


I have had limited success creating a datasource and calling read() on it, but could never get the data out afterwards.

what im trying to do:

1) define #view with binding templates
2) read remote datasource
3) bind that data array (from item 2) to a viewModel property (viewModel.Groups = data???)
4) bind the viewModel to the view (using kendo.bind($("#view"), viewModel);)


I have foudn this very hard to do... 

I should say im a Noob to javascript so maybe im making a basic silly mistake... but for the life of me i can figure out what.

Thank you in advance

Rhys Walden

SA-Ignite
Top achievements
Rank 1
 answered on 14 Jul 2012
2 answers
236 views
Hi guis, thx before everything:

I'd like to use the amazing Kendo's Grid to take soma advantages like paging, filtering through DataSource and more.
 As I show up in ths fiddle http://jsfiddle.net/dsubiros/5fXZq/ , I can't get selectedItem when I'm using a rowTemplate.

In this example if I change the attribute columns by " columns: ['OrderID', 'ShipName'] ", and comment out the rowTemplate attribute, grid works as expected, but I need to be able to use a template, and still get grid's selected row.

$("#grid").kendoGrid({
   dataSource: dataSource,
   pageable: true,
   selectable: true,
   rowTemplate: kendo.template($("#rowTemplate").html()),
   columns: [''],
   change: function() {
   var id = this.select().data("id");
   $("#log").html("LOG: selected id = " + id);
}
});

Please help me out.
Mauro
Top achievements
Rank 1
 answered on 13 Jul 2012
0 answers
108 views
Hello, is there a way to change the style of the command buttons like in telerik ? To only text, text + image or just an image ?

Thanks!
David
Top achievements
Rank 1
 asked on 13 Jul 2012
2 answers
325 views
In my instance, a Kendo UI grid is bound to a OData service. The service exposes a table with many (200+) fields. The app allows users to configure displayed field set of the Grid, set initial filters and sort parameters. The app configures the Grid, which then goes off and queries OData service. 

The grid kendo.Data.DataSource is defined as:

var gridDataSource = new kendo.data.DataSource({
    type: "odata",
    transport: {
        read: {
            url: "@Url.Content(dynDataSource.Url)",
            contentType: "application/json; charset=utf-8",
            type: "GET",
            dataType: "json"
        }
        },
    pageSize: @Model.MaxPageSize,
    serverPaging: true,
    serverFiltering: true,
    serverSorting: true,
    filter: ...
}

Here's a sample request issued by the Grid (captured by Firebug):
http://localhost:22411/Data/Comp?%24inlinecount=allpages&%24top=1000&%24filter=DistrictCode+eq+%27460800%27

This returns all the fields of the table, which is a problem. The fields need to be limited by selecting only the required fields, the request for which would look like:
http://localhost:22411/Data/Comp?%24inlinecount=allpages&%24top=1000&%24filter=DistrictCode+eq+%27460800%27&%24select=DistrictCode,DistrictName,DistrictNumber

Again, how to configure the grid for this to happen?
Dincer
Top achievements
Rank 1
 answered on 13 Jul 2012
5 answers
76 views
Hello everyone

I have a little problem with my last column ´s tooltip; it isn´t be read.
I do not want that the scroll (horizontal) appears on the page;

I tried with the CSS property overflow-x: hidden for hide my scroll; but it is worse because now I don´t have chance to see it.

It could be that the tooltip appears to the left of the series?

Regards,
M.
Monique
Top achievements
Rank 1
 answered on 13 Jul 2012
0 answers
66 views
Hi

Is it possible to change the destination ul (k-upload-files k-reset) of uploaded files?

Thanks
Raffael
Top achievements
Rank 1
 asked on 13 Jul 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?