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, 12 months ago.

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

    MattB
    Participant

    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.
    https://www.jseditor.io/?key=angular-jqxgrid-1

    Thanks for any assistance.
    MattB

    Disable grid in Angularjs #91743

    Hristo
    Participant

    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>
    (html)

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

    (js)

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.