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

radpromt documentation

1 Answer 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jan Hansen
Top achievements
Rank 1
Jan Hansen asked on 13 Feb 2009, 03:45 PM
Hi,

The documentation for the radpromt, radalert and radconfirm methods are somewhat sparse. I cant find anything in the locally installed help, and the examples only shows _some_ use of the dialogs. The only place I've found something is in the "Working with the Prompt Dialog" online help page at http://www.telerik.com/help/aspnet-ajax/window_dialogsprompt.html - which provides a radpromt signature:

radprompt(text, callBackFn, oWidth, oHeight, callerObj, oTitle, defaultValue)

- but doesn't explain much about the parameters. I can figure it out, but a short table in the webpage would be nice - and especially in the local help file.

The problem arises with the callback function, which according to the web page is described as: 
"The callback function has two parameters: The first is a boolean that indicates whether the user entered "Ok", and the second is the value that the user entered. "

- the example continues showing a callback method with only one parameter, which I think is the correct, as the only parameter is null when the user clicks cancel and blank or "the entered value" when the user clicks ok. Is this correct, and could you please update the documentation at some point :o) Especially the locally installed help file.

/Jan

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 17 Feb 2009, 07:08 AM
Hi Jan,

The callback function has one argument only - the text that the user entered in the prompt dialog. If the user has pressed Cancel or has closed the dialog by clicking the [X] button, the returned argument will be null.

I fixed the documentation regarding the radprompt dialog and updated your points for bringing this issue to our attention. Let us know if you notice any other problems with our documentation - your feedback is appreciated.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Jan Hansen
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or