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

ui grid custom cell select - not available #7

Open
JyotiBannigidad opened this issue May 4, 2020 · 0 comments
Open

ui grid custom cell select - not available #7

JyotiBannigidad opened this issue May 4, 2020 · 0 comments

Comments

@JyotiBannigidad
Copy link

Hi Team,

I am trying to use the custom cell select in my ui-grid. The OP and OrdType columns should be read-only at all levels, and row wise read-only is set based on certain value in the isActive column.

In grid.ascx page,
<script src="scripts/angular.js" ></script>
<script src="scripts/ui-grid.js" ></script>
<script src="scripts/custom-cell-select.js" ></script>

<link rel="stylesheet" href="styles/custom-cell-select.css" />

<div id="lineItemGrid" ui-grid="gridOptions" ui-grid-pinning ui-grid-edit ui-grid-row-edit ui-grid-cellnav ui-grid-custom-cell-select class="ui-grid-selectable" ></div>

in app.js file,
var userApp = angular.module("dmsWorkItemApp", ['ngTouch', 'ui.grid', 'ui.grid.edit', 'ui.grid.cellNav', 'ui.grid.rowEdit', 'ui.grid.resizeColumns', 'ui.grid.exporter', 'ui.grid.selection', 'ui.grid.saveState', 'ui.grid.resizeColumns', 'ui.grid.moveColumns', 'ui.grid.grouping', 'ui.grid.pagination', 'ui.grid.validate', 'ui.bootstrap', 'ui.grid.custom.cell.select'])

columnDefs: [ { name: 'SL#', field: 'SL', enableCellEdit: true, }, { name: 'OP', field: 'OP', enableCellEdit: false, cellClass: 'nonEditable', allowCellFocus: false }, { name: 'PO', field: 'PO', enableCellEdit: true }, { name: 'OrdType', field: 'OrdType', enableCellEdit: false, cellClass: 'nonEditable'}, { name: 'IsActive', field: 'isActive', enableCellEdit: true } ],

Error: [$injector:modulerr] Failed to instantiate module ui.grid.custom.cell.select due to:
Error: [$injector:nomod] Module 'ui.grid.custom.cell.select' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

The sample has been created in the below plunker.
https://plnkr.co/edit/qzQubDaJjbO5s1Gh?open=lib%2Fscript.js&deferRun=1

Could anyone please suggest how to use custom cell select in this case? Thanks in advance.

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

1 participant