Telerik Forums
Kendo UI for jQuery Forum
2 answers
244 views
What I am trying to accomplish is a listview where each item is horizontally scrollable to another template item specifically an input field and a button. Is there any way to accomplish this? I have tried creating a listview with a template that contains a touch element and using the swipe event to update the template for that individual item but there appears to be no way on a mobile device to update an individual list items template. Another way I tried to do accomplish this was by making each listview item a scrollview but the problem there is the template for the scrollview has to be uniform and can not vary between pages. Any help would be much appreciated.

Thanks.
Ryan
Petyo
Telerik team
 answered on 29 Jul 2013
3 answers
652 views
If i populate list inside drawer through viewmodel then the drawer has some strange behavior (it close then it opens and again it close):
but if I do it with the static li items than it works perfectly.


the viewmoldel, drawer layout and templateItem

define(function () {
    return {
        viewModel: {
            routes: [
                { url: '#about-view', name: 'Menu' },
                { url: '#customer-view', name: 'Customer' },
                { url: '#fivatCategory-view', name: 'Fi Vat Category' }]
        }
    };
});
    <script id="menu-list-template" type="text/x-kendo-template">        
        <li data-icon="inbox"><a href="${url}" data-transition="none">${name}</a></li>
    </script>

<div data-role="drawer" id="my-drawer" data-model="app.menuView.viewModel" style="width: 270px" data-title="Menu" data-views="['about-view','customer-view', 'fivatCategory-view']">
        <header data-role="header">
            <div data-role="navbar">
                <span data-role="view-title"></span>
            </div>
        </header>
        <ul data-role="listview" data-type="group">
            <li>Navigation
                <ul data-bind="source: routes" data-template="menu-list-template"> <!-- when this is bound through viewmodel  --!>
                </ul>

            </li>
            <li>Einstellungen
            <ul>
                <li data-icon="spam"><a href="#drawer-spam" data-transition="none">Spam</a></li>
                <li data-icon="spam"><a href="#fivatCategory-view" data-transition="none">Fi VAT 2nd Try</a></li>
                <li>Leistungen</li>
            </ul>
            </li>
            <li>Account
            <ul>
                <li data-icon="settings">Logging</li>
                <li data-icon="off">Log Out</li>
            </ul>
            </li>
        </ul>
    </div> 
Petyo
Telerik team
 answered on 29 Jul 2013
0 answers
659 views

The Kendo UI Team has identified JavaScript problems in all Kendo UI  Q2 2013 distributions that were available for download from our website during the period commencing on Friday, July 26th and ending early on Monday, July 29th. These "broken" builds have been identified as being responsible for the following JavaScript errors:

  • Unable to get property jQuery of undefined or null reference
  • Invalid regular expressions: missing /
  • Expected '/'

All "broken" Kendo UI builds have since been corrected. 

So, if you downloaded a trial or commercial version during this specific time period, we recommend that you use the Telerik Control Panel to update these installed versions to one that is currently available. You can reference this blog post for insights on using the Telerik Control Panel to update, remove or install versions of Kendo UI: http://blogs.telerik.com/supportdepartment/posts/13-05-24/optimizing-use-of-the-telerik-control-panel

Alternatively, if you prefer to work with the Kendo UI Windows installers, you can uninstall the Kendo UI version and then perform a fresh install using the currently available installer package.

You can also download and use any of the currently available zip files.

We recommend that you clear your browser cache to ensure that the newest version of the files will be referenced in your application.

Please accept our sincere apology for any inconveniences that these faulty builds may have caused you.

Kendo UI
Top achievements
Rank 1
 asked on 29 Jul 2013
1 answer
408 views
I have a situation where I need to pass a message to be displayed along with the data for a grid.  I am attempting to do this in the _Read action (ajax).  I tried to place the message in ModelState, however, when I processed the error and pulled out the message, the grid did not bind the data that was sent.  Is there a way to pass additional data down to the client similar to passing additional data up to the client?

I did have a solution, where I set a property value on the first row and the client checked for that value and put up a message, but that only worked when there were results available to display - I may not send any data back (empty result set).

Thanks.




Petur Subev
Telerik team
 answered on 29 Jul 2013
1 answer
435 views
I try to navigate to a different route URL with the KendoUI router, but I get the infamous "Cannot read property length of undefined" error. This is a detail view ("/Person/Detail/8765") and if I do enter the URL manually in the browser, I get there without problem. I call the navigate on the schema callback of the Create page like this : 
var createViewModel = kendo.observable({
    representant: null,
    candidatValidated: false,
    updateRepresentantSource: new kendo.data.DataSource({
        transport: {
            read: {
                url: "/Person/Create",
                contentType: "application/json",
                type: "POST"
            },
            parameterMap: function () {return kendo.stringify(createViewModel.person);}
        },
        schema: {
            data: function (data) {
                createViewModel.set("person", null);
                router.router.navigate("/Person/Detail/" + data.personId, false);
            }
    }
    }),
The data is defined and personId too when I reach the breackpoint. The error occur afterward.Please note that we are using require-jquery.js to manage our script loading and the stack trace shows that it passes in a few methods in it.
Petyo
Telerik team
 answered on 29 Jul 2013
1 answer
59 views
Hello,

I have a link in a popOver that I'd like to use to change the application's view instead of the view inside the popover.  How should I code the link to get it to target the parent view?

Thank you 
Petyo
Telerik team
 answered on 29 Jul 2013
3 answers
260 views
Hello all,
     I have created list view  with data source consists of list of items..Suppose there are total 7 items in list.I want to display inside list view like "Item 1 of 7 , Item 2 of 7 and so on.."
So suggest the way to carry out this task...
Petyo
Telerik team
 answered on 29 Jul 2013
3 answers
361 views
I am trying to disable the bounce effect on a list/scroll view how can i accomplish this for single view.
Petyo
Telerik team
 answered on 29 Jul 2013
1 answer
85 views
I am converting an exisitng MVC web site and would rather not change much in the backend.

The code generated Tooltip information like this:
  
<a class="icon-help" data-popup="<img data-relpath='Content/images/AccountExample.jpg' class='pathFix' />" href="#">
     <img src="../../content/images/skin/bg/icon-help.png">
</a>
Notice that the content of the tooltip is in the "data-popup" attribute.

Is there a way to tell the Kendo ToolTip to use the data-popup from the <a> as the content for all <a> on a page?








Dimo
Telerik team
 answered on 29 Jul 2013
1 answer
282 views
In my Tool Tip Target I specify if the type is an image or not:

<a  data-type="image" data-popup="AccountExample.jpg" href="#" data-role="tooltip">
Blah Blah
</a>

In my ToolTip template I need to show the image if data-type="image" otherwise just the text in data-popup.

The problem is that the tool tip is always empty. If I just replace the entire template with #=target.data('popup')# the text appears so I know the tool tip is working.
<script id="pop-template" type="text/x-kendo-template">
    #if(target.data('type')=='image'){#
       <img src='@Url.Content("~/Content/images/")#=target.data('popup')#'>
    #}else{#
       #=target.data('popup')#
    #}#
</script>

Dimo
Telerik team
 answered on 29 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?