Validating RadTextBox

1 posts, 0 answers
  1. Christian
    Christian avatar
    1 posts
    Member since:
    Sep 2010

    Posted 16 Oct 2012 Link to this post

    Is it possible to validate RadTextBox with Kendo UI Validation?
    My code looks like this:

    <script type="text/javascript">
    $(document).ready(function () {
                $("#contact").kendoWindow({
                    actions: ["Maximize", "Minimize", "Close"],
                    title: "Contact...",
                    visible: false
                }).data("kendoWindow");
                $("#contact").kendoWindow('open');
                $("#contact").kendoValidator();
    </script>
    ...
    <div id="contact">
            <table>
                <tr>
                    <td>Name :</td>
                    <td>
                        <telerik:RadTextBox ID="tbFullName" runat="server" CssClass="k-textbox" EmptyMessage="Please enter your name"  ClientIDMode="Static"></telerik:RadTextBox></td>
                    <td><span class="k-invalid-msg" data-for="tbFullName"></span></td>
                </tr>
            </table>
        </div>

    For testing purposes, I tried kendoWindow() so that I can be sure that all links are ok and Kendo Window worked perfekt.
    But unfortunately Kendo Validation didn't works for me with RadTextBox. If I use <input> tags intead of RadTextBox
    everything works fine.

    I hope that someone can help me. Thanks in advance.
Back to Top