title: How to execute javascript in DataItemTemplateContent on gridview paging
body: <p>I've got a DevExpress GridView which contains a column with a custom DataItemTemplate</p>
  
  <pre><code>column.SetDataItemTemplateContent( c =&gt;
    {
      ViewContext.Writer.Write(
        Html.Partial( "PartialView" )
      );
  } );
  </code></pre>
  
  <p>with the partial view <code>PartialView</code> looking like:</p>
  
  <pre><code>&lt;p&gt;text&lt;/p&gt;
  
  &lt;script&gt;
    console.log("hello from PartialView");
  &lt;/script&gt;
  </code></pre>
  
  <p>So, after page reload I get the <code>console.log</code> output x times, where x is the number of rows displayed in my GridView. But if I go to the next page in the GridView the js doesn't get executed anymore and I don't get any more <code>console.log</code> outputs. The partial view is rendered correctly as there is still "text" getting displayed for every row.</p>
  
  <p>Any ideas how to get the output again during use of gridview pagination?</p>
  
  <p>(btw. my goal is to render a chemical structure via javascript The example is simplified to show the general problem.)</p>