title: Inline editing Validation
body: <p>I have a kendo grid.And i want to add inline editing validation there.</p>
  
  <p>Below is the screen shot of my kendo grid:</p>
  
  <p><img src="https://i.stack.imgur.com/ZMD4u.png" alt="enter image description here"></p>
  
  <blockquote>
    <blockquote>
      <p>According to my functionality i want to validate the "Media" filed according to "Media Type" field.</p>
      
      <p>We have 4 Media Types(Email,WebURL,Facebook,Twitter).</p>
      
      <p>And the Media field string should be according to selected Media Type.For example:</p>
    </blockquote>
  </blockquote>
  
  <pre><code>1) For Email Media Type :   amit@gmail.com
  2) For WebURL Media Type:   www.yahoo.com
  </code></pre>
  
  <blockquote>
    <blockquote>
      <p>And if someone entered invalid Media string according to selected Media Type then i want to show validation message.It can be MVC model validation or Javascript validation.</p>
      
      <p>I have tried with two know ways.But none of helping me.</p>
    </blockquote>
  </blockquote>
  
  <p>1) The client template.</p>
  
  <blockquote>
    <blockquote>
      <p>In which i have used client template for Add Net Item button to validate the Media field.And for that i have handle it by Javascript function.Please have a look below :-</p>
    </blockquote>
  </blockquote>
  
  <p>.ToolBar(commands => { commands.Template("Add New Media");  })</p>
  
  <blockquote>
    <blockquote>
      <p>By this i was able to validate the field.But was unable to save it in database.Means i don't know the way to call Saving method by this.</p>
    </blockquote>
  </blockquote>
  
  <p>2) By Commands:-</p>
  
  <p>I have tried this also :-</p>
  
  <pre><code>.ToolBar(commands =&gt;
                         {
                             commands.Create();
                             commands.Save();
                         })
  </code></pre>
  
  <p>But it was not validating the field.But i was able to save it in database.</p>