jQuery UI Widgets Forums Grid Disable grid in Angularjs

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 7 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Disable grid in Angularjs #91717


    What is the correct way to disable a grid in Angularjs? I’ve tried:
    $scope.settings = {… disabled: $scope.disableGrid …} toggle $scope.disableGrid in code but that does not seem to work.
    I’ve also tried $scope.settings = { disabled: true/false } when I want to toggle and that works, but the source data clears.
    I’ve ended up with $scope.settings = { disabled: true/false, source: $scope.data }, rebinding the source to the scope data which seems incorrect.

    I’ve created a jsEditor project showing the problem.

    Thanks for any assistance.

    Disable grid in Angularjs #91743


    Hello MattB,

    Thank you for the interest to our Widget, we will investigate this.
    I would like to suggest you another approach:
    <jqx-grid jqx-settings='settings' jqx-disabled='disableGridAnotherWay'></jqx-grid>

    $scope.btnClick = function() {
    	$scope.disableGridAnotherWay = !$scope.disableGrid;


    Best Regards,
    Hristo Hristov

    jQWidgets team

    • This reply was modified 7 years, 3 months ago by  Hristo.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.