sharepoint 2013 - How To Add JSLink For Calendar Event -


i'm using sharepoint 2013 , want utilize client side rendering feature using jslink, when editing web part calendar new event, in "miscellaneous" there no field jslink, how modify render new event using jslink ?.

it not possible. see this discussion.

after hour's worth of research found problem. microsoft targets invalid, event, , survey list types ignore client rendering. unless create own webpart not ever able use of jslink properties these list types. maybe @ microsoft can explain here why have crippled or proper approach common problem be. yet reason calendar piece of garbage in sharepoint 2013!

also this answer:

there no ootb way attach javascript calendar view (no property exposed listview). workaround can create own jquery or javascript , add on calendar view page adding reference in content editor webpart on page.,

however have quick dirty solution. add sripteditor yout page, below calendar , insert:

var oldeditlink = editlink2; editlink2 = function(a,b,c){  if (isnan(b) && b.substring(0,3) == "wpq"){     var itemid = a.getattribute("href").split("=")[1];     // want    return false; } oldeditlink(a,b,c); 

}


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -