Telerik Forums
Kendo UI for jQuery Forum
1 answer
65 views
One of the greatest features of jQuery UI is the ability to create a skin, download it and try it out. Later you can come back and continue with the custom skin you created. This is a big deal and if this could be added to the Theme Builder it would be greatly appreciated. While it would be cool if Kendo UI would run off jQuery UI themes that is not a deal breaker. I am sure working with our designers this will become a big issue without this ability over and over. If you guys could add this ability the designers will help us sell Kendo UI vs having to sell the desingers and the clients over and over.
Alex Gyoshev
Telerik team
 answered on 22 Feb 2012
0 answers
73 views
Combobox has only one item at the beginning. When it is updated dynamically, it has about 50 items and the scrollbar doesn`t show up.

var combobox = $("#input").data("kendoComboBox");
combobox.dataSource.data(ObjList); //now about 50 items
combobox.dataSource.query();
combobox.height = 200;
combobox.refresh();

Browser mode: IE8 compatibility
Document mode: IE8 standarts

Any suggestions to fix it?
Thank you.
Ozge
Top achievements
Rank 1
 asked on 22 Feb 2012
0 answers
31 views
why kendoui.mobile.2012.1.124.beta example no sliding effect?为什么剑道移动的demo下载好后,没有滑动效果
Zw
Top achievements
Rank 1
 asked on 22 Feb 2012
1 answer
164 views
Am am trying to use splitter.ajaxRequest when an item from a grid of item(s) is selected.

Item is selected and splitter.ajaxRequest updates the specified pane loads correctly.  I would like the pane to reload using splitter.ajaxRequest when the selected item changes.

I get the error "Cannot call method 'ajaxRequest' of undefined"
change: function(e) {
    var row = this.select();
    var id = row.data("id");
    var splitter = $("#mySplitter").data("kendoSplitter");
    splitter.ajaxRequest("#pane1", "?p=user", { id: id });
     
}

Thanks for the help.


Shawn
Top achievements
Rank 1
 answered on 22 Feb 2012
4 answers
113 views
the results don't show up at all in IE7 and 8.  Only flashes for a moment then disappears.

Here's some code:

  <input id="SearchBox" style="width525px;" />
                
                   <style scoped>   
                    .k-autocomplete {
                        vertical-alignmiddle;
                    }
                   </style>


    $("#SearchBox").kendoAutoComplete({
        minLength2,
        dataTextField"VenueName",
        dataSource: {
            type"json",
            severFilteringtrue,
            serverPagingtrue,
            transport: {
                read"Services/SomeService.svc/GetBusinessVenues",
                parameterMapfunction () {
                    return { venueName$('#SearchBox').val(), reviewStatusId'1' };
                }
            }
        }
    });
1zias01
Top achievements
Rank 2
 answered on 22 Feb 2012
1 answer
379 views
Could you please provide the code for finding the selected button in a button group. 

The documentation says there is a method called current() that will "Get the currently selected Button" and that it returns a jQueryObject of the selected button.

I use:
var buttongroup = $("#buttonGroup").data("kendoMobileButtonGroup")

and then I'm trying to use

buttongroup.current() 

which does indeed return a jQueryObject, but it looks like the buttongroup and not the selected button. I've used firebug and been all over the return object from buttongroup.current() and can't find a thing that helps me with what is selected.

I'm sure it's something stupid.

Thanks - Shawn
Shawn R.
Top achievements
Rank 1
 answered on 22 Feb 2012
1 answer
112 views
EDIT: draggable gint should be draggable hint.

I have a series of DIVs that contain an image + text + some other stuff. Each of these DIVs have the ID "item_" followed by a number.

To make these draggable, I loop through how many DIVs and do the following:
for (var i = 0; i < $('.titleData').length; i++) {
$("#item_" + i).kendoDraggable({
hint: function () {
return $("#item_" + i + ' img').clone();
}
});
}

Problem is, no drag image is shown. If say I have 5 items, "i" in the above loop is always equal to the last item + 1 when debugging (when an item drag starts). No image is shown, not even the square with red X in IE.

If I give it a specifc name (bogus path gives the red X) or do something like below, it works but it is not what I'm after.
return $('<img src="' + getRootDomain() + '/images/slicks/' + $("#titem_" + i).attr('data-sku') + '.jpg"></img>')

How would I do it so EACH item has its OWN image and don't all have the same?
Gabriel
Top achievements
Rank 1
 answered on 22 Feb 2012
0 answers
90 views

Given the following configuration:


$("#number").kendoNumericTextBox({
    format: "#",
    decimals: 0,
    min: 10,
    max: 25,
    step: 10
  });


Clicking the increment gives values of 10, 20, 25. I was expecting the input to honor the step value and allow a maximum value of 20. Would it make sense for the widget to honor the step value at all times? Or would it make sense to honor max value on manual input and step value on increment click?

Edit: Wow, do I feel stupid.   There is no "step" method for this widget.  I somehow left the step value in from my old widget configuration.  DOH!!   However, now that I realize that this widget does not have a step configuration option, it's unfortunate.  Also, I see no way to modify the min and max values after initialization. I'll go vote for those features in Kendo Voice.

Marty
Top achievements
Rank 1
 asked on 21 Feb 2012
1 answer
161 views
Problem internet explorer tab in the title concerns me a width of 100%:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Interfaz</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
<script src="js/kendo.all.min.js" type="text/javascript"></script>
<link href="Styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="Styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
<link href="Styles/Site_Master.css" rel="stylesheet" type="text/css" />
<style>
.close {
background-image:url('images/close1.png');
background-repeat: no-repeat;
width:16px;
height:16px;
float:right;
}
.close:hover  {
background-image:url('images/close2.png');
background-repeat: no-repeat;
cursor:pointer;
width:16px;
height:16px;
float:right;
}
</style>
</head>
<body>
<meta charset="utf-8">


<button class="k-button" id="btnagregar">Agregar</button>
</br>


            <div id="tabstrip">
                <ul>
                    <li class="k-state-active">
DashBoard
                    </li>
                </ul>
            </div>

            <script>
 
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g,"");
}
                $(document).ready(function() {
$("#menu").kendoMenu({select:  function (e) {
alert($(e.item).children(".k-link").text().trim());
}});

$("#btnagregar").click(function (){
open_tab ("Opcion 15", "conten3.html", "prioridad.png");
});
                });


function open_tab (Opcion, Url, Icono) {
tabStrip.append({
                                    text: Opcion  + "&nbsp;&nbsp;<div class='close' src='images/close1.png' title='Close Tab'  onclick='tabStrip.remove($(this).closest(\"li\"))'/>",
// imageUrl: "images/" + Icono,
contentUrl: Url,
encoded: false
});
}


                var tabStrip = $("#tabstrip").kendoTabStrip({contentUrls: ['DashBoard.html']}).css({ marginRight: "0px;", width:"100%" }).data("kendoTabStrip");


            </script>
        
</body>
</html>

Dimo
Telerik team
 answered on 21 Feb 2012
5 answers
399 views
I start my app with a listview of several states that have links like this:
example:   <li><a href="#two?st=AZ">Arizona</a><li>

My second view (or page) should be populating my div id's for:
<div id="title"></div>
<div id="img"></div>

with this ajax code:

function getUrlVars() {<br>
    var vars = [], hash;<br>
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');<br>
    for(var i = 0; i < hashes.length; i++)<br>
    {<br>
        hash = hashes[i].split('=');<br>
        vars.push(hash[0]);<br>
        vars[hash[0]] = hash[1];<br>
    }<br>
    return vars;<br>
}    <br>
<br>
var st = getUrlVars()["st"];<br>
<br>
<br>
$(document).ready(function(){<br>
  $.ajax({<br>
       method: 'GET',<br>
       dataType: 'jsonp',<br>
       success: function(data){<br>
       $.each(data, function(){<br>
              $('#title').text(this.stname);<br>
              $('#img').attr('src', 'images/states/lrg/' + this.img);<br>
              })        <br>
        }        <br>
   });<br>
});


It will populate the view if I click refresh on the browser, but how do I get this done without having to do a physical refresh each time?

Thanks,
Pete
Georgi Krustev
Telerik team
 answered on 21 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?