Telerik Forums
Kendo UI for jQuery Forum
1 answer
56 views
I am running the sample http://demos.kendoui.com/web/datepicker/index.html with IE 9.  I've noticed the rendering issue shown in the attached picture with all themes except Metro.

Note that I'm seeing this on IE 9 in standard mode.

Gerry
Georgi Krustev
Telerik team
 answered on 16 Jul 2012
1 answer
106 views
In the native SplitView, when you rotate the IPad to Portrait, the Left panel is hidden, and a button it added to the top left.  When this is selected the Left panel displays as a popup.

When I am testing the KendoUI Mobile demo for SplitView, it stays visible on Portrait rotation, and shrinks the width of the right panel.

Is this functionality existing or planned for the future?

Steve
Iliana Dyankova
Telerik team
 answered on 16 Jul 2012
1 answer
82 views
Hello,
I have a grid with enabled filters (server-side). The text has been changed a little from default and re-arranged, which caused "Contains" filter to show up first in the list, however, by default, it selects "equals" anyway - which is not a desired solution.
Is there any possibility to change this? Most users don't care to search for exact phrase, but rather partial text, hence we need to default to "Contains" if possible.
Any help would be greatly appreciated.
Thanks.
dccxz
Top achievements
Rank 1
 answered on 16 Jul 2012
1 answer
128 views
I am using some of the default rules of Kendo validator plugin. Everyting works as expected except for the url rule. It works only under Internet explorer. I tested it under Chrome, Mozilla Firefox and Opera and it does not trigger the error message when I enter an invalid url. Here is some sample code of my application:

<tr>
      <td><label for="firstEndSplashLink">First End Splash Link:</label></td>
      <td><input type="url" name="firstEndSplashLink" id="firstEndSplashLink"  data-bind = "value: FirstEndSplashLink" />
      <span class="k-invalid-msg" data-for="firstEndSplashLink"></span></td>
</tr>

Am I doing everything correct?
Rosen
Telerik team
 answered on 16 Jul 2012
1 answer
171 views

Hi

I have an MVC view that contains 2 datepicker controls, a button and a grid. When the form loads the grid is loaded with data from the server. If the customer then presses the submit button I would like the grid to be loaded again from the server. This does not happen despite the fact that the server method is being called. Could somebody explain what the problem might be?

The code is as follows:

<script type="text/javascript">
 
    $(document).ready(function () {
 
     //Refresh the grid if the customer presses the submit button
        $('#submit').click(function () {
            Execute(); // this does not refresh the grid
        });
 
        // create DatePicker from input HTML element
        $("#fromDate").kendoDatePicker();
        $("#toDate").kendoDatePicker();
 
        //Load the grid initially using the default date parameters
        Execute();  // this works
    });
 
    var fromDate;
    var toDate;
 
    function Execute()
    {
        fromDate = $("#fromDate")[0].value;
        toDate = $("#toDate")[0].value;
 
        var element = $("#grid").kendoGrid({
            dataSource: {
                type: "json",
                transport: {
                    read: { url: "Tests/Tests?fromDate=" + fromDate + "&toDate=" + toDate, dataType: "json"}
                },
                pageSize: 5,
                serverPaging: true,
                serverSorting: true
            },
            height: 450,
            sortable: true,
            pageable: true,
            detailTemplate: kendo.template($("#template").html()),
            detailInit: detailInit,
            dataBound: function () {
                this.expandRow(this.tbody.find("tr.k-master-row").first());
            },
            columns: [
                        {
                            field: "TestOne",
                            title: "Test One"
                        },
                        {
                            field: "TestTwo",
                            title: "Test Two"
                        }
                    ]
        });
    }
 
function detailInit(e) {
 
    var detailRow = e.detailRow;
    detailRow.find(".tabstrip").kendoTabStrip();
 
    detailRow.find(".details").kendoGrid({
        dataSource: {
            type: "json",
            serverPaging: true,
            pageSize: 5,
            transport: { read: { url: "Tests/TestDetail", dataType: "json"} },
        },
        height: 200,
        columns: [
            {
            field: "DisplayDate",
             title: "Date"
             },
            {
            field: "Type", title: "Text"
            }
        ]
    });
    
}
Dimo
Telerik team
 answered on 16 Jul 2012
0 answers
54 views
I've implemented the autocomplete component successfully to search against a list of website urls. However when I submit my form i want to submit the numerical id value of the site not the text value. Is this possible?

$("#maintSiteId").kendoAutoComplete({
                minLength: 3,
                dataTextField: "site_url",
                dataValueField: "site_id", // this doesn't seem to work and is depreciated?
                filter: "contains",
                height: 320,
                dataSource: {
                    pageSize: 20,
                    transport: {
                        read: {
                            url: "/Sites/DataJsonSites.cshtml",
                            dataType: "json",
                            type: "GET"
                        },
                        parameterMap: function(options) {
                            return $.extend(options, {
                                id: '',
                                title: $("#maintSiteId").data("kendoAutoComplete").value()
                            });
                        }
                },
                placeholder: "Select site...",
                separator: ", ",
                suggest: true
                }
            });

Input field contained within standard <form>
<input class="span6" id="maintSiteId" name="maintSiteId" style="width: 320px; margin-left: 0;"/>

Sample JSON data being used;
[{"site_id":1,"site_url":"www.mysite1.com","site_name":"my site 1"},{"site_id":2,"site_url":"www.mysite2.com","site_name":"my site 2"}] 
Martijn
Top achievements
Rank 1
 asked on 16 Jul 2012
2 answers
232 views
Hello,

I am considering moving to KendoUI (currently using 2010 Q2 ASP.NET Ajax, need to upgrade in any event).  

I'm wondering if it is possible to render the filters for a KendoUI grid similarly to the ASP.NET Ajax grid, that has filter textboxes (by default) when filtering is turned on.  Our users love the ability to quickly enter text and hit enter to get a "Starts With" (using some javascript).  I cannot find an example, or documentation, on how to customize the default KendoUI filtering.

Also, important to a switch to KendoUI is the need for much improved documentation.  I know the product is much newer than the ASP.NET Ajax controls, but the current documentation for KendoUI widgets, including all of the options, is quite sparse.

Thank you, Jason
Jason
Top achievements
Rank 1
 answered on 16 Jul 2012
2 answers
235 views
I'm using MVVM and an Observable (called _alertModel) for a jQuery AJAX post.

$.ajax({
    url: 'REST/Alert',
    type: 'POST',
    data: _alertModel.toJSON(),
    timeout: 5000,
    dataType: 'json',

Passing the Observable without calling toJSON does not work.

If I use toJSON, primitives work fine but objects (Date and Array objects in particular) raise exceptions.

I've been working around these issues by copying object properties to temporary vars, replacing them with string representations for the AJAX call, restoring the objects after the call is initialized, i.e.

var date = _alertModel.IncidentDate;  
_alertModel.IncidentDate = (date.getMonth() + 1) + "/" + date.getDate() + '/' + date.getFullYear();  
    
$.ajax(...);  
    
_alertModel.IncidentDate = date;

This seems clumsy and I'm wondering if there is a better way.
Roland
Top achievements
Rank 1
 answered on 16 Jul 2012
3 answers
634 views
HI , 

I have a IDetail view as following , 

<div data-role="view" id="SessionDetails" data-transition="slide" data-layout="default" data-show="showDetailsView">
        <header data-role="header">
        <div data-role="navbar">
            <a data-role="backbutton" data-align="left">Back</a>
            <span data-role="view-title">Session</span>
        </div>
        </header>
 
 
        <div data-role="content">
        </div>
    </div>

On the click event of ListView Item I need to navigate to this view .. I am handling click event as following , 

$("#sessionsView").kendoMobileListView(
{
    template: "<strong>${Title }</strong><br/><a data-role=\"detailbutton\" data-style=\"detaildisclose\"></a>",
    endlessScroll: true,
    scrollTreshold: 30,
    dataSource: sessionData,
    click: sessionDetailsViewClick
});

and sessionDetailsViewClick function is written as following ,

var sessionDetailsViewClick = function (e) {
                 console.log(e.dataItem.Title);
                 console.log("Navigate to Detail View from here");
             }

I am successfully getting selected Title, I need to pass this as queryparamter to detail view while navigating. Any help would be much appreciated 

Thanks
Dhananjay Kumar
Iliana Dyankova
Telerik team
 answered on 16 Jul 2012
1 answer
329 views
The default font for charts, as far as I can tell from the documentation, is 12px Arial,Helvetica,sans-serif. I would like to change the default font family to Tahoma. I want this to hit everything from legends, titles, to labels.

Is there a way to do this? I can't see anything in the CSS that seems to reference this.

Thanks
Hristo Germanov
Telerik team
 answered on 16 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?