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.

Assigning Buttons on Dialog Control on Code Behind

Thread ID:

Created:

Updated:

Platform:

Replies:

95228 Jun 28,2010 05:02 AM Jun 29,2010 02:23 AM ASP.NET MVC (Classic) 3
loading
Tags: Tools
Dennis Morales
Asked On June 28, 2010 05:02 AM

Hi,

How do I assign a button and it's function of Dialog Control inside the controller class.

I can't figure out the

.Buttons = new Dictionary()

assignment.

Thanks

Prem Kumar D [Syncfusion]
Replied On June 28, 2010 10:37 AM

Hi Dennis,

Thanks for using Syncfusion products.

With regard to your query,the below code snippets will guide you in adding buttons to the dialog and defining its call back

DialogModel myModel = new DialogModel();
myModel.Buttons.Add("Cancel", "CloseDialog");

[script]
function CloseDialog() {
$("#dialogContents").dialog('close');
}


Let me know if you have any queries

Best Regards,
Prem

Dennis Morales
Replied On June 28, 2010 08:59 PM

Thanks prem

Prem Kumar D [Syncfusion]
Replied On June 29, 2010 02:23 AM

Hi Dennis,

We are glad to know that your requirement has been attained.Kindly get back to us for any further assistance

Best Regards,
Prem


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.

;