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
close icon

How to pop a dialog from code behind ?

Hi,

 

How to pop a dialog box from code behind ?

 

Regards,

Greg


4 Replies

TH Thivya Syncfusion Team April 24, 2013 10:47 AM UTC

Hi Greg,

Thanks for your interest in Orubase product.

You can make the dialog control to open while initially by means of “AutoOpen” property. Please refer the below code snippet.

[View]
@{
Html.Orubase().Dialog("mydia")
    .AutoOpen(true)
    .Title("Orubase")
    .Template(@<div>This is the Orubase Mobile Dialog control</div>)
    .Modal(true).RenderMode(RenderMode.IOS)
    .IOS(ios => ios.DialogMode(MobDialogMode.Alert))
    .Render();
}

Please try this and let us know if it helps out.

Regards,
Thivya.



GD Grégory Douguet April 24, 2013 12:00 PM UTC

Hi,

 

Thank you for your example which work perfect.

 

But how do I display this dialog when I click on a button ? I've put AutoOpen to false but then...



GD Grégory Douguet April 24, 2013 12:22 PM UTC

Nevermind I found a sample :)



TH Thivya Syncfusion Team April 25, 2013 04:42 AM UTC

Hi Greg,

Thanks for the update, we are glad you found a solution.

Please let us know if you need any further assistance.

Regards,
Thivya.

Loader.
Live Chat Icon For mobile
Up arrow icon