title: Uncaught TypeError : cannot read property 'replace' of undefined In Grid
body: <p>I'm new in using Kendo Grid and Kendo UI . My question is how can i resolve this Error</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'replace' of undefined 
  </code></pre>
  
  <p>This is my Code on my KendoGrid</p>
  
  <pre><code>$("#Grid").kendoGrid({
              scrollable: false,
              sortable: true,
              pageable: {
                  refresh: true,
                  pageSizes: true
              },
              dataSource: {
                  transport: {
                      read: {
                          url: '/Info/InfoList?search=' + search,
                          dataType: "json",
                          type: "POST"
                      }
  
                  },
                  pageSize: 10
              },
              rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),
              altRowTemplate: kendo.template($("#rowTemplate").html())
          });
  </code></pre>
  
  <p>Line that Causes the Error</p>
  
  <pre><code>rowTemplate: kendo.template($("#rowTemplate").html().replace('k-alt', '')),
  </code></pre>
  
  <p>HTML of rowTemplate</p>
  
  <pre><code> &lt;script id="rowTemplate" type="text/x-kendo-tmpl"&gt;   
          &lt;tr class='k-alt'&gt;
              &lt;td&gt;
                  ${ FirstName } ${ LastName }
              &lt;/td&gt;
          &lt;/tr&gt;
              &lt;/script&gt;
  </code></pre>