Hey,

i would really like to get this awesome modul working, but im new to drupal and lately run into issues with the stable 7.14 as well as with the 7.x dev version. The Slickgrid doesn`t show any content. I get this error in chrome webtools console:

Object [object Object] has no method 'on' slick.grid.js:558

 if (options.enableColumnReorder || m.sortable) {
          header
            .on('mouseenter', onMouseEnter)
Uncaught TypeError: Object [object Object] has no method 'on'
            .on('mouseleave', onMouseLeave);
        }  
           

see screenshot1.png for the display.

when i outcomment that block i get the content displayed in firefox but not in chrome v.24. but at least it loads the title of the content and some styling.

see screenshot 2.png

see firefox output.png , where the content is at least displayed. Still with some strange formatting, where the html gets put out.

When i now have a look in the chrome console i get a new error:

Uncaught Error: Cannot find stylesheet. slick.grid.js:935

 if (!stylesheet) {
          throw new Error("Cannot find stylesheet.");
Uncaught Error: Cannot find stylesheet.
        }

I`ve seen this summary: https://github.com/mleibman/SlickGrid/issues/223 but do not know how to apply that..
When i disable javascript and reenable, the content sometimes gets loaded but maybe only 1 out of 20 times. When i choose another format in the view/ page display the content gets loaded correctly.

rook2pawn commented 6 days ago
Temporary workaround is to load the slick.grid.css stylesheet before any javascript that may be injecting into the stylesheets object.

how can i do that? Would be great to get some help. and what does that Object [object Object] has no method 'on' do, is that a major problem to outcomment the block?

many thx!

CommentFileSizeAuthor
firefox output.png33.67 KBBleeb
screenshot2.png51.3 KBBleeb
screenshot1.png48.4 KBBleeb

Comments

Bleeb’s picture

In addition, i disabled single moduls on my page to see if their is a conflict with another library, now the content gets loaded but when i refresh the page via F5 its gone again.

jmagunia’s picture

I know this is kind of an old thread, but I ran into this problem as well.

The solution involves replacing Slickgrid code found in this comment:

https://github.com/mleibman/SlickGrid/issues/223#issuecomment-34407932

Other Slickgrid forks may have already taken done this.

I don't believe the original Slickgrid library is being maintained by mleibman.