Is there really no documentation for this? To summarize the comments, no in 2015. I have searched msdn/technet and google. My most common problem is just not knowing the right keywords to search for so far. I am just learning sharepoint so if anyone can point me in the right direction it would help me out a lot.

My purpose is to understand how ctx.rendergroups(ctx) is working and to look at other options similar to it or to better understand how I can create control display templates.

  • 1
    If you are new to SP you have to taken on a difficult topic to learn first. Search for posts by Andrei Markeev Jul 1, 2016 at 8:58
  • Today marks the beginning of my second month. I understand that this is a little out of my depth but I am also doing the tasks I have been given. Thank you Jul 1, 2016 at 11:31
  • 1
    Note: ctx is just the variable name for A context, in different context the ctx object has different content Jul 1, 2016 at 13:42
  • Do you know where it is assigned? It is not on the page, the web part, the control template, or the item display template. Jul 1, 2016 at 16:48
  • No, I never traced it to its origin. And can't recall any blogs about it Jul 1, 2016 at 18:18

1 Answer 1


Below reference will help you to understand about JSOM

MSDN reference

SharePoint JSOM


Renter group templates

  • Thank you, this is helpful. But I still cannot make any sense of where "ctx" is coming from and what it is in this context. It isn't assigned in any of the files I am working with Jul 1, 2016 at 16:45
  • 1
    context is a variable which represents current HTTP sharepoint service request. If you want to find current web site url below code will be usefull. siteCollec = cxt.get_site(); cxt.load(siteCollec); clientContext.executeQueryAsync(Function.createDelegate(this, getUrl), Function.createDelegate(this, getFailed)); } function getUrl() { alert(site.get_url()); } function getFailed() { alert('Failed to retrieve the server relative URL.'); }
    – Sabitha S
    Jul 4, 2016 at 6:10

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.