Telerik Forums
Kendo UI for jQuery Forum
1 answer
92 views
If I have a data source on with serverPaging: false and the following object:
var params =
{
"date""2013-03-13T07:00:00.000Z",
"region":0,
"pageNumber":1,
"pageSize":10,
"sortBy":0,
"sortOrder":0
};
When I call
myDataSource.read(params),
the pageSize property is removed from my params object. This is due to line 6817 in kendo.all.js, version 2013.3.1315, highlighted below:
if (!that.options.serverPaging) {
     delete options.take;
     delete options.skip;
     delete options.page;
     delete options.pageSize;
}
I would love to set serverPaging: true and avoid the running of this code, but it causes an infinite loop, continuously requesting reloading of my data from the server, so I must set it false. I do not have the time to post about that separate problem unfortunately, but it is very concerning. Regardless, seems like properties on user-created data objects being passed to the .read() method should never be deleted.
Petur Subev
Telerik team
 answered on 14 Mar 2013
0 answers
71 views
First of all sorry for this thread, but I can't access my old one with the same title.
I only want to say thank you very much to Rosen, your solution works perfect.
A quick, precise and right answer. Good job!
Rafael
Top achievements
Rank 1
 asked on 14 Mar 2013
0 answers
60 views
I have trouble with multiple series in chart with the MVC wrapper. 

Any help would be great!
public class IncomeChartModel
{
    public string Label { get; set; }
    public List<int> Year { get; set; }
    public List<int> Data { get; set; }
}

My razor
@{
    var kendo = Html.Kendo().Chart(Model.IncomeChart);
    kendo.Title("Inkomen");
    kendo.Name("IncomeChart");
    kendo.CategoryAxis(axis => axis.Categories(model => model.Year));
    kendo.SeriesDefaults(s => s.Area());
     
    foreach (var item in Model.IncomeChart)
    {
        var myItem = item;
        kendo.Series(series => series.Area(model => myItem.Data).Name(myItem.Label)).AutoBind(true);
    }
     
    kendo.Render();
}
The result: 
jQuery(function(){jQuery("#IncomeChart").kendoChart({"title":{"text":"Inkomen"},"series":[{"name":"AOW","type":"column","field":"myItem.Data"},{"name":"Brand New Day","type":"column","field":"myItem.Data"}],"categoryAxis":[{"categories":["System.Collections.Generic.List`1[System.Int32]","System.Collections.Generic.List`1[System.Int32]"]}],"dataSource":{"schema":{"model":{"fields":{"Label":{"type":"string"},"Year":{"type":"object"},"Data":{"type":"object"}}}},"data":[{"Label":"AOW","Year":[2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074],"Data":[1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"Label":"Brand New Day","Year":[2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074],"Data":[25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000,25000]}]},"autoBind":true});});

PascalWasHere
Top achievements
Rank 1
 asked on 14 Mar 2013
1 answer
83 views
Hello,

Is there an available Kendo whitepaper or blog post comparing and contrasting Kendo's MVVM support with alternatives, like Knockout.js? I know there's a not-very-flattering thread here about that comparison, but haven't found anything official from Kendo.

Thanks,

Jon
Iliana Dyankova
Telerik team
 answered on 14 Mar 2013
2 answers
116 views
Greetings

Devexpress got a functionallity which can be used for a ClientSide events to call the Controller. Check out this demo CallbackPanel.
Does Kendoui has something similar?
I think this could be handled by Ajax, but for the moment I want to avoid it.

cheers and thanks

Robert
Top achievements
Rank 1
 answered on 14 Mar 2013
5 answers
258 views
Hello,

Is the approach to Kendo to use templates to route between views on a single page?  Does it support navigation between multiple HTML pages, for example, like the approach Windows takes to single page applications?

Thanks.
mgs
Top achievements
Rank 1
 answered on 14 Mar 2013
1 answer
294 views
Hello everybody:
I'm currently testing KendoUI in order to adopt it for new developments and I have two big problems with the ajax request. You can download a complete solution from https://github.com/ragare62/AriUserManagement in order to test this behaviour. If you load AriUMSolution and start AriUMWebApi and AriUMWebHtml (UserGroupGrid.shtml) you'll access to a Kendo grid page and try to create, update or delete registers.

PUT and DELETE http verbs don't work:
When I specify the "type" attribute in "transport.create" to "POST", "transport.update" to "PUT" and "transport.destroy" to "DELETE" the result is always a request with the "OPTIONS" verb. Reading the JQuery documentation about ajax request I realize that "PUT" and "DELETE" could be problematic. Well, I said to myself I'll work only with "POST" so far, and then it came the second problem.

When change "contentType" the request doesn't work:
In my example when you create a new register a "POST" request is issued but webapi can't deserialize the JSON object in the request body. When I debugged that problem with Fiddler I realized that the Content-Type was "Content-Type: application/x-www-form-urlencoded; charset=UTF-8", if I changed "application/x-www-form-urlencoded"  to "application/json" with Fiddler everything worked fine. I tried to fix the content type in "transport.create" with the "contentType" attribute to "application/json". But if I did that, the http verb changes from "POST" to "OPTIONS".

I tested these issues with "html" pages instead of "shtml" pages and with different browsers with the same result.
Any help would be appreciate.
Thanks in advance.

Rosen
Telerik team
 answered on 14 Mar 2013
4 answers
133 views
The upload control 'Select...' button remains the focus for the duration of 2 tabs when included in a form with additional inputs. 

The final output structure is as such and doesn't include any other form elements but the input[type=file] element
<div class="k-widget k-upload">
<div class="k-dropzone">
<div class="k-button k-upload-button">
<input name="photos" id="photos" type="file" data-role="upload" autocomplete="off" class="">
<span>Select...</span>
</div>
<em>drop files here to upload</em>
</div>
</div>
What is it about this that 
  1. Does not take into consideration the need for a tabbed interface where the button is a primary focus
  2. Does not allow to implement 'focus' on said button

Please advise...


beauXjames
Top achievements
Rank 2
 answered on 14 Mar 2013
2 answers
1.0K+ views
Hey Guys,

I am creating and opening a kendoWindow with the iframe property set to true which loads "chat.html" in the content. What I am trying to do is append a <div> inside the kendoWindow from the parent. On the parent page I can locate the window using  var wnd = $("#window").data("kendoWindow"); just not sure how to append a div inside my kendoWindow using jQuery.

// Simply returns the <iframe> html
$("#window").html();

// This code doesn't append the div
$("#window #divTest").append("Some text");

Can anybody guide me in the right direction?

Thank You
Warren
Top achievements
Rank 2
 answered on 14 Mar 2013
2 answers
267 views
EDIT: It's happening because the TD sometimes contains a DIV and the DIV, not the TD, becomes the target of the click event.

I posted this by accident in Window sub-forum.

It may be my error, or it could be a problem with the grid or jQuery.  My code is shown below.  I'm clicking on the same column, choosing a different row at random, and every so often, the wrong column-index is returned. I cannot figure out why it works most of the time, but not always.  I'm clicking on a column whose index is 7. Sometimes zero is returned.

Also tried the following; cellindex and index() are not always in agreement.

function popup(e) {   
          cell = e.target;
            var ix = $(cell).index();
           var ix2 = $(cell)[0].cellIndex;
           assert((ix == ix2), "index() and cellindex returning different values!");
}
 

function addCellClickEventListener() {
    var grid = $('#grid').data('kendoGrid');
    $(grid.tbody).on('click', "> tr:not(.k-grouping-row, .k-detail-row, .k-group-footer) ", function (e) {
        popup(e);
    });
}
  
  
function popup(e) {   
    var cell = e.target;
    var ix = $(cell).index();
    assert((ix != 0), "index must be greater than zero");
}
  
  
function assert(val, msg) {
    if (!val) {
        alert(msg);
        return false;
    }
    return true;
}
Tim R
Top achievements
Rank 1
 answered on 14 Mar 2013
Narrow your results
Selected tags
Tags
+? 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?