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

ListView throws exception when no template handler is supplied #7264

Closed
gyankov opened this issue Mar 17, 2023 · 2 comments
Closed

ListView throws exception when no template handler is supplied #7264

gyankov opened this issue Mar 17, 2023 · 2 comments

Comments

@gyankov
Copy link

gyankov commented Mar 17, 2023

Bug report

ListView throws exception when no template handler is supplied

Reproduction of the problem

Configure a ListView with template id and don't provide a template handler.

Current behavior

An exception is thrown.

Expected/desired behavior

No exception is thrown.

Workaround

Set a ClientTemplateHandler with a dummy value.

.ClientTemplateHandler("template")

Fix included in Latest Internal Build 2023.1.322

Environment

  • Kendo UI version: 2023.1.314
  • Browser: all
@gyankov gyankov self-assigned this Mar 17, 2023
@github-actions github-actions bot added the FP: Unplanned Sync status with associated Feedback Item label Mar 17, 2023
@github-actions github-actions bot added FP: Planned Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item labels Mar 20, 2023
@github-actions github-actions bot added FP: Completed Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Mar 21, 2023
@DoomerDGR8
Copy link

If there is a patch out already, then good, I'll wait for the new setup, but with the temporary fix, if .Scrollable() is added to the mix, the whole UI control doesn't show up the runtime. To make this work, I had to remove .Scrollable().

@gyankov
Copy link
Author

gyankov commented Mar 22, 2023

Hi @DoomerDGR8, please verify that you set the component's height.

.HtmlAttributes(new { style = "height:350px;" })

If no height is supplied with enabled scrolling, the component will shrink to 0px.

On a side note, we've removed the k-widget class from the element, if you previously used it as a selector to set the height, this might be causing the behavior.

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

No branches or pull requests

4 participants