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.
Unfortunately, activation email could not send to your email. Please try again.

Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

114156 Oct 31,2013 09:03 AM Nov 12,2013 01:23 AM Orubase 1
loading
Tags: Orubase
Carlos Lopes
Asked On October 31, 2013 09:03 AM

Hi.

Is there an example of how to open a dialog from client-side on Orubase 2.0?

Thank you.

Aravindan V [Syncfusion]
Replied On November 12, 2013 01:23 AM

Hi,
    Thanks for your interest on Syncfusion Product. You can achieve your requirement by following codes.

(1)    Render the Dialog by using the following block of code.
 

[ClientSideCode]

 

   <div id="dialog"

    data-role="sf-m-dialog"

    data-autoopen="false">

    <div>

            Are you sure you want to proceed?

    </div>    

    </div>

 

[MVC Code]

@{

              Html.Orubase().Dialog("dialog")

               .Title("Dialog")

               .Template(@<div>This is the Orubase Mobile Dialog control</div>)

               .IOS(ios => ios.LeftButtonText("Ok")

                                       .LeftButtonType(IOSButtonStyle.DialogOk)

                                       .RightButtonText("Cancel")

                                       .RightButtonType(IOSButtonStyle.DialogCancel)

                                       .DialogMode(MobDialogMode.Confirm)

                                       .ShowButton(true))

               .Render();

}

(2)    You can open the dialog control from client side by using following script code.

 

Script

           function OnTouchEnd(args)

           {

            $("#dialog").mDialog("show");  //Opens the dialog control from client side

            }

 

Regards,
Aravindan V


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;