Welcome to Pintexx Forum Sign in | Join | Faq

pinTab

Started by BeemerBiker at 05-02-2007 4:46 . Topic has 3 replies.

Print Search
Sort Posts:    
   05-02-2007, 4:46
BeemerBiker is not online. Last active: 10.12.2008 13:19:06 BeemerBiker



Top 25 Posts
Joined on 04-19-2007
San Antonio, Texas
Posts 21
refresh changes tab unexpectedly
Reply Quote
I have 5 tabs and the default page shows tab one open. If I select, say tab 3, then click a menu item that is up above the tab object, a postback occurs and the page gets refreshed and it reverts to the default first tab.

I want it to return to the tab that was active when the menu was clicked on.

If I right click on the tab that is active one of the options is "refresh" and that correctly refreshes the active tab. If I move the mouse up above the tab and do the same then a refresh is like the IE "F5" and the entire page gets refreshed and reverts to the default tab.

This makes it hard to have a common control such as "Select All", "Invert Selection" apply to each grid in the tab.

From the C# code for each page shown in each tab I can set a session variable to indicate which tab was active and I assume I can reset the correct tab from the page_load when a postback occurs. Is there any other way to have the tab stay current when a postback occurs? I assume clicking a menu causes the postback and the problem in the first place.



   Report 
   05-03-2007, 9:06
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: refresh changes tab unexpectedly
Reply Quote
Hi,

the reason might be that pinTab does nun run in Postback mode.

Please try this:
When clicking at your menu just save the current tab position in a hidden field by accessing

document.getElementById("position").value = __objpinTab1.getActiveTab();

On server side you can access this parameter and set current tab position with
pinTab.selectedindex = ...

Regards,
Hans-Peter
   Report 
   05-08-2007, 1:04
BeemerBiker is not online. Last active: 10.12.2008 13:19:06 BeemerBiker



Top 25 Posts
Joined on 04-19-2007
San Antonio, Texas
Posts 21
Re: refresh changes tab unexpectedly
Reply Quote
thanks, that would work and I discoved I could turn on autopostback and get the active tab in c# using
protected void PinTab1_ItemClick(object sender, EventArgs e)
{
string stemp = PinTab1.SelectedIndex.ToString();
}

I am still leaning and was never was able to run all of your example programs or I would have found out earlier.

I have IE7 with XP Pro and all security settings. This is what I see when running the postBackII example (or any dotnet examples from that sample directory):

http://stateson.net/pub/pintab_xml.png

I googled and read where it might be an IE7 internet setting or maybe dotnet 2 and VS2005. Anyway, what can I do to run those example programs that show an error about the % symbol being invalid?
My own program has a % but generates no error. Why is that?

I am running it from c:\pintab\ ..etc.. and not from c:\inetpub\wwwroot can that affect the % interpretation?
   Report 
   05-08-2007, 8:31
Pintexx Support is not online. Last active: 30.12.2008 07:11:54 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.576
Re: refresh changes tab unexpectedly
Reply Quote
Hi,

the error message says that there is the pinTab.dll or the reference to this DLL missing.

Is there a bin folder with the dll (and "tab" folder) ?

Regards,
Hans-Peter

   Report 
Pintexx Forum » Developer Produ... » pinTab » Re: refresh changes tab unexpectedly