This is a migrated thread and some comments may be shown as answers.

Programmatically Enable or Disable Views

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 27 Jan 2014, 06:38 PM
We are re-writing a very large application in HTML5 and are using Kendo UI.

We've run into a bit of an issue trying to port programmatic restrictions based on user selection. As an example, we show the user a grid of items... and based on their selection within the grid - various components, entire views, or sub-sets of a view may be enabled or disabled.

The UI toolkit we used previously had an 'enabled' property on all visual elements - widgets, containers, etc. Setting enabled='false' on a widget would turn it grey and would prevent interaction. Setting enabled='false' on a container would cause it and all its children to turn grey and prevented interaction.

Some Kendo UI widgets have an 'enabled' property... but it's inconsistent. We've tried to work around this by tearing-down / re-creating views or crawling through a view and disabling its children; neither of these approaches are practical.

Is this capability something that is on the Kendo UI roadmap? And, in the meantime - do you have any suggestions or best practices that might help?

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 29 Jan 2014, 04:38 PM
Hi Rick,

I am afraid that such functionality is currently not supported by Kendo UI. As you correctly stated some of the components (mainly the inputs) can be disabled through the API, however the other widgets (like Grid, ListView) do not provide such functionality. I would suggest you to share your idea at Kendo UI Feedback portal, in this way the other users will be able to evaluate and for vote for it. If it turns out to be popular we will consider it for one of our next releases.

Meanwhile as a workaround I would suggest you to cover the components which you would like to be disabled with a <div> element that is styled to look like a cover/mask. This will disable the user interaction with the widget as well.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Rick
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or