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

Implementing terms & conditions box

2 Answers 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 Jan 2011, 08:11 PM

Hi

What techniques/controls can I use to implement the following?

A popup window displays formatted 'terms & conditions' text in html with a scroll bar. When user scroll downs to the very bottom of the text using the scroll bar then the ‘I accept’ tick box is enabled. Once user closes the popup window the value of the acceptance tick box is passed to the calling form.

Many Thanks

Regards

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Jan 2011, 06:03 AM
Hello John,

You can attach the OnClientClose event to the window and can access the value, which is passed as arguments from the PopUp window. Here is a sample code:

function OnClientClose(Sender, args)
  {
       alert(args.get_argument());
   }

In the Dialog page:
function CloseWindow()
       {
           var wnd = GetRadWindow();
           wnd.close("argument");//pass the argument
       }

Please refer the following documentation for more on using RadWindow as a dialog.
Using RadWindow as a Dialog

Thanks,
Shinu.
0
John
Top achievements
Rank 1
answered on 24 Jan 2011, 08:17 AM

Hi


Many thanks.

How do I implement the content scroll bar which when scrolled to the very bottom enables the tick box?

Thanks

Regards

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
John
Top achievements
Rank 1
Share this question
or