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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Assigning Buttons on Dialog Control on Code Behind

Thread ID:





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


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()



Prem Kumar D [Syncfusion]
Replied On June 28, 2010 02:37 PM UTC

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");

function CloseDialog() {

Let me know if you have any queries

Best Regards,

Dennis Morales
Replied On June 29, 2010 12:59 AM UTC

Thanks prem

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

Hi Dennis,

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

Best Regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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