Focus issue with ASP.NET 2.0

pinTab

Focus issue with ASP.NET 2.0


Karl 03-07-2007, 3:41

Hi !,

I have the following issue with Pintab:

1) I create 2 asp.net pages from Visual Studio 2005 and put a TextBox in each page

2) for each page I put the "defaultfocus" of the form to the textbox on that page.

3) I use the pintab to point to the 2 above page urls

4) I enter some text in the first page

5) I switch the second page: the focus doesn't work properly (disabling the pintab "caching" kind of solve the issue but it also reinitialize the whole page)

Any idea ?

Karl

Re: Focus issue with ASP.NET 2.0


Pintexx Support 03-07-2007, 4:52
Hi Karl,

I think in your case you have to set the focus manually.

There is a client event when clicking at the tab item.

In this event just access the document like this:

item.getDocument().getElementById("mytextbox").focus();