Telerik Forums
Kendo UI for jQuery Forum
1 answer
274 views
Hi,

I am using the Kendo DropDownList via the Asp.Net Mvc wrapper and binding it to a SelectList in my Model. If a SelectItem is empty (i.e. Text = "") then it displays with a height of (almost) zero making it appear invisible in the list. This behaviour is different from the Telerik Extensions for Asp.Net Mvc, which displays as I would expect - empty items at the same line height as non-empty items.

Does anyone know of a workaround or if/when this will be fixed?

many thanks.
Dimo
Telerik team
 answered on 13 Aug 2012
1 answer
87 views
hi,
I need to localize the grid
how can I do?

if I modify the js I lost the mod in the next update

thanks
Alexander Valchev
Telerik team
 answered on 13 Aug 2012
0 answers
198 views
Hi everyone.

I have a listview that is populated from a remote datasource. What I need to do is populate a second list with relevant data from the item selected from the first list.

I can do it by "re-populating"
 the first list but this gives me errors later one when selecting something from the second list.

Long story short, I have a list of customers which is populated from an external datasource. Each customer record has an array of items "nested" within their data record. eg: 

{
  "ID": 3,
  "Name": "Sarah Carlson",
  "Telephone": "(011) 123 4567",
  "Address": "1 Test ave",
  "Suburb": "Test",
  "City": "Testville",
  "Province": "Gauteng",
  "Country": "South Africa",
  "PostalCode": "0001",
  "DeliveryStatus": "Pending",
  "Packages": [
    {
      "ID": 1,
      "Name": "Package 1",
      "Status": "Pending"
    },
    {
      "ID": 2,
      "Name": "Package 2",
      "Status": "Pending"
    }
  ]
}

What I need to do is, when the customer is selected, display a new list with the customer's packages on it with a combobox and a button for each package allowing the package status to be changed.

Here's my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>Deliveries</title>
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.mobile.min.js"></script>
    <script src="js/console.js"></script>
    <link href="styles/kendo.common.min.css" rel="stylesheet" />
    <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
</head>
<body>
    <a href="Index.html">Back</a>
   <div data-role="view" id="listview-customers" data-init="showCustomerList" data-title="Customers">
        <ul id="customer-listview">
        </ul>
    </div>
    <div data-role="view" id="listview-packages" data-title="Packages">
        <ul id="package-listview">
        </ul>
    </div>
    <div data-role="layout" data-id="databinding">
        <header data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
            <a data-align="right" data-role="button" class="nav-button" href="Index.html">Home</a>
        </div>
    </header>
    </div>
    <script>
        var id;
        var packages;
        var packageDataSource = new kendo.data.DataSource({
            schema: {
                model: {
                    id: "ID",
                    fields: {
                        Name: { type: "string" },
                        Status: { type: "string" }
                    }
                }
            }
        });
 
        var dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    url: "http://localhost:8080/databases/shipping/docs",
                    dataType: "json",
                    data: {
                        q: "javascript"
                    }
                }
            },
            schema: {
                model: {
                    id: "id",
                    fields: {
                        Name: { type: "string" },
                        Telephone: { type: "string" },
                        Address: { type: "string" },
                        Suburb: { type: "string" },
                        City: { type: "string" },
                        Province: { type: "string" },
                        Country: { type: "string" },
                        PostalCode: { type: "string" },
                        DeliveryStatus: { type: "string" },
                        Packages: { type: "auto" }
                    }
                }
            }
        });
 
        function showCustomerList() {
            {
                $("#listview-customers").kendoMobileListView({
                    dataSource: dataSource,
                    template: kendo.template($("#customersTemplate").html()),
                    selectable: true,
                    click: function (e) {
                        packages = e.dataItem.Packages;
                        showPackageList();
                        //showButton();
                    }
 
                });
            }
        }
 
        function showPackageList() {
            for (var a = 0; a < packages.length; a++) {
                packageDataSource.add({
                    ID: packages[a].ID,
                    Name: packages[a].Name,
                    Status: packages[a].Status
                });
            }
            $("#listview-customers").kendoMobileListView({
                dataSource: packageDataSource,
                template: kendo.template($("#packagesTemplate").html())
            });
        }
 
        function saveChanges(e) {
            var button = e.button,
                item = packageDataSource.get(button.data("itemId"));
            console.log(item);           
        }
         
    </script>
    <script type="text/x-kendo-template" id="customersTemplate">       
        <h3 class="item-title">${Name}</h3>       
        <p class="item-info">Status: ${DeliveryStatus}</p>       
    </script>
    <script type="text/x-kendo-template" id="packagesTemplate">       
        <h3 class="item-title">${Name}</h3>
        <p class="item-info">Status: ${Status}</p>       
        <select data-role="combobox">
            <option value="Pending">Pending</option>
            <option value="Delivered">Delivered</option>
            <option value="Damaged">Damaged</option>
            <option value="Refused">Refused</option>
        </select>       
        <a data-role="button" data-item-id="#:id#" data-click="saveChanges" class="details-link">Save Changes</a>           
    </script>
</body>
</html>

I would really appreciate it if anyone could help me get this right???
Devon
Top achievements
Rank 1
 asked on 13 Aug 2012
2 answers
223 views
I'm want to reference https://cdn.kendostatic.com/2012.2.710/js/kendo.web.min.js (to prevent the "insecure content" warning messages) but the SSL certificate isn't right. Is this a known issue, and one that will be fixed, or do I need to host the Kendo files on my own servers?
Mark
Top achievements
Rank 1
 answered on 13 Aug 2012
0 answers
75 views
As per your tutorials u have used kendo.all.js
but i had downloaded kendo web components and i used following JS files

 <script src="jquery-1.7.1.js" type="text/javascript" ></script>
    
    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.web.min.js" type="text/javascript" ></script>
    
 <script type="text/javascript"  src="/kendoui.web.2012.2.710.open-source/source/js/kendo.core.js"></script>
   
   <script type="text/javascript"  src="/kendoui.web.2012.2.710.open-source/source/js/kendo.fx.js"></script>
   
    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.draganddrop.js" type="text/javascript"></script>

    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.resizable.js" type="text/javascript" ></script>

    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.splitter.js" type="text/javascript" ></script>

   

 <link href="/kendoui.web.2012.2.710.open-source/source/styles/kendo.common.css" rel="stylesheet" type="text/css"/>
    <link href="/kendoui.web.2012.2.710.open-source/source/styles/kendo.default.css" rel="stylesheet"  type="text/css"/>




but i did not got the result ?
May I know the reason and what is alternate solution for this please respond soon.
Thanks in advance
this is my jsp code


<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>


<html>
<head>
    <title></title>
    <script src="jquery-1.7.1.js" type="text/javascript" ></script>
    
    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.web.min.js" type="text/javascript" ></script>
    
 <script type="text/javascript"  src="/kendoui.web.2012.2.710.open-source/source/js/kendo.core.js"></script>
   
   <script type="text/javascript"  src="/kendoui.web.2012.2.710.open-source/source/js/kendo.fx.js"></script>
   
    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.draganddrop.js" type="text/javascript"></script>

    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.resizable.js" type="text/javascript" ></script>

    <script src="/kendoui.web.2012.2.710.open-source/source/js/kendo.splitter.js" type="text/javascript" ></script>

    <script src=""></script>


 <link href="/kendoui.web.2012.2.710.open-source/source/styles/kendo.common.css" rel="stylesheet" type="text/css"/>
    <link href="/kendoui.web.2012.2.710.open-source/source/styles/kendo.default.css" rel="stylesheet"  type="text/css"/>
</head>
<body>
    
        <div id="example" class="k-content">
            <div id="vertical">
                <div id="top-pane">
                    <div id="horizontal" style="height: 100%; width: 100%;">
                        <div id="left-pane">
                            <div class="pane-content">
                                <h3>Inner splitter / left pane</h3>
                                <p>Resizable and collapsible.</p>
                            </div>
                        </div>
                        <div id="center-pane">
                            <div class="pane-content">
                                <h3>Inner splitter / center pane</h3>
                                <p>Resizable only.</p>
                            </div>
                        </div>
                        <div id="right-pane">
                            <div class="pane-content">
                                <h3>Inner splitter / right pane</h3>
                                <p>Resizable and collapsible.</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="middle-pane">
                    <div class="pane-content">
                        <h3>Outer splitter / middle pane</h3>
                        <p>Resizable only.</p>
                    </div>
                </div>
                <div id="bottom-pane">
                    <div class="pane-content">
                        <h3>Outer splitter / bottom pane</h3>
                        <p>Non-resizable and non-collapsible.</p>
                    </div>
                </div>
            </div>

            <script>
            
                $(document).ready(function() {
                
                    $("#vertical").kendoSplitter({
                    
                        orientation: "vertical",
                        
                        panes:
                      
                        [
                            { collapsible: false },
                            
                            { collapsible: false, size: "100px" },
                            
                            { collapsible: false, resizable: false, size: "100px" }
                            
                        ]
                        
                    });

                    $("#horizontal").kendoSplitter({
                        panes: [
                            { collapsible: true, size: "220px" },
                            { collapsible: false },
                            { collapsible: true, size: "220px" }
                        ]
                    });
                });
            </script>

            <style scoped="scoped">
                #vertical {
                    height: 380px;
                    width: 700px;
                    margin: 0 auto;
                }
                #middle-pane {
                    background-color: rgba(60, 70, 80, 0.10);
                }
                #bottom-pane {
                    background-color: rgba(60, 70, 80, 0.15);
                }
                #left-pane {
                    background-color: rgba(60, 70, 80, 0.05);
                }
                #center-pane {
                    background-color: rgba(60, 70, 80, 0.05);
                }
                #right-pane {
                    background-color: rgba(60, 70, 80, 0.05);
                }
                .pane-content {
                    padding: 0 10px;
                }
            </style>
        </div>

</body>
</html>


sairam
Top achievements
Rank 1
 asked on 13 Aug 2012
1 answer
87 views
Hello,
Is it possible to allow expand row and show children grid (like in exmaple http://demos.kendoui.com/web/grid/hierarchy.html) only for a particular items? I.e. some of my rows does'nt have children items to display, so I don't need an ability to expand it. 
Nikolay Rusev
Telerik team
 answered on 13 Aug 2012
1 answer
182 views

Does the Kendo UI Grid support pinning one or more columns to the left side of the grid?
Nikolay Rusev
Telerik team
 answered on 13 Aug 2012
2 answers
3.9K+ views
I'm having trouble setting up the width of DatePicker. There's no way in Kendo API to set this on initialization. I tried in-line style with !important attribute, but it only limits the width of text box keeping the lengthy wrapper unchanged.

Is there a way around this?
Casey
Top achievements
Rank 1
 answered on 13 Aug 2012
0 answers
61 views
I've had no luck getting or setting the datePicker value using "value()" as the documentation states however using "val()" like standard jQuery seems to work fine.  Has anyone else had this problem?
Casey
Top achievements
Rank 1
 asked on 13 Aug 2012
4 answers
133 views
I have a couple modal windows, one has a grid with a list of grouped items and when a row is clicked another modal window appears overtop as a confirmation window with a cancel and continue button.  These work fine in IE, Firefox, and Chrome on the desktop but when opened from the Android browser or Chrome for Android there is a problem.  If I click on a row in the first window where a button will appear in the second "confirmation" window it clicks that button as if it was already there.  This causes the confirmation window to appear and then close as if I clicked a button.  I have attached a file that has a basic demo of the problem. Has anyone else seen such behavior and is there a fix?  I'm thinking that since it's working fine in all desktop browsers it must be touch related.

Thanks,
Casey
Casey
Top achievements
Rank 1
 answered on 13 Aug 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?