Telerik Forums
Kendo UI for jQuery Forum
5 answers
292 views
Hello,

I am having problem when trying to use KendoUI's TreeView inside PanelBar. It seems that the panelBar is changing all ul/li child nodes, even those that should not have anything to do with the Panel. e.g. panel < ul < li < div < div < ul < li.

It's adding k-item, k-state-default to all child li nodes.

I'm using version v2011.3.1129

Is there any workaround to this?

Alexey
Top achievements
Rank 1
 answered on 06 Mar 2012
3 answers
486 views
is there a way to inject custom css into editor?
for example i want to change <p> margin and padding inside editor
Alex Gyoshev
Telerik team
 answered on 06 Mar 2012
1 answer
178 views
Hello,

I have a hierarchy grid set up. The outer grid has a dozen or so columns while the inner grid only has 3 columns. I have specified specific widths for all the columns however the columns in the inner grid do not respect the width values set and expand to the full width of the outer grid.

So instead of looking like this:

..|.A.....|.B.....|.C.....|.D.....|.E.....|.F.....|.G.....|.H.....|.I.....|.J.....|.K.....|.L..
..>....|.1.....|.2.....|.3...

It looks like this:

..|.A.....|.B.....|.C.....|.D.....|.E.....|.F.....|.G.....|.H.....|.I.....|.J.....|.K.....|.L..
..>....|.1................................|.2........................|.3..............................

I don't really care if the inner grid itself is streatched to the full width of the outer grid but the columns need to respect the width I set so it's easily readable.
Justin
Top achievements
Rank 1
 answered on 05 Mar 2012
1 answer
78 views
I'm attempting to chain together two combobox controls. The problem I'm having is:

Box 1 change event enables box 2.
Box 2 is disabled on start by default.
If I select an item in box 2, then go back and change the box 1 value, box 2 just sits there and will not do anything. I can't even open the list.
I need to always sync the values because box 2 is reliant upon the selection in box 1.

Is there something I am doing wrong.

http://pastie.org/3506645 



Georgi Krustev
Telerik team
 answered on 05 Mar 2012
0 answers
147 views
Hi,
Does the Kendo datasource support the following JSON format?

var people = [
                        {
                            "Person": { Name: "Person 1"},
                            "Person": { Name : "Person 2"}
                        }
                    ];

My current schema only loads the last record from the data source when connected to a grid. I am using the Q1'12 beta.

$("#grid").kendoGrid({
                        dataSource: {
                          data: people,
                            schema: {                                
                                type : "json",    
                                model: {                                    
                                    fields: {
                                        Name: { type: "string" }
                                    }
                                }
                            }                            
                        },
                        height: 250,
                       
                        columns: [
                            {
                                field: "Person.Name",
                                title: "Name"
                            }
                            
                        ]
                    });


Thanks.
Morten
OM
Top achievements
Rank 1
 asked on 05 Mar 2012
2 answers
531 views
Hi there,

I am trying to map a field defined in my datasource schema to the unique Model instance id property. However, after I do this the field in the model no longer displays correctly when the datasource is bound to a list. The value for "PONumber" field is always 'Undefined' after this mapping is defined. If I comment out the line which maps the "PONumber" field to id, the expected value from the "PONumber" field shows up in the output. However, because there is no id mapping which uniquely identifies the Model instance calls like get(id) won't work.

[Edit: I am using 2012.1.229.beta]

Here is the code I'm using (see attachment for code and sample data file): 
<!DOCTYPE html>
<html>
<head>
    <title>Repro</title>   
    <script src="js/jquery.min.js"></script>
    <script src="source/js/kendo.all.js"></script>
    <link href="source/styles/kendo.common.css" rel="stylesheet" />   
    <link href="source/styles/kendo.mobile.all.css" rel="stylesheet" />
</head>
<body>
    <div data-role="view" id="tabstrip-listview" data-init="initList" data-title="PO List" data-layout="tabstrip-layout">
        <ul id="po-listview"/>
    </div>
    <script>
        var app = new kendo.mobile.Application(document.body);
        var ds = new kendo.data.DataSource({
            transport: {
                read: "Data/POListTest.xml"
            },
            schema: {
                type: "xml",
                data: "/ItemInfoList/ItemInfo",               
                model: {
                    id: 'PONumber', // *** Commenting out this line fixes the problem ***
                    fields: { PONumber: "Item/PurchaseOrderHeader/POHdrPONumber/text()" }
                }
            }
        });
 
        function initList() {
            $("#po-listview").kendoMobileListView({ dataSource: ds, template: "${PONumber}" });
        };
 
    </script>
</body>
</html>

Any ideas what is happening here?
Richard H
Top achievements
Rank 1
 answered on 05 Mar 2012
0 answers
91 views
Hi everyone, I was wondering, is there a plan to implement some sort of "layout mode" property in the dropdown/combo config that would let you set if you want to use a list or a table. That way we could implement templates with TDs to define multiple columns.

I'd love to see that!

Cheers,
Andrés

Andrés
Top achievements
Rank 1
 asked on 05 Mar 2012
3 answers
644 views
Hi,
I need my pie chart to be 200px * 200px, so I set the parent div style accrodingly, and appended the width style at the end of the chart function call.Now my chart widget size looks fine, but the pie chart itself is very small (diameter is only 26px) compared to the chart area.The pie chart looks like a small colored bullet point in the middle of a white space.How can I make the pie chart visual bigger ?


<div id="chart" style="width:200px">
</div>

function createChart2() {
                $("#chart").kendoChart({
                 
                    theme: $(document).data("kendoSkin") || "default",
                    dataSource: {
                        type: "odata",
                        transport: {
                            read: {
                                url: "../../Services/WcfDataService1.svc/AllianceSummaryPartnershipMixes"
                            }
                        },
                        sort: {
                            field: "Name",
                            dir: "asc"
                        }
                    },
                    title: {
                        text: "Partnership Mix"
                    },
                    legend: {
                        position: "bottom",
                        margin: 0
                    },
                    seriesDefaults: {
                        type: "pie"
                    },
                    series: [{
                        field: "Value",
                        categoryField: "Name"
                    }],
                    tooltip: {
                        visible: true,
                        format: "{0:N0}"
                    },
                    chartArea: { margin: 0 },
                    plotArea: { margin: 0 }
                }).css({ height: "200px"});
            }
Bjarke
Top achievements
Rank 1
 answered on 05 Mar 2012
1 answer
66 views
Is it possible to insert a line in the editor or simulate a line? I know I could do it with an image like I do with the Silverlight RadRichTextBox, but is it possible to do this without having to use and image?
Dimo
Telerik team
 answered on 05 Mar 2012
1 answer
149 views
Hi all,

i'm a bit stuck with the crud functionality in Kendo UI's grid.

My code (see below) generates a populated grid and the neccessary buttons, but i dont seem to be 'binding' the 'save' button to the 'save' functionality in the php file. Can anyone maybe spot what i'm missing please?

Thanks!
Vauneen

dataSource = new kendo.data.DataSource({
                    transport: {
                        read: "data/users.php",
                        create: {
                            url: "data/user_add.php",
                            type: "POST"
                        },
                        save: {
                            url: "data/user_edit.php",
                            type: "POST"
                        } ,
                        parameterMap: function(options, operation) {
                            if (operation !== "read" && options.models) {
                                return {models: kendo.stringify(options.models)};
                            }
                        }
                    },
                    schema: {
                        data: "data",
                        model: {
                            id: "ProductID",
                            fields: {
                                ExpiryDate : {  editable: true, type: "date"},
                                EmailAddress : {  editable: true, type: "email"},
                                FirstName : {  editable: true, type: "text"},
                                SecondName : {  editable: true, type: "text"}
                            }
                        }
                    }
                })
           
$("#grid").kendoGrid({
                dataSource: dataSource,
                columns: [{ field: "ID" }, { field: "ExpiryDate", title:"Expiry Date",  format: "{0:yyyy-MM-dd}" }, { field: "EmailAddress" }, { field: "FirstName" }, { field: "SecondName"    } ],
                editable: true,
                toolbar: ["create", "save", "cancel"],
                detailTemplate: kendo.template($("#template").html()),
                detailInit: detailInit
            });
           


Rosen
Telerik team
 answered on 05 Mar 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?