I have a control as below
<SfDialog @ref="@UserDialogObj" Visible="false" AllowDragging="true" EnableResize="true" ShowCloseIcon="true" Width="960px" Height="480px">
<DialogTemplates>
<Header>
User Details
</Header>
<Content>
<Control_User @ref="@controlUserObj"></Control_User>
</Content>
</DialogTemplates>
</SfDialog>
If i load the page as above, the control
controlUserObj is null and cannot access any properties. If Visible=true , then
controlUserObj is accessible.
What's the best practice to show hide Dialog with a child control?