Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1 #2

Open
adriatic opened this issue Jul 26, 2017 · 4 comments
Open

Issue 1 #2

adriatic opened this issue Jul 26, 2017 · 4 comments

Comments

@adriatic
Copy link
Member

to be written by @JeroenVinke

@JeroenVinke
Copy link
Member

Category

missing API / templates / bug / other

Description of the problem

Cause

Solution

@JeroenVinke
Copy link
Member

Category

templates

Description of the problem

Aurelia's templating syntax is different from Kendo's own templating syntax. When we pass Aurelia templates to a Kendo control, Kendo will try and parse that template as if it's a Kendo template, causing in errors: http://dojo.telerik.com/oNOGe

Cause

Kendo's own templating system is always active

Solution

A property that we can set while initializing widgets, or a property on the kendo global that disables Kendo's own templating system entirely. Currently we pass templates as function callbacks (template: () => '${myAureliaTemplate') to the Kendo controls which disables Kendo's templating system for that one specific template. This is something Telerik built in for Handlebars support, but it feels like a hack.

It also prevents users from serializing the grid to JSON since functions are not serializable.

@JeroenVinke
Copy link
Member

JeroenVinke commented Jul 30, 2017

Category

missing API

Description of the problem

A very simplistic example of a missing API function is for the Kendo Button. When you initialize a Kendo Button you can specify an icon. But when the button has been created there is no way to change the icon, without having to destroy and recreate the button. This effectively prevents us from ever being able to two-way bind the icon property, as we really don't want to recreate controls whenever a single property changes

Cause

There is a missing API function to change the icon of a button

Solution

Add a function to change the icon of a button

@JeroenVinke
Copy link
Member

JeroenVinke commented Jul 30, 2017

Category

other

Description of the problem

In the destroy widgets manually document it states that in order to destroy a widget you need to empty out the div that the widget was initialized on. Which is fine for Grids that use a datasource because the data is in the datasource. But when the grid is initialized from HTML you don't really want to clear the HTML because you'll lose the data.

Cause

Sometimes you need to clear the div that a widget was initialized on, but sometimes you don't.

Solution

Kendo improves their destroy function to be more consistent (so we can reuse elements) or the bridge adds logic to always initialize widgets on new elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants