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

fixedGroupTemplate not working on dropdownlist #793

Open
Xenope opened this issue Apr 4, 2019 · 4 comments
Open

fixedGroupTemplate not working on dropdownlist #793

Xenope opened this issue Apr 4, 2019 · 4 comments

Comments

@Xenope
Copy link

Xenope commented Apr 4, 2019

As you can see on the gist below the fixedGroupTemplate does not handle the binding :

https://gist.run/?id=2f63f1cf51d7965775e6c73a331f4baf

We should have the country displayed instead of ${Country}.

@arnederuwe
Copy link
Contributor

there is a hook kendo calls each time a template is used. Unfortunately, this hook isn't used consistently across kendo. Therefore, sometimes we cannot hook the aurelia templating engine to the kendo controls.
It seems this is such a case, you can circumvent this by telling the bridge not to use aurelia templates and use the kendo templating system instead:
https://gist.run/?id=900b2316f17327489a9a582b3d119cbd

@arnederuwe arnederuwe reopened this Apr 5, 2019
@Xenope
Copy link
Author

Xenope commented Apr 8, 2019

In my case I'm binding the fixedGroupTemplate in the viewModel like that :

if (kFixedGroupHeaderTemplate != null) { this.akComponent.kFixedGroupTemplate = function() { return kFixedGroupHeaderTemplate; }; }

and not via the html tag, how can I make the workaround to work like you did?

@arnederuwe
Copy link
Contributor

It should work the same when you assign a string to kFixedGroupHeaderTemplate. You will have to refresh the dropdownlist when you dynamically change the template after the component is rendered though

@Xenope
Copy link
Author

Xenope commented Apr 9, 2019

Ok , but where should I put this "kendo-template" flag to true, i'm not using the <ak-template> tag

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