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

Assigning Buttons on Dialog Control on Code Behind

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

3 Replies

PK Prem Kumar D Syncfusion Team 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");

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


Let me know if you have any queries

Best Regards,
Prem


DM Dennis Morales June 29, 2010 12:59 AM UTC

Thanks prem


PK Prem Kumar D Syncfusion Team 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,
Prem


Loader.
Live Chat Icon For mobile
Up arrow icon