iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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
Hi Michael,
In order to get the DialogObject for closing you will need more than window.parent, you will also need "parentFrame.ISGetObject("WebDialogBox1")". To understand more, I attach you my sample code that include the AutoFocus on WebInput inside the WebDialogBox and WebButton to close the WebDialogBox.
But sorry to tell you, WebButton cannot be assigned for defaultButton. I hope it can help you, and if you have any other questions, please do not hesitate to ask.
Thank you,Andi Santoso.
Hi Andi
IntegratedToDesktopManager was set "true" on WebDialogbox! That was the main problem!
The problem is occured because, if you use the "IntegratedToDesktopManager", the object is undefined since it point back to the Main DektopManager. If you want to use property "IntegratedTODesktopManager", instead of using "parentFrame.ISGetObject("WebDialogBox1")", you need to use "parentFrame.window[1].ISGetObject("WebDialogBox1")". I hope it can help and please do not hesitate to ask if you have any other questions.
Thank you,
Andi Santoso
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname