Telerik Forums
Kendo UI for jQuery Forum
1 answer
116 views
I want to sort a text column alphabetically ascending but with empty values at the end rather than the beginning. Is there a way to specific a custom sort order such as this?

Thanks for your help,
Gary
Rosen
Telerik team
 answered on 10 Feb 2012
3 answers
161 views
I found a bug in IE 7 and 8 (sorry we have to use this versions in Windows XP).
I modified your example to a very basic version. If you try the following code, then you see that the calender popup is NOT closed.
If you add the following line after line 22 (CSS of #container"): "padding: 1px" then it works like expected.

Try this code:
<!doctype html>
<html>
    <head>
        <title>Basic usage</title>
        <link href="../../../source/styles/kendo.common.css" rel="stylesheet"/>
        <link href="../../../source/styles/kendo.default.css" rel="stylesheet"/>
        <script src="../../../source/js/jquery.min.js"></script>
        <script src="../../../source/js/kendo.core.js"></script>
        <script src="../../../source/js/kendo.fx.js"></script>
        <script src="../../../source/js/kendo.popup.js"></script>
        <script src="../../../source/js/kendo.calendar.js"></script>
        <script src="../../../source/js/kendo.datepicker.js"></script>
 
        <style type="text/css">
            body {
            padding: 0;
            margin: 0;
            font: 76% tahoma, verdana, sans-serif;
            color: #303030;
        }
        #container {
            margin: 10px;
        }
        </style>
 
    </head>
    <body>
        <div id="container">
            <input id="datepicker" value="10/10/2011" style="width:150px;" />
        </div>
 
        <script>
            $(document).ready(function() {
                // create DatePicker from input HTML element
                $("#datepicker").kendoDatePicker();
 
            });
        </script>
    </body>
</html>


The bug only exists in IE 7 and 8, not in IE 9 or in Firefox or in Chrome or in Safary.

Thank you for your exciting work - excellent!
Kamen Bundev
Telerik team
 answered on 10 Feb 2012
3 answers
115 views
When using a list in both iOS and Android try scrolling down so the list shows some empty space at the top. Quickly tap that space and the list will het stuck, it won't go back down automatically. Sometimes the list wil disappear completely! I discovered this while using Kendo UI Mobile together with PhoneGap but also noticed the same effect in the browser.
Petyo
Telerik team
 answered on 10 Feb 2012
2 answers
827 views
When placed in a line, there's a noticeable difference in the vertical alignment of the dropdown list and date/time pickers when compared to text-boxes.(please see the attached file)

I suspect this can be fixed by changing the height or padding of the text box which appear to be slightly too bulky.

How can I resolve this?
Vivek
Top achievements
Rank 1
 answered on 10 Feb 2012
0 answers
71 views
On day two of playing around with Kendo.  So far, having a lot of fun, seem's that once I learn all the little tricks it could make development very fast.

Anyway, a query or suggestion.  I am retrieving a slew of <input class="drop-selector> (which exist as a column in a grid[created via a column template]) using $(".drop-selector) and calling kendoDropDownList to turn this into a list. (doing this on the dataBound event of the grid)

Then i'm currently having to iterate through this result(.each) and set the initial drop-down index.  I can't help but think there should be an easier way.

One thing that came to mind was wouldn't it be nice to set an attribute in the initial input node(ie... <input index="2">) and have Kendo automatically set that if the index option wasn't specified in the kendoDropDownList constructor.

Anyway, feel free to correct me if there is an easier way to do what I want!

Justin
Justin
Top achievements
Rank 1
 asked on 09 Feb 2012
2 answers
131 views
Just wondering why you built this site in ASP.NET and not KendoUI?

Thanks
santen
Top achievements
Rank 1
 answered on 09 Feb 2012
9 answers
2.5K+ views
Hi,

I have a Kendo grid where I get the data from the server using jquery's ajax call. On success, the response(JSON data) that is received is stored in a variable and set as the datasource of the grid. Grid works fine. But, in pagination(client side only), when the last page is clicked, it gives error...
Like, suppose i have the fields as, "period", "Doctype", "Status". Then it gives error, "cant find the variable : period". I added the "total" count using GridData.length (GridData is the variable where the json data for the grid from server is stored). It resolved the problem. But now, when i reload the grid, how can i set "total" again? I tried something like this:

 var grid = $("#gridDiv").data("kendoGrid");
 var new_data = getNewData();
 grid.dataSource.add(new_data);
 grid.dataSource.total(new_data.length);
 $("#gridDiv").data("kendoGrid").dataSource.read();
But, this does not work. It again gives the same error on click of the last page. Any suggestions?
Rosen
Telerik team
 answered on 09 Feb 2012
5 answers
347 views
Is it possible to use the grids hierachy feature when using a row template as I have not been able to get it to work.

I have specifed the option detailInit that defines a function handler for building the detail grid and I have tried adding the expand/contract icon to the row template

<script id="template" type="text/x-kendo-tmpl">
    <tr class="k-master-row">
        <td class="k-hierarchy-cell"><a href="#" class="k-icon k-plus"></a></td>
        <td>Some text</td>
    </tr>
</script>

When I click on the expan/contract icon it toggles between open and closed but does not call the function I have specified for creating the detail grid and I get the JavaScript error "data is undefined".

Show this scenario work and if it should any ideas what I am doing wrong?


Rosen
Telerik team
 answered on 09 Feb 2012
1 answer
245 views
I was having a grid where there is a need to edit and delete rows.

Thankful for Kendo UI i got every configuration perfectly working for both update and delete operations. Yet both operations sync the data through the transport when i click on the save changes button on the toolbar. What i wanted was to do the sync when a delete button is clicked after the confirmation has displayed and the user made the decision to delete the row.

I have experimented with the remove event of the grid yet i discovered  that what ever code is put in that block it will be executed before the row is removed from the grid.

Any way that i can sync the datasource after a row is removed from a grid without having to click on the save changes button on the tool bar?

Regards, Mekbib A.

Mekdelawit
Top achievements
Rank 1
 answered on 09 Feb 2012
1 answer
372 views
***Edit - attached a full example that reproduces the problem shown in my attached screenshot. Tested under IE 9 and Firefox 10.0 - both are missing the zero Y-Axis value.... not sure why.

See attached image. For some reason the Y-axis is not including zero, but rather starts at the lowest value contained in my JSON file.

JSON data:
[
    {
        "CategoryText" : "Previous",
        "SeriesValue" : 321131.5225
    },
    {
        "CategoryText" : "Current",
        "SeriesValue" : 300059.4610
    }
]

This is my chart function that I re-use over and over, passing in a different DIV each time:
var DELAY = 400;

function
createGenericBarChart(ChartName, JsonPath, ChartType, Title, LegendVisible, LegendPosition, CategoryLabelRotation, ValueLabelRotation, Stacked, SeriesLabelsVisible,
SeriesLabelsFormat, ToolTipLabelFormat, CategoryAxisField, BarSeriesDefinition, Maximized) {
    $(ChartName).kendoChart({
        dataSource: {
            transport: {
                read: {
                    url: JsonPath,
                    dataType: "json"
                }
            }
        },
        title: {
            text: Title,
            font: '14px Arial'
        },
        legend: {
            position: LegendPosition,
            visible: LegendVisible,
            font: '8px Arial'
        },
        seriesDefaults: {
            type: ChartType,
            stack: Stacked,
            labels: {
                visible: SeriesLabelsVisible,
                position: "outsideEnd",
                format: SeriesLabelsFormat,
                font: '10px Arial'
            }
        },
        series: BarSeriesDefinition,
        valueAxis: {
            labels: {
                visible: true,
                rotation: ValueLabelRotation,
                font: '10px Arial'
            }
        },
        categoryAxis: {
            field: CategoryAxisField,
            labels: {
                rotation: CategoryLabelRotation,
                font: '10px Arial'
            }
        },
        tooltip: {
            visible: true,
            font: '12px Arial'
        }
    });
}


Here is the HTML /script thats used to call the above function, passing in the arguments:
<div id="dshitem1_1_divChart" class="Chart" style="z-index:8999;">1</div>
    <script>function DashboardCaller1(chartid, maximized) {
var BarSeries = [{
    field: "SeriesValue",
    name: "SeriesValue"
}];
 
createGenericBarChart(chartid, '2626_1_Bar - Airline Contract AC -SUN_.json?id=59bd4fee-511f-480b-bbee-88c3051b800d', 'column', 'Bar - Airline Contract AC -SUN', false, 'top', -45, 0, false, false,
'{0:N2}', '{0:N2}', 'CategoryText', BarSeries, maximized);
}
 
setTimeout(function() {
DashboardCaller1('#dshitem1_1_divChart', false);
}, 1 * DELAY);
 
</script>
 
</div>
Alexander Valchev
Telerik team
 answered on 09 Feb 2012
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?