I have created model popup to show details of the product then opening popup & adding & editing product data is working fine in ie9/firefox/mozilla but in ie8 opening popup is not a problem but onclick to focus textbox(controls) is focusing the main page
textbox but its not focusing popup control textbox. i'm not getting why its happing?
Note: through mouse click its not focusing & if i use keybord key to focus & add data its working fine
& i googled Then following changes also i checked
1)doctype is contain XHTML not HTML
2) main body z-index=-1 & model popup z-index=10001 (in css i put these properties)
So that, you can use the updatepanel and update it manually. It will refresh the content and controls are rendered properly, inside in the update panel.
focusing textbox is not possible in popup in the sense i kept panel inside the update panel & i kept textbox & dropdownlist inside panel here opening the popup is working fine but adding & editing textbox & focusing dropdownlist & textbox is not possible
through mouse click but it is possible throgh keyboard keys means using tabs & alphabets keys
Thanks Mr.MSFT for the reply but still its focusing behand popup model page textbox
issue : after clicking on textbox of popup model its focusing main page textbox without closing popup,
for example : i opened popup & editing text from textbox writing
"abc" then that text appears in main textbox,
but not in popup textbox & also popup still opened
sharanamma
Member
188 Points
59 Posts
problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 01, 2012 04:27 AM|LINK
Hi every body,
I have created model popup to show details of the product then opening popup & adding & editing product data is working fine in ie9/firefox/mozilla but in ie8 opening popup is not a problem but onclick to focus textbox(controls) is focusing the main page textbox but its not focusing popup control textbox. i'm not getting why its happing?
Note: through mouse click its not focusing & if i use keybord key to focus & add data its working fine
& i googled Then following changes also i checked
1)doctype is contain XHTML not HTML
2) main body z-index=-1 & model popup z-index=10001 (in css i put these properties)
Please help me
Pbalan.in
Contributor
2142 Points
483 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 01, 2012 05:12 AM|LINK
Hi,
Actually modalpopup was not rendered properly.
So that, you can use the updatepanel and update it manually. It will refresh the content and controls are rendered properly, inside in the update panel.
chetan.sarod...
All-Star
65619 Points
11118 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 02, 2012 03:11 AM|LINK
Please refer this:
http://vincexu.blogspot.com/2009/06/keep-textbox-focus-inside-updatepanel.html
http://forums.asp.net/t/1099345.aspx
http://forums.asp.net/t/1077882.aspx
http://forums.asp.net/p/1111803/1713436.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
sharanamma
Member
188 Points
59 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 02, 2012 04:59 AM|LINK
If i'll put updatepanelId.update() in opening model popup in code behand means it'll never show popup itself in ie8
sharanamma
Member
188 Points
59 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 02, 2012 05:05 AM|LINK
focusing textbox is not possible in popup in the sense i kept panel inside the update panel & i kept textbox & dropdownlist inside panel here opening the popup is working fine but adding & editing textbox & focusing dropdownlist & textbox is not possible through mouse click but it is possible throgh keyboard keys means using tabs & alphabets keys
Song-Tian - ...
All-Star
43699 Points
4304 Posts
Microsoft
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 03, 2012 05:48 AM|LINK
Hi,
Try the code as follow:
function pageLoad() { var modal = $find('Panel1_ModalPopupExtender'); modal.add_shown(focustext); } function focustext() { textbox.focus(); }Feedback to us
Develop and promote your apps in Windows Store
sharanamma
Member
188 Points
59 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 04, 2012 06:13 AM|LINK
Thanks Mr.MSFT for the reply but still its focusing behand popup model page textbox
issue : after clicking on textbox of popup model its focusing main page textbox without closing popup,
for example : i opened popup & editing text from textbox writing "abc" then that text appears in main textbox, but not in popup textbox & also popup still opened
Song-Tian - ...
All-Star
43699 Points
4304 Posts
Microsoft
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 06, 2012 02:35 AM|LINK
Hi,
Then do you try
$find('Panel1_ModalPopupExtender').hide();?
Any more question, please feel free to reply.
Feedback to us
Develop and promote your apps in Windows Store
sharanamma
Member
188 Points
59 Posts
Re: problem : onclick of controls in model popup extender is focusing main page controls in ie8
Aug 06, 2012 04:35 AM|LINK
edited previous reply please check it