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

Search widget: renderCell being called multiple times #26

Closed
carrbrpoa opened this issue Aug 20, 2015 · 1 comment
Closed

Search widget: renderCell being called multiple times #26

carrbrpoa opened this issue Aug 20, 2015 · 1 comment

Comments

@carrbrpoa
Copy link
Contributor

I'm implementing a renderCell function in a gridOption's column definition like this:

gridOptions : {
             columns : [
                   {
                        id : 'Documents',
                        field : 'EU',
                        label : 'Exp. Uni.',
                        width : 100,
                        sortable : false,
                        exportable : true,
                        renderCell : function(object, value, node) {
                            request("http://.../webservices/documents/123456789").then(function(data) {
                                // do something with handled data
                                node.innerHTML = '<i class=\'fa fa-search\' style=\'margin-left:8px;\'></i>';
                            }, function(err) {
                                // handle an error condition
                            });
                        }
                    }
(...)

...and I noticed that renderCell is being called three times, even with 1 row of result. Consequently, my request is being made three times too. Any ideas about how to overcome this?

PS: I'm not sure if the issue is related with this widget (Search).

@tmcgee
Copy link
Owner

tmcgee commented Aug 31, 2015

Closing this issue because it was addressed in the cmv issue: cmv/cmv-app#452

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

2 participants