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

Can't move focus to the control

1 Answer 84 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Kannan Viswanathan
Top achievements
Rank 1
Kannan Viswanathan asked on 25 May 2011, 03:29 PM


Telerik Version used : 2010.3.1215.35

Actual case:

1. I am using the Tab strip along with the Two page view namely withdrawal and Letter.

2.  One scenario I have to navigate the tab page from Withdrawal  to Letter by means of coding Like (pgvLetter.selectedindex =0) 

3. Now I can use the Letter page view after that if I select he Withdrawal tab page one confirmation window is raising (This is done for functionality purpose) after that yes or no confirmation try to move to withdrawal tab page I got the script error as below

4. " htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. " (This is popup script error message showing ) and 

5. document.getElementById("User-NewDataSet").focus(); (this error message is highlighted in web page  )

Expecting Case:

1. The Tab Strip  along with tow page view

2. If I have  to select the Letter tab page view by means of coding as  mention above 

3. Then manually select the withdrawal tab page  after doing the confirmation  (yes or no)

4. The withdrawal tab page has to be viewed

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 27 May 2011, 01:14 PM
Hello Yuvaraja,

What is the setup for your RadMultiPage control? Do you have RenderSelectedPageOnly set to true or false? If false, in what client-side event are you calling that line? The reason being, is that you need to make sure that the PageView is visible otherwise that error will occur, which I'm assuming is because you're trying to set the focus before the PageView is made visible.

I hope that helps.
Tags
TabStrip
Asked by
Kannan Viswanathan
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or