The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am using the DropDownList in a Dialog and have 2 questions:
1) How do I refresh the data? The datasource is a URL
2) I want the require that the user select a value However, if doesn't seem to work. (Validation does work for an field right number the drop down list that I have put in as a test)
@{Html.EJ().Dialog("addToGroupDialog").Title("Add To Group").Containment(".control").IsResponsive(true).ContentTemplate(@
KCKasithangam C Syncfusion Team August 3, 2016 03:57 AM UTC
Hi Jeffrey,
Thanks for contacting Syncfusion support.
Query1: How do I refresh the data? The datasource is a URL
Datasource binded in the initial rendering of Dropdownlist control. If you want to refresh the data before dialog open, then you can set the datasource again in Dropdownlist control as shown below code:
<code>
function onclick() {
var dialog = $("#basicDialog").data("ejDialog");
var dropObj=$("#addToGroupName").data("ejDropDownList")
Query 2: I want the require that the user select a value However, if doesn't seem to work. (Validation does work for anfield right number the drop down list that I have put in as a test)
To achieve the validation for dropdownlist control, we need to add the validator code in your script section as shown below code:
<code>
$.validator.setDefaults({
ignore: [], //to validate all fields(hidden also)
errorClass: 'e-validation-error', //if we don’t set custom class, default “error” class will be added