This is a migrated thread and some comments may be shown as answers.

[Solved] Specify buttons when creating via client-side API

1 Answer 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Williams
Top achievements
Rank 1
Chris Williams asked on 30 Nov 2010, 12:45 AM
Hi, I'm following this basic strategy when creating windows using the client-side API. Since I use the contentUrl property to specify the Url to my content, I'd like to have a Refresh button in the window along with Close in order to refresh the window's content.

Can you provide the format for the buttons property to use when creating the window via jscript so that I can have a Refresh and Close button?

1 Answer, 1 is accepted

Sort by
0
Chris Williams
Top achievements
Rank 1
answered on 30 Nov 2010, 01:05 AM
OK, looks like this is one approach.  Please let me know if you have other suggestions.

var acts = new Array();
acts[0] = "Refresh";
acts[1] = "Close";
dialog = $.telerik.window.create({
    title: "Details",
    actions: acts,
    contentUrl: '/tasks/details/' + runId,
    model: true,
    resizable: false,
    draggable: true,
    visible: false,
    width: 800,
    height: 500
})
Tags
Window
Asked by
Chris Williams
Top achievements
Rank 1
Answers by
Chris Williams
Top achievements
Rank 1
Share this question
or