Telerik Forums
Kendo UI for jQuery Forum
4 answers
310 views
HI,

I am working on Stock chart, and i am trying to get current selected range from and to values in date format. I used selectEnd event to get those values. But i am getting from and to as number between 0 and 154. this is example response data from selectEnd event.

{
form  92
sender  object
to 138 }

I don't know what these numbers are representing, i am trying to get from and to as dates from last 3 days. Please help me in finding current selected start and end date, it is very important and urgent requirement to me.

thank you
Iliana Dyankova
Telerik team
 answered on 07 Mar 2013
1 answer
336 views
Hi,

How i can put modify the browse button sitting side by side with the submit button (same line). How i can change the browse button color, i tried but only work in IE 7. the colour not change in IE 8 or above.

I use the code from sample:
<form method="post" action='@Url.Action("Submit")' style="width:45%">
    <div>
        @(Html.Kendo().Upload()
            .Name("files")
        )
        <p>
            <input type="submit" value="Submit" class="k-button" />
        </p>
    </div>
</form>


Thank you


Please advise
Dimiter Madjarov
Telerik team
 answered on 07 Mar 2013
7 answers
162 views
Using pullToRefresh together with endlessScroll is causing the following headache:

  1. User uses endlessScroll, new data is loaded to the listView
  2. User refreshes by pullToRefresh
    (and this is set to only load the first five entries from the datasource)
  3. Now when attempting a new endlessScroll, the endlessScroll continues from where it was before (i.e. from entry 10 (skip=10)), instead of "restarting" (which would be entry 5 (skip=5)).
So how can I "reset" the endlessScroll when the user does a pullToRefresh?
$("#custom-listview2").kendoMobileListView({
       dataSource: datakilde_nyheter,
       template: $("#customListViewTemplate2").html(),
       endlessScroll: true,
       pullToRefresh: true,
       pullParameters: function(item) { //pass first data item of the ListView
               return {
                   since_id: item.id_str,
                   page: 1,
                   skip: 0
               };
           }
});


Alexander Valchev
Telerik team
 answered on 07 Mar 2013
1 answer
97 views
Hi,

I have some basic doubts related to kendo mobile in ASP.Net MVC 4. I know the way of rendering the master page in kendo mobile and MVC are different. 

Here is my sample code. Is this a correct way?


_Layout.Mobile.cshtml

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - My ASP.NET MVC Application</title>        
        <meta name="viewport" content="width=device-width" />

        <link href="~/Content/kendo.mobile.all.min.css" rel="stylesheet" />

        <script src="~/Scripts/jquery-1.7.1.js"></script>
        <script src="~/Scripts/kendo.all.min.js"></script>
       
            <script type="text/javascript">

                $(document).ready(function () {

                    var app = new kendo.mobile.Application(document.body,
                    {
                        transition: 'slide'
                    });                    

                });

            </script>

    </head>
    <body>
      
    <div data-role="view" data-layout="default">
    @RenderBody()
    </div>

            
   <section data-role="layout" data-id="default">
    <header data-role="header">
        <div data-role="navbar">My App</div>
    </header>

    <!--View content will render here-->
    <footer data-role="footer">
        <div data-role="tabstrip">
            <a data-icon="home" href="~/Home/Index">Home</a>
            <a data-icon="about" href="~/Home/About">About</a>
        </div>
    </footer>
</section>
      
    </body>
</html>


Index.Mobile.cshtml

@{
    ViewBag.Title = "Home Page";
     // This is done for avoiding re-rendering of the master page.. But still  Request.IsAjaxRequest() always false
     Layout = Request.IsAjaxRequest() ? null : "~/Views/Shared/_Layout.cshtml"       //It will take mobile layout based on the request
 }
    Mobile Version System
    <br />
     Refresh Time : @(DateTime.Now.ToString())

@{
    ViewBag.Title = "About";
}


About.Mobile.cshtml


@{
    ViewBag.Title = "Home Page";
     // This is done for avoiding re-rendering of the master page.. But still  Request.IsAjaxRequest() always false
     Layout = Request.IsAjaxRequest() ? null : "~/Views/Shared/_Layout.cshtml"       //It will take mobile layout based on the request
 }

About in Mobile 


Issues : -

I didn't found much information related to Kendo UI mobile and MVC 4 implementation
Is this the correct way of implementation of Kendo mobile in MVC 4. Is there anything needs to be changed in Layout page (_Layout.Mobile.cshtml)?


Petyo
Telerik team
 answered on 07 Mar 2013
1 answer
542 views
It seems like it should be simple to select all items in the multi-select list, is there an easy (built-in?) way to do this?
Georgi Krustev
Telerik team
 answered on 07 Mar 2013
3 answers
88 views
If the view does not start with an opening bracket, an exception is thrown. For example try the following.
var view = new kendo.View(" <p>hey ho</p>");
view.render("#app");
Please regard the space character in front of the "p" element.

Michael G. Schneider
Petyo
Telerik team
 answered on 07 Mar 2013
4 answers
787 views
Hello,

I am trying to dynamically create a Kendo Window but the resulting object always comes back undefined for some reason. I am trying to initialize the new window using $('<div />').appendTo(document.body) as the container. The window seems to get created correctly at first - it opens and loads the remote content inside (via Ajax), however, the returned object (container.data('kendoWindow')) is always undefined. Please take a look at the following jsFiddle and inspect the debug logs in the console:

http://jsfiddle.net/obry/2sthT/2/

Thank you
Alex Gyoshev
Telerik team
 answered on 07 Mar 2013
1 answer
97 views
Hi,

I am using multiple mvc3 web applications in a solution. I followed the steps from the kendo documentation and i was able to work with kendo on my startup project. When i add the same steps to the other projects, i get an error on the view saying htmlhelper.kendo not found. I have added the namespace correctly to the /Views/Web.config file, included the js and css flles references on the _layout.cshtml and also added a reference to the Kendo.Mvc.dll on my projects.

Is there anything i am missing out?

Thanks,
Saran
Saran
Top achievements
Rank 1
 answered on 06 Mar 2013
4 answers
470 views
Hello everyone,

I copied the demo grid source for the remote data, and when I click the add button and the popup form is filled out everything looks good.  If I click on the edit button or delete button the datasource is still calling the server with the create part of the transport and ignoring the update/destory.    How can I get this working?

dataSource = new kendo.data.DataSource({
                            transport: {
                                read:  {
                                    url: crudServiceBaseUrl,
                                    dataType: "jsonp"
                                },
                                update: {
                                    url: crudServiceBaseUrl + "?action=update",
                                    dataType: "jsonp",
                                    type: "POST"
                                },
                                destroy: {
                                    url: crudServiceBaseUrl + "?action=destroy",
                                    dataType: "jsonp"
                                },
                                create: {
                                    url: crudServiceBaseUrl + "?action=create",
                                    dataType: "jsonp",
                                    type: "POST"
                                },
                                parameterMap: function(options, operation) {
                                    if (operation !== "read" && options.models) {
                                        return {models: kendo.stringify(options.models)};
                                    }
                                }
                            },
                          etc....
                        });

 $("#grid").kendoGrid({
                        dataSource: dataSource,
                        pageable: true
etc....
});
Craig
Top achievements
Rank 1
 answered on 06 Mar 2013
1 answer
643 views
hi.
   I have implemented a message box using kendoui grid control. I want to use template to implement bold font for showing un-read message. Can anyone tell me what should i do.
Iliana Dyankova
Telerik team
 answered on 06 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?