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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

108913 May 20,2013 05:39 PM UTC May 22,2013 06:34 AM UTC Mobile MVC(Classic) 1
loading
Tags: Tools
Carlos Lopes
Asked On May 20, 2013 05:39 PM UTC

Hi.

Where can I find information of how to open the dialog control from client-side?

Thivya [Syncfusion]
Replied On May 22, 2013 06:34 AM UTC

Hi,

Thanks for your interest in Syncfusion Mobile product.

Please refer the below code snippets to open/close the dialog from client side.

//View
@Html.MobSyncfusion().Button("button").RenderMode(RenderMode.IOS).Text("Clear History").OnTouchEnd("Open")      

@{
   
Html.MobSyncfusion().Dialog("MobDialog").RenderMode(RenderMode.IOS)
        .IOS(i => i.ShowButton(true).DialogMode(MobDialogMode.Confirm)
                   .LeftButtonText("Clear").RightButtonText("Cancel")                
                   .ShowHeader(true).LeftButtonType(IOSButtonStyle.DialogOk)
                   .RightButtonType(IOSButtonStyle.DialogCancel))
        .Title("Clear History").ClientSideEvents(e => e.OnButtonTap("Close"))
        .Template(@<div>Are you sure want to clear history?</div>)
        .Render();

}

//Script
function Open() { //Event to open the dialog in button click
    $sf.getCurrentPage().find("#MobDialog").sfDialog("show");
}

function Close() { //Event to close the dialog in button click
    $sf.getCurrentPage().find("#MobDialog").sfDialog("hide");
}

We will update the UG with the same information as soon as possible. 

Please let us know if you have any queries.

Regards,
Thivya.


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.

Warning Icon 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.Close Icon

;