AJAX :: Activate TabPanel In TabContainer?
Jan 8, 2011How to activate a specific TabPanel in TabContainer from code behind? I tried the following but it doesn't change activate the tab.
[Code]....
How to activate a specific TabPanel in TabContainer from code behind? I tried the following but it doesn't change activate the tab.
[Code]....
I have a tabcontainer which has 7 tab panels and on certain conditions i want to make 1 tab either visible false or remove from the TabContainer. Firstly, i had set tab visible false but by doing this my TabContainer1_ActiveTabChanged event fired twice intially when i select the tab panel then it fire and shows my correct ActiveTabIndex number but but at the same moment it fires again with 1 Decrement in ActiveTabIndex number.
I could not understand why it is happening.What thing makes the ActiveTabIndex number decremented by 1. If select Tab 3 then it shows me result of 2 and so on.
Why this event firing twice i set any tab Visible false.
I was looking for a javascript that can loop through all tab panel within a tabcontainer. As i wanted to set the height and width for the tabpanel.
View 1 RepliesI am trying to use a tabContainer and two tabPanels inside a ItemTemplate of a Formview.
As soon I put them in the ItemTemplate I receive the following error on the formView control in design view:
"There was an error rendering the control. Could not find any resources appropriate for the specifie culture or the neutral culture. Make sure AjaxControlToolKit.Properties.Resources.NET4.Resources was correctly embedded or linked into assembly AjaxControlToolKit at compile time, or that all the satellite assemblies required are loadable and fully signed.
I have a scriptManager tag in the master page and an updatePanel in the content page.
I am using different ajax tab panel and when i move over the ajax panel, it should show the name of the ajax tab panel.
View 1 Repliesi have 9 tabs in TabContainer
i need to apply individual styles for every tabs. but TabContainer theam is working for all tabs
i have created 9 theams and assigned for every tabpanel. but it's not working..
how can i apply themas for individual tabpanel in TabContainer.
I am working on an ASP.NET application that has a tab container with 5 tab panels in it. There are 2 'admin' user tabs, 2 'regular' user tabs, and a 'receipt' tab. Now, depending on what kind of user is accessing the page, I am enabling or disabling/hiding 2 of the tabs (regular or admin), but I am always showing the receipt tab. So, in essence, there are only ever 3 tabs visible - either 2 'regular' tabs and a receipt tab, or 2 'admin' tabs and a receipt tab.
Now, when a user logs into the app from the login page, and is directed to the page with the tab container and 5 tab panels on it, I would like to have the receipt tab selected by default, and to have it shown to the user. This tab is the fifth in the container (TabIndex = 4), and so in the OnLoad event for the page, I try setting something like this up
tabContainer.ActiveTabIndex = 4
...but it shows nothing. So I am thinking that maybe, since 2 of the tabs are hidden, I need to set the index to 2 (for the 3rd visible tab, which should be the receipt tab). Well, when I do this, the 3rd tab in the tab panel control at the top is indeed selected - but the actual content in the tab is still the content from the first tab (TabIndex = 0)....? Is there some sort of event I need to call to "flush out" what is being displayed in the actual panel, or am I missing something else?
I'm have a project that uses a TabContainer. When I view the TabContainer from my local IIS it displays fine. When I run this from a production environment I'm getting tiny gap & a border line below my TabPanel Header. My browser is IE 8.0
View 3 Repliesi'm facing an issue in asp.net application (c#). i want get the name of tabpanel.i searched in forum i found that with java scritp function i can resolve this issue but i couldn't.
View 1 Repliesi want to focus my cursor on the starting position but it can't be possible in ajax how it can be done in ajax control.
View 1 RepliesAt first time page load the TabContainer and TabPanel is shown where the default tab index is zero. This panel has some user controls and a "Go" button. The "Go" button loads a GridView is a separate panel. So far things ar good.
Now when I either sort or page throught the GridView, the TabContainer disappears. I read somewhere that the current tab index would be preserved during post back. So how can I preserve the index and make sure the TabContainer and the TabPanel is loaded at postback and still have the information originally entered by users in the controls? Could I use a "Session" variable?
For this web page, The img is now showing up in print preview and is printing. From FireFox, the shrik-to-fit option works great in preview and print out they look perfect. The problem is with IE 8 (havne't tested other version) The image and other stuff comes out fine. The section that consist of panel and the AjaxCtrl:TabContainerer, the Active Tab with its text content are shrunk to like 60% from the right edge of the paper. The fonts are very small and readable. I tried playing with the scale percentage in the print preview of IE but it increase size on all the content and not just the AjaxCtrl:TabContainerer part.
Is there a way to fix this in IE?
I have a gridview with Action button. When this button is clicked Javascript Confirm Popup will Display, after click on OK the Event have to fire GridviewRowCommand but the strange thing is: when the button is clicked, the rowcommand method is NOT fired! When I place the code on a separate page the event is fired, but when placed inside the tabcontainer for some reason it isnt...
View 7 Repliesi have a tabcontainer which have 3 tab panels(tbpanel1,tbpanel2,tbpanel3)and i have dropdownlist in each tabpanel to select date(with autopost back=True).so if i select the date from tab panel2 or tabpanel 3 it is automatically going to tabpanel 1.but it should be in the same tabpanel.
View 1 RepliesIn my application i used tabcontainer contorl, Here i need to retrive values for the Second Panel that was in First Panel.
View 3 RepliesI use a border for the TabContainer body which works fine.
[Code]....
also I use three hidden divs and one visible div inside a main div which works as body of Tabcontainer
I am able to update two panels from one button click, Added updateprogress on both panels and on button click it shows the "Loading" icon. But how if I want to icon to show up if user clicks another button which is not part of updatepanel?
I am attaching the code.. in the code I have a button "Show CD Info". When user clicks this button, I load a GridView on the left (Grid Panel) and a simple labels on the right (View Panel) that shows the first record. During the load, user see the Loading icon.
Also, user can click "Refresh Grid" button to refresh ONLY the grid. "Clear" button to clear the labels on the View panel on the right. To accomplish this I have added triggers on Grid Panel
[Code]....
and on View Panel
[Code]....
This code ajaxify my requirement but how to show the progress icon when I click Refresh or Clear buttons?
Here is the code (.aspx):
[Code]....
and (code behind .c#)
[Code]....
let me know how to activate the same progress icon from two buttons?
I want to activate sub tab panel from main tab panel. The tab order is in following . So I want to Activate sub panel2 in tab container 2 from main panel 1 in tab container 1 using java script.
Tab container
Main Panel1 Main Panel 2
Tab container 2
Sub panel1 Sub panel 2
i want to know how to activate modal popup extender only on some condition and that to on button click
eg:-if(a==10)
{
activate modal pop up
}
I have a button that is inside of an updatepanel, I want it so that whenever the user clicks on the button it would update items in the updatepanel and after that it would activate the animationextender but I can't do that as of now because on the button I have OnClientClick="return false;".
View 3 RepliesI'm developing a web page with tabcontainer. I want to hide one tabpanel on the client side. So I don't want to se "TabContainer1.Tabs(0).Visible = False" as I want it to be a client side event. I tried following code in js
"
var objTab = $find('<%=TabContainer1.ClientID%>');
objTab.get_tabs()[0]._hide(); //objTab.get_tabs()[0]._show();
"
However, it doesn't work for the first time loading the page. I guess it only works when an ajax postback happens. Is there any way to hide this when I first load the page, and then if I click on button "show", it will show up without any ajax postback (backend coding)?
I have an Accordion within a Tab container and it works until I set the Accordion AutoSize to Fill or Limit, then my Accordion disappears. I get the same result with IE7, FireFox 2.0.0.8 and Opera 9.24. Is it possible, or at least supposed to be possible to do this?
View 2 RepliesFor a website I was asked to put a bunch of information inside a few different categories. The tabpanel seemed fitting for this, and the person I made it for approved of the simple and elegant sollution.
However, he now has a somewhat tricky request: he wants it so that when people print (javascript::print()), they would be able to see all the information entered in the different tabs. Normally I would solve a thing like this with a different print rules inside my css file. However, in this case, the javascript attached to the tabcontainer/tabpanels puts the visibility:hidden on the elements themselves, meaning whatever I may write inside the css would be ignored either way.
Is there any simple way of making it so that these tabs will be shown when printing?
Preferably a sollution that doesn't require me to rewrite most of the tabcontainer/panel code or making my own control from scratch. I would think that this "should" be achievable through javascript, but I thought I'd check here for ideas before rushing into things.
I have two pages with TabControls and the tabcontrols have several tabpanels. On one page there are some popupcontrol extenders on the first tab, and that page works fine. On the second page, the popupcontrolextenders are on the second tab. When that page loads, I get the following jscript error:
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
I've tried setting the Enabled property to false for these popupcontrolextenders until that tab becomes visible. This prevents the error on page load, but but then the same error happens as soon as that tab becomes visible.
Is it possible to use a popupcontrolextender on a tabpanel, or should I give up and try something different?
I need to set the focus to a control present in a tabpanel within a tabcontainer . The focus needs to be set based on the input validation of the controls, i.e if any input validation fails then we need to set activetabindex of the container to panel where the control resides and set the the focus to control. Can we set activetabindex for the tabcontainer by finding the control and also setfocus to the control .If any viable solution is there
View 4 Replies