Doing things clinet side in WebDialogBox

4 replies. Last post: November 5, 2009 12:36 AM by Mark Paladino
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Raja RamaMember

I have webDialogBox and it has two buttons (see the code below)

<CommandButtons>

<ISWebDesktop:WebDialogBoxButton Text="OK" Name="_btnOkValidation" Type="OK"></ISWebDesktop:WebDialogBoxButton>

<ISWebDesktop:WebDialogBoxButton Text="Cancel" Name="_btnCancelValidation" Type="Cancel"></ISWebDesktop:WebDialogBoxButton>

</CommandButtons>

CommandButtons>

<ISWebDesktop:WebDialogBoxButton Text="OK" Name="_btnOkValidation" Type="OK"></ISWebDesktop:WebDialogBoxButton>

<ISWebDesktop:WebDialogBoxButton Text="Cancel" Name="_btnCancelValidation" Type="Cancel"></ISWebDesktop:WebDialogBoxButton>

</CommandButtons>

ISWebDesktop:WebDialogBoxButton Text="OK" Name="_btnOkValidation" Type="OK"></ISWebDesktop:WebDialogBoxButton>

<ISWebDesktop:WebDialogBoxButton Text="Cancel" Name="_btnCancelValidation" Type="Cancel"></ISWebDesktop:WebDialogBoxButton>

</CommandButtons>

ISWebDesktop:WebDialogBoxButton Text="Cancel" Name="_btnCancelValidation" Type="Cancel"></ISWebDesktop:WebDialogBoxButton>

</CommandButtons>

CommandButtons>

Now, How do I do the following

1. How do I change the button text in Client Side?

2. Using Client Side, I want to be able to disable or hide the button "OK". If i use document.getElementById to get the correct button and set it style property or disable property

I get the following JavaScript error thrown from your code.

"Can't move focus to the control because it is invisible or not enabled, or of a type that does not accept focus."

3. How do I make sure the web dialog always open in the center of the window. What is happening is, if the user scrolls down and open the dialog, it appears on very top of the window. How do i make sure it always opens in the middle.

 
Please give us a solution.

 

Thanks

 

1. How do I change the button text in Client Side?

2. Using Client Side, I want to be able to disable or hide the button "OK". If i use document.getElementById to get the correct button and set it style property or disable property

I get the following JavaScript error thrown from your code.

"Can't move focus to the control because it is invisible or not enabled, or of a type that does not accept focus."

3. How do I make sure the web dialog always open in the center of the window. What is happening is, if the user scrolls down and open the dialog, it appears on very top of the window. How do i make sure it always opens in the middle.

 
Please give us a solution.

 

Thanks

 

I get the following JavaScript error thrown from your code.

"Can't move focus to the control because it is invisible or not enabled, or of a type that does not accept focus."

3. How do I make sure the web dialog always open in the center of the window. What is happening is, if the user scrolls down and open the dialog, it appears on very top of the window. How do i make sure it always opens in the middle.

 
Please give us a solution.

 

Thanks

 

 

 

 

All times are GMT -5. The time now is 7:25 PM.
Previous Next