Telerik Forums
Kendo UI for jQuery Forum
0 answers
87 views
Hello,

I'm creating a diagram using the Diagram component. I'm adding my nodes using the addShape and connect methods.

The problem is that my nodes aren't positioned correctly in the window, they're one on top of the other.

I've set the layout-type and layout-subtype properties, but they don't seem to work in my case. But, by using Hierarchicaldatasource with Diagram, these properties are taken into account and the diagram is displayed correctly.

Unfortunately, this doesn't suit me because I need to customize the connections between nodes (add labels), which is not possible using hierarchical data source.



So my question is whether it's possible to take advantage of the layout-type and layout-subtype properties when adding nodes manually?


Thanks in advance
VB
Top achievements
Rank 1
Veteran
Iron
 asked on 02 Aug 2023
0 answers
135 views
Do Hierarchial Data Sources & Templates work well together? Would it be possible to get an example of such a thing?
Kyle
Top achievements
Rank 1
 asked on 13 Aug 2012
0 answers
89 views
I do this now using the detailinit technique with the grid - but wondering how I might use this method to achieve something similar.
Kenneth
Top achievements
Rank 1
 asked on 17 Jul 2012
0 answers
166 views
Is this possible now with data source and is there sample how to do it:

schema: {
                        data: "data",
                        total: "count",
                        model: {
                            id: "Id",
                            fields: {
                                Id: { editable: false, nullable: true },
                                Naziv: { validation: { required: true} },
                                Child: [ 
                                                { Id: { editable: false, defaultValue: e.data.Id}}
                                         ]
                            }
                        }
                    },

Thanks.
Bojan
Top achievements
Rank 1
 asked on 26 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?