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

Using TemplateCompliler outside of KendoBridge #792

Open
nampord opened this issue Mar 29, 2019 · 1 comment
Open

Using TemplateCompliler outside of KendoBridge #792

nampord opened this issue Mar 29, 2019 · 1 comment

Comments

@nampord
Copy link

nampord commented Mar 29, 2019

Hi

is there a way to use the TemplateCompiler "standalone", without using the full kendo-bridge?
I have my kendo controls setup with jquery and don't want to re-write it all to use the kendo-brigde, but I definitely would prefer to use aurelia syntax for the templates, especially the ability to do event binding like click.delegate="..."

Could somebody point me in the right direction ?

thanks

@JeroenVinke
Copy link
Member

I don't see why not. I think you need to inject it into your own view-model that uses the Kendo control. The next challenge would be to get the aurelia template as a string, for which you can use the template class. Then you need to set the template on the config object that you pass to kendo, e.g

rowTemplate: () => "<!-- aurelia template here -->"

Note, the function callback causes Kendo not to use its own templating system. When you use Kendo and Aurelia's templating syntax the Kendo templating system breaks.

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