I have a page with two links that will open two different SharePoint modal dialog. Each of this modal dialog contains a SPGridView data control with Allow Filtering set to True. My problem is that only one of the spgridview is working fine, the other will throw a javascript error. In FireBug the error is CAMOpt is not defined. After comparing both spgridview I've found out that the visibility of the filter image is set to hidden. Please refer to the image below

Filtering image is not visible

Filtering image is visible

How can I fix this thing. Really appreciate any help. Thanks

2 Answers 2


accordingly to error with CAMOpt - make sure that js file that defines the function is referenced in popup, it seems to be - MENU.debug.js or MENU.js to build the menu.

Also the difference in visible/hidden is in filter option that is displayed when you mouse over the column.


Sounds like an issue with the way that particular grid column is set up. What type of column is it and what it the datatype to which you are binding?

  • I don't think its about the column, because I have the same spgrdiview with the same column working fine on a normal page (not Modal Dialog) Commented Nov 11, 2011 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.