Telerik Forums
Kendo UI for jQuery Forum
3 answers
83 views
How can I get notified by e-mail when a new build is published and it's release notes?

Thanks,
Jeff
Dimitar
Telerik team
 answered on 25 Jun 2012
2 answers
2.2K+ views
Hi there,

Is there a way to show an initially hidden tab strip and then hide it again?

I tried a number of ways (adding display: none and i tried adding visibility: hidden) but they only seems to work once and then break scrolling etc.

It's not possible for me to use different views with different layouts defined (With and without a tab strip) because I require it for the same view.

Thanks in advance!

Rob
Grant
Top achievements
Rank 1
 answered on 25 Jun 2012
3 answers
122 views
I can add and apply the filter properly but when I click on the 'Clear' button for my column filter, it re fetch the data to the server (good) but keep the previous filters. It works only if I change for another selection.
My odata filter is look like this when I click on clear on the State filter column, the filter remains for that column.
$filter(YearSalesTarget ge 1000 and State eq 'nv')

I have tested with the new 2012.Q1 beta and I can't reproduced with the demo.
Maybe this is caused by the fact that I have overwritten the parameterMap?
How can I refresh the parameterMap properly? Any idea?

parameterMap: function(data,operation) {
                    if (operation == 'read') {
                    // Used default odata parameters
                    return kendo.data.transports["odata"].parameterMap(data,operation)
                    }
...
}
Steve
Top achievements
Rank 1
 answered on 25 Jun 2012
0 answers
219 views

I seem to be getting a memory leak on the grid widget. I pasted my code is below. In Firefox 12, when the application first runs up, Windows Task Manager says it is taking up around 60Mb of memory. If you click the add button, the memory used grows to around 85Mb, When you click the remove button, the memory does reduce a bit (after about 30 secs), but it only reduces to around 80Mb.

Is there leak in my code or kendo grid widget?

<!DOCTYPE html>

<html>

<head>

    <title>test</title>

    <script src="Scripts/jquery.min.js"></script>

    <script src="Scripts/kendo.web.min.js"></script>

    <link href="Styles/kendo.common.min.css" rel="stylesheet" />

    <link href="Styles/kendo.metro.min.css" rel="stylesheet" />

</head>

<body>

    <div>

        <button id="add" value="add">add</button>

        <button id="remove" value="remove">remove</button>

        <div id="grid"></div>

    </div>

    <script>

        $(document).ready(function () {

            $("#add").click(function () {

                var data = [],

                sharableDataSource,

                i;

                for (i = 0; i < 5000; i = i + 1) {

                    data.push({ field: "value " + i

                    });

                }

                sharableDataSource = new kendo.data.DataSource({ data: data });

                $("#grid").kendoGrid({

                    groupable: false,

                    scrollable: true,

                    sortable: true,

                    pageable: false,

                    resizable: true,

                    selectable: "row",

                    dataSource: sharableDataSource,

                    columns: [{ field: "field", title: "field" }]

                }).data("kendoGrid");

                data = null;

                sharableDataSource = null;

            });

            $("#remove").click(function () {

                $("#grid").empty();

            });

        });

    </script>

</body>

</html>

Maarten
Top achievements
Rank 1
 asked on 25 Jun 2012
0 answers
114 views
Hi,
is there a standard way to show  already uploaded files and provide a delete button for them?
Developix
Top achievements
Rank 1
 asked on 25 Jun 2012
7 answers
384 views
Hi,

Trying to get the basic Grid sample to work.  Getting the following errors...

SCRIPT5007: Object expected
kendo.all.min.js, line 1 character 13464
SCRIPT438: Object doesn't support property or method 'kendoGrid'
index.html, line 19 character 2

Here is my HTML - any help is appreciated as I'm sure it is a basic, newbie mistake.

<html>
<head>
    <title>Test Kendo</title>
    <!--In the header of your page, paste the following for Kendo styles-->
    <link href="../js/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="../js/kendo.kendo.min.css" rel="stylesheet" type="text/css" />
    <!--Then paste the following for Kendo scripts -->
    <script type="text/javascript" src="jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="js/kendo.all.min.js"></script>
</head>
<body>
    <div id="grid">
    </div>
    <script type="text/javascript">
        $("#grid").kendoGrid({ columns: [{ field: "FirstName", title: "First Name" }, { field: "LastName", title: "Last Name"}], dataSource: { data: [{ FirstName: "Joe", LastName: "Smith" }, { FirstName: "Jane", LastName: "Smith"}]} });
    </script>
</body>
</html>
 
Jeremiah
Top achievements
Rank 1
 answered on 25 Jun 2012
1 answer
216 views
I have a requirement that if the series type of line hits 0 to break the line and continue once the series has another value above 0.

Is this possible? Can I hide certain data points?

Let me know if a visual would help.
Iliana Dyankova
Telerik team
 answered on 25 Jun 2012
4 answers
337 views
Is there some way that I can get DataViz to automatically generate a nice looking axis when using dates on the category axis? It would be helpful if it for instance could choose an appropriate step size etc. automatically. 

If this isn't possible I have another question. How do I make it step over some ticks cause I only want ticks where I have labels.

Thanks
Iliana Dyankova
Telerik team
 answered on 25 Jun 2012
1 answer
367 views
I have a grid with a custom toolbar, which have dynamical data showed related to data in the grid. When there are changes in the grid, the toolbartext must be updated to the new values.

Is there a way to refresh/reload the toolbar?
Eel
Top achievements
Rank 1
 answered on 25 Jun 2012
5 answers
366 views
Every sample I can find works on the premise of multiple rows of data coming back.

In our case there is only one row being returned because this is a single item edit screen.

I have a Web API request that returns an object. Here's the response from the call:

{
  "FirstName": "James",
  "LastOrCompanyName": "Hancock",
  "MiddleName": "Robert",
  "Salutation": "Mr.",
  "Suffix": null,
  "Individual": true,
 <...more fields...>
}

It's formatted exactly like that with Json.

What I'm attempting to do is put text boxes that allow edit of those values.

Here's what I have:

var Contact = kendo.data.Model.define({
        ID: "ID"
    });


    dataSource = new kendo.data.DataSource({
        type: "json", // specifies data protocol
        transport: {
            read: { url: "/api/v1/contacts/GetContactByID?id=" + ContactID },
        },
        schema: {
            model: {
                    id: "ID"
            }
        },
        change: function (e) {
            selectedContact = e;
        },
        error: function (e) {
            debugger;
        }
    });

    var viewModel = kendo.observable({
        dataSource: dataSource,
        hasChanges: false,
        change: function () {
            this.set("hasChanges", true);
        }
    });


    kendo.bind($("#contact-info"), viewModel);


for sake of argument I also bound a grid to the datasource like so:

    $("#g-contact-info").kendoGrid({
        groupable: true,
        scrollable: { virtual: true },
        sortable: true,
        pageable: true,
        dataSource: dataSource
    });

The grid doesn't display any data even though one item came back.

And I can't figure out any way to logically set the observable to the first item even if it did. I was expecting some sort of data control on the observable that allowed you to change which is the current item just like a BindingSource in Winforms or something.

Can someone help with the two issues? First being the data not coming back and binding properly, the second being how do I get the observable to set properly and get my selectedContact set with the right value.

Thanks!
Gareth
Top achievements
Rank 1
 answered on 25 Jun 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?