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>
</div>
<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">
</ej-rte>
<span asp-validation-for="postreplyrte" class="text-danger"></span>
</div>
</div>
<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>
</div>
</div>
</form> |
We have attached the sample for your convenience.
Refer to the following link for sample:
Regards,
Prince