Telerik Forums
Kendo UI for jQuery Forum
1 answer
150 views
I am writing an app that has a chat area in it. The text input field is in the footer and so I would like to have the newest items appended at the bottom of the list and keep the scroll position at the bottom as new messages are added to the list. All that seems straight forward but I would also like to have endless scroll load older messages as the user scroll up instead of down. Is it possible to basically flip the direction of endless scroll? 
Iliana Dyankova
Telerik team
 answered on 04 Mar 2013
1 answer
109 views
Is there a way to have a column show up in the column selector without adding that column the grid and hiding it? I have a data source with 100+ columns and only 15 are shown by default, and I want to allow the user to select the other columns if needed, but not load all 100+ columns and hide 85 of them.  The performances isn't too great with 100+ columns added.  Thanks!
Alexander Valchev
Telerik team
 answered on 04 Mar 2013
1 answer
104 views
Hello,

I am using server side paging with the datasouce, and am attempting to do some out of box paging functionality.  When I try to set the page size using ds.pageSize(X), it does a server request with the new page size.  Is there a way to tell the datasource to not do a request when setting the pageSize?  This is giving some unwanted trips to the server.

Thanks
Petur Subev
Telerik team
 answered on 04 Mar 2013
16 answers
283 views
Hi,

I've been using the scrollView for displaying photos.  I really like it but 2 things have come up.

1. It bounces a lot it almost makes it not worth while, scrolling the window up and down.
2. I can not get it to line up on the phone.  ie. the first photo sits in the middle of the phone then when you move it to the next one, it's off center as you move to more and more photos it gets worst.

thanks
Petyo
Telerik team
 answered on 04 Mar 2013
12 answers
330 views
 Hello,

I was interested in prettying up the grid a bit today, mainly by attempting to incorporate gradients into the styles...row selection, row hover, anything else would be bonus.

When plugging in the row hover I came across the following JSBin...

http://jsbin.com/ezovaw/2/edit#/ezovaw/54/edit

It is referencing your public, static stylesheets and has the exact look I was going for.

http://cdn.kendostatic.com/2012.2.710/styles/kendo.common.min.css
http://cdn.kendostatic.com/2012.2.710/styles/kendo.default.min.css

I quickly tried referencing these stylesheets myself and was pleased with the result.

I've tried pulling the stylesheets locally, but oddly, I do not get the gradients. It is only working when referencing the URIs above...

Where can I find the (version) of these stylesheets that includes the gradients in my Q3 2012 release?


Thanks for your help!
Dimo
Telerik team
 answered on 04 Mar 2013
2 answers
451 views
Hi!

I just do my first steps with KendoUI and came across a problem I see no sultion for:
I bind a dataSource to a grid. The dataSource is grouped by a field which is not used in the grid:


    var dsCountries = new kendo.data.DataSource({
    type: "json",
    transport: {
        read: {
            url: '@Url.Action("GetCountries", "Home")',
            dataType: "json",
            type: "POST"
    }},
    schema: {
        data: "data",
        total: "total",
        model: {
            id: 'CountryID',
            fields: {
                Country: { type: "string" },
                Currency: { type: "string" },
                Size: { type: "double" },
                Continent: { type: "string" }
    }}},
    group: {
        field: "Continent", aggregates: [
            { field: "Size", aggregate: "sum" }
        ]
    },
    aggregate: [ { field: "Size", aggregate: "sum" } ],
    sort: { field: "Country", dir: "asc" },
    pageSize: 100,
    serverPaging: true,
    serverFiltering: true,
    serverSorting: true
});
 
var detailGrid = $("<div id=\"grid\" />").kendoGrid({
    dataSource: dsCountries,
    groupable: false,
    sortable: false,
    pageable: false,
    scrollable: false,
    columns: [
        { field: "Country", width: 200, title: "Text" },
        { field: "Currency", width: 200, title: "Text" },
        {
            field: "Size", width: 70, title: "Size", format: "{0:n}", attributes: { "Class": "numbers" },
            groupFooterTemplate: "<div class=\"numbers\">#=kendo.toString(sum, 'n') #</div>",
            footerTemplate: "<div class=\"numbers\">#=kendo.toString(sum, 'n') #</div>"
    }
    ]
});
Everything's OK so far, but now I want to define a groupHeaderTemplate für the 'Continent'-Field; the way it is displayed now in the GroupHeader, which is something like [Fieldname]: [Fieldvalue]. Right now, only displaying [Fieldvalue] would be good enough, but the best solution would offer a complete template.
Can this be done (easily)?

Another thing quite similiar: When the (nondisplayed) grouping field is boolean ('true' and 'false' ist displayed): Is the a way to display alternate values like 
groupingboolean ? "Yes" : "No";
Thanks in advance
Christoph
Top achievements
Rank 1
 answered on 04 Mar 2013
1 answer
525 views
Hello KendoUI Gurus - 

I am using a datasource and an external API (Parse.com) to grab data and populate it into a Pull-to-Refresh list view. All works well, however I am filtering the data using Kendo's "FILTER" (meaning I retrieve ALL records from the cloud first, and then apply a filter - which isn't going to work as the table grows, or at best horrible inefficient) I need to filter the data at the query level - the ajax code below works fine 

Question:
Is there anywhere I can put this line of code in the Kendo datasource configuration to have this line of code run in the AJAX request. 
  data: 'where={"username":"someUser"}',

Below is a link to some documentation on their site, I understand that it's an external service and that you may not support it, but I would like to double check with you and hopefully you can advise me on how to achieve what I need to do

Thanks in advance,

Regards

Darren

Ajax Working Code:

$.ajax({
  type: 'GET',
  headers: {'X-Parse-Application-Id':'PARSE-APP-ID','X-Parse-REST-API-Key':'PARSE-REST-KEY'},
  url: "https://api.parse.com/1/Messages",
  data: 'where={"username":"someUser"}',
  contentType: "application/json"
});


Kendo UI DataSource:

var listingdataSource = new kendo.data.DataSource({
                serverPaging: true,
                pageSize: 10,
                filter: { field: "messageTo", operator: "eq", value: localStorage.ls_userid},
                 sort: { field: "createdAt", dir: "desc" },
                transport: {
                  data: 'where={"username":"someUser"}',    
                read: {
                type: 'GET',
                headers: {'X-Parse-Application-Id':'xxx','X-Parse-REST-API-Key':'xxx'},
                url: "https://api.parse.com/1/classes/Messages",            
                 

                dataType: "json" // JSONP (JSON with padding) is required for cross-domain AJAX
                    },
                
                },
                schema: { // describe the result format
                    data: "results", // the data which the data source will be bound to is in the "results" field
            
                }
            });
        

PARSE.COM REST API:
https://parse.com/docs/rest
Petur Subev
Telerik team
 answered on 04 Mar 2013
1 answer
162 views
When I load a page that uses a grid and autobind is set to true the page flashes an empty grid while it is loading data and then populates the data. I thought I'd avoid the 'flash' by manually creating / initializing a table with the first page of data and then initializing the grid with autobind set to false.

The problem is when I do that the page number is 0 and the 'x-y of z items' text shows zero items. I know that's because it doesn't know the page number or total number of items until the data source reads from the server...is there a way I can manually set the variables it needs when the page loads? I tried setting the 'page' property of the grid to 1 but that didn't seem to help.

Thanks,

Troy
Petur Subev
Telerik team
 answered on 04 Mar 2013
3 answers
71 views
Hi guys,
I'm trying to add some asp object at my kerio/jquery/html5 based site..

I have an issue when I try to insert a CreateUserWizard

<form runat="server">
....
 
    <asp:CreateUserWizard  runat="server">
      ......
     </asp:CreateUserWizard  runat="server">
.....
</form>
As soon as I try to implement this object I get an error from the browser where it says 
"Uncaught TypeError: Object [object Object] has no method 'kendoMenu'"
it seems that the browser doesn't find anymore the reference to kendo.all.js...
every ui api isn't working anymore.. (kendoMenu, kendoPanelBar etc) I don't know if this issue is strictly related to kendo, or if there's something in that asp control that messes with kendo js..
If you have any clue or suggestion would be really appreciated.
Thanks
Fabio

Petur Subev
Telerik team
 answered on 04 Mar 2013
1 answer
267 views
Hi,

is there any why to get KendoUI (DataViz) running with a SQLite-Database as Datasource. We want to get all datas for the charts from a sqlite-Db? Is this possible and how? Is there a working example?

Thanks a lot
best Regrads
Rene
Clay
Top achievements
Rank 1
 answered on 03 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?