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


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.

| improve this answer | |

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?

| improve this answer | |
  • 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) – Agamand The True Nov 11 '11 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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