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

No CSR-enabled webparts found on the page #22

Closed
kamnevoleg opened this issue Dec 3, 2016 · 13 comments
Closed

No CSR-enabled webparts found on the page #22

kamnevoleg opened this issue Dec 3, 2016 · 13 comments

Comments

@kamnevoleg
Copy link

Hello!
I've trying to simply customize list view via JSLink. Its not working! I activated/deactivate the MDS feature and always the same thing, not working!
To call the jslink script on the webpart, I've linked to: ~site/siteassets/subject_template.js or ~sitecollection/siteassets/subject_template.js
I installed the Cisar Chrome Extension (trying install from google and zip-archive .) - but it's not working!
F12 on view, forms -> Cisar -> "No CSR-enabled webparts found on the page"

I've seen discussion here "#21" but but nothing helped.
What requirements on SP2013 on-premise must be met for Cisar? (production server:MDF is on, test server: MDF is off)
I checked on the production and on the test server - the same result.

Unfortunately the problem is possible in the SP2013, but visually it works, except JSLink or CSR.

Thank you in advance.

@andrei-markeev
Copy link
Owner

Hi,
First of all, are you sure you have CSR-enabled webparts on the page?
For example, new lists experience cannot be customized by CSR. Also Calendar lists are not supported.
In case of new lists experience, as far as I know where is no official way currently to customize them at all, so the only way is to switch back to classic SharePoint experience...

Best,
Andrei

@kamnevoleg
Copy link
Author

Of course, I checked on new task list, custom list, DisplayForm, EditForm, listview, homepage. I have tested 2 PCs, 2 SPS2013 and different Chrome profiles. Everywhere Cisar not recognizing the webparts and displays "No CSR-enabled webparts found on the page".

@Danny-Engelman
Copy link

You say Client Side Rendering is not working.

Cisar makes CSR development easier, it is not required for CSR development.

Without Cisar you can set JSLinks on WebParts, you can create JS files.

So before we go an a Cisar wild-goose chase (it works fine in my Online environment)
First do Client Side Rendering the manual way, and verify you don't get the concept wrong.

Create a simple JS file with only:

console.log('JSLink executed my CSR file');
And point a JSLink on a WebPart to it

If that works

you then open Cisar, and it should recognize the JSLink

Now, it could well be Andrei created a bug when fixing the latest WP1 issue,
it is a side project for him so don't expect him to test every old SP version

@andrei-markeev
Copy link
Owner

Hi,

I'm actually pretty confident it should work. I improved the way Cisar recognizes webparts several weeks ago, and been using it quite intensively over last weeks and haven't noticed any more issues with that.

I checked just now both on-prem installation of SP2013 and Office365 and Cisar is able to find CSR-enabled webparts without issues. I checked both list views and list forms.

Again - it will not work with new library/list experience or with Calendar lists, but otherwise should work fine.

Oleg, when you experience this issue, could you press Ctrl+Shift+I from Cisar - this will open second DevTools that can be used to debug the main DevTools window :) And check if there are some errors in the console in there?

Thanks,
Andrei

@kamnevoleg
Copy link
Author

On test custom list JSLink works ok, connected script on the web of the list by the way ~site/SiteAssets/TestColor.js

_1

After that, I open Cesar, then left panel constantly hangs waiting:

_2

When I press Ctrl+Shift+I from Cisar, nothing opens.

@andrei-markeev
Copy link
Owner

Ctrl+Shift+I is a standard Chrome functionality - it's not related to Cisar.
According to the docs, it seems that it only works when DevTools are undocked.

Please undock and try again.

What you should have after Ctrl+Shift+I is something like this:

image

@kamnevoleg
Copy link
Author

image

@andrei-markeev
Copy link
Owner

This is really mysterious.

Some checks that you still can try:

  • Do you have some sort of AdBlocker installed? Can you switch it off temporarily and try using Cisar again? (Cisar doesn't load any ads or any external URLs at all, but maybe there was some false-positive still).
  • Maybe you have some other extensions installed on both computers where you tried Cisar, that might interfere?
  • In chrome://extensions, Cisar version should be 2.0.3

@kamnevoleg
Copy link
Author

After disabling all extensions and reload Chrome:

image

Sorry about that

@andrei-markeev
Copy link
Owner

So does it work now or still same problem?

@kamnevoleg
Copy link
Author

still same problem

@kamnevoleg
Copy link
Author

To clear the cache, delete the extensions did not solve the problem, only after reinstalling chrome - problem is solved.

@andrei-markeev
Copy link
Owner

Really strange issue. But glad it is finally solved!
Please don't hesitate to report any other bugs. Thanks! :)

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

3 participants