Hi,
How can I turn off the in-context-editing in preview mode  programatically. Is there a JS function that I can call in the grid  that will swtich off the editing functionality just like appending  vgnextnoice=1 in the url or using editing off from the floating menu.
Thanks, 
 Hari Kusumba