ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Dropdown showing Id and not Label

Open sanjayjaras opened this issue 11 years ago • 3 comments

Hi, I am new to ui-grid, I tried to implement editable grid, however when focus is not the column it's show Id instead of label. Please tell me what I am doing wrong. Thanks in advance. screenshot from 2015-01-31 04 02 58 2

sanjayjaras avatar Jan 30 '15 22:01 sanjayjaras

Check the tutorial more closely. It looks to me like you're missing the cellFilter.

PaulL1 avatar Jan 30 '15 22:01 PaulL1

Yes Paul you right I am missing cellFilter. Thanks for reply. Is it possible to provide cellFilterProvider dynamically as follows? displayController.filter('map' + property.name, function() { var genderHash = { 1 :'India', 2 :'Pakistan' }; return function(input) { if (!input) { return ''; } else { return genderHash[input]; } }; });

sanjayjaras avatar Jan 31 '15 16:01 sanjayjaras

Got the solution by writing service method for the same. Thanks.

sanjayjaras avatar Jan 31 '15 18:01 sanjayjaras