Defaultfocus and Defaultbutton

3 replies. Last post: December 6, 2009 10:07 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi

How can i set defaultfocus on WebInput and defaultbutton onWebbutton Control?

I have a Webform like sample Detailview.aspx but i use Desktopmanager

- Desktopmanager

  - Window x

  - Window y

  - Window z (ContentMode = IFrame)

     - Webform_z1.aspx includes WebGrid and Dialogbox (ContentMode = IFrame)

        - Webform_Dialogbox.aspx

Please have a look on attached picure.

How can i get the Dialogobject for closing? With window.parent i get the object of Desktopmanager!

 

I want to customize this sample, that after loading the page automatically selects the first Webinput Control. I want to define the Add-Button as defaultbutton that I am only to press the Enter key for adding new records.

On standalone Webforms i can set defaultbutton and defaultfocus on form tag. But this doesn't work in this sample!

 

The new record is inserted to database when i click on the Add Button. The dialog box closes automatically and the WebGrid will be refreshed! How this is done?

Thanks for your help.

Regards

Michael

All times are GMT -5. The time now is 6:57 PM.
Previous Next