We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

RTE validation does not work in the same form together with ordinary TextBox


I got rte validation for storing forum post content working on clientside, then I added an ordinary textbox to act as subject.

After adding the textbox the rte validation stops working.

Please see my code attached.

Many Thanks

Attachment: txtbox_and_rtevalidation_3b024167.zip

1 Reply

PO Prince Oliver Syncfusion Team November 15, 2016 01:48 PM UTC

Hi Amirmansoor, 
Thanks for contacting Syncfusion support. 
We have prepared a sample using the code you shared. It seems that you have used asp validation for textbox and jQuery validation for RTE control. Since you have used both validation, jQuery validation rules overrides the instance of asp form validation rules and Hence textbox is not validated. We suggest you to use same validation for both the controls to avoid this issue. Have a look at the following code snippet. 
<form asp-controller="Forum" asp-action="ReplyToPost" method="post" id="postreplyform"> 
    <div class="form-group"> 
        <label asp-for="Subject"></label> 
        <div class="col-md-10"> 
            <input asp-for="Subject" class="form-control" /> 
            <span asp-validation-for="Subject" class="text-danger"></span> 
    <div class="form-group"> 
        <label asp-for="postreplyrte" class="col-md-2 control-label"></label> 
        <div class="col-md-10"> 
            <ej-rte id="postreplyrte" ej-for="postreplyrte" allow-editing="true"> 
            <span asp-validation-for="postreplyrte" class="text-danger"></span> 
    <input name="topicidin" type="hidden" value="@ViewData["TopicId"]" /> 
    <div class="form-group"> 
        <div class="col-md-offset-2 col-md-10"> 
            <button type="submit" class="btn btn-default">Post</button> 
We have attached the sample for your convenience. 
Refer to the following link for sample: 

Live Chat Icon For mobile
Up arrow icon