Hi Tomasz,
Sorry for the delay.
We have checked with the reported query and we suspect that the issue may be caused due to components are not placed inside the form. This will happen if you didn’t specify the target id for Dialog control while rendering and in this case, Dialog will be appended to body tag (default behavior of Dialog) and which make all the components appended to body (outside of form). So, these components won’t return their value in server side since it’s not taken into an account in form post (this is behavior in web forms).
So, to resolve this issue please specify the targeted selector through API Target (Dialog will be displayed (positioned) based on its container).
Please refer the below code example. Here we have kept the dialog inside the div element which is placed inside the form.
<div ID="sample">
<ej:Dialog ID="Dialog1" runat="server" Target="#sample">
<DialogContent>
<p>This is a simple datepicker control</p>
<ej:DatePicker ID="Datepicker1" runat="server"></ej:DatePicker>
<ej:Button ID="Button1" Text="submit" OnClick="btn_Click" runat="server" ></ej:Button>
</DialogContent>
</ej:Dialog>
</div> |
For more information about EJ components, please check below link:
Regards,
Sasikala Nagarajan