katmanrocks
Posts: 8
|
| Posted: 02/02/2011, 6:55 AM |
|
Attempting to conditionally hide a tabbed view will cause errors - It's a known issue.
The solution is to modify the Code Charge Ajax related code and JavaScript which is assigned to controls located inside the TabbedView control. The code should check whether the control exist. Here is a sample for an Update Panel.
You'll need to check for the existence of the Tabbed View Panel in this case "ReportHeader_Panel" and add an "if" statement above the AjaxPanel.reload and panel.onrefresh statements. The third alteration was due to some custom code inserted that will control which tab is 'active" as updates are made on the database.
function ReportHeader_PanelUpdatePanel_refresh(sender) {
if ($("ReportHeader_Panel"))
AjaxPanel.reload($("ReportHeader_Panel"));
}
function ReportHeader_Panel_start(sender) {
if ($("ReportHeader_Panel")) {
var panel = $("ReportHeader_Panel");
panel.onrefresh = function() {
};
AjaxPanel.init(panel);
AjaxPanel._bind(panel);
ReportHeader_Panel_bind(sender);
}
}
if ($("ReportHeader_Panel")) {
if (CCGetParam("Tab") == 1)
ReportHeader_PanelPanel2YahooTabbedView.set('activeIndex',1);
else
ReportHeader_PanelPanel2YahooTabbedView.set('activeIndex',0);
}
|
 |
 |
datadoit
|
| Posted: 02/02/2011, 7:16 AM |
|
Does support know about this?
|
|
|
 |
katmanrocks
Posts: 8
|
| Posted: 02/02/2011, 9:57 AM |
|
Support is who I worked with - they are the people that stated it was a "known" issue.
|
 |
 |
katmanrocks
Posts: 8
|
| Posted: 02/02/2011, 9:58 AM |
|
I had searched the forum and seen a couple of people had asked the same question but had not received a response. That is why I added this note - saves people the time of opening a support request.
|
 |
 |
isoftware_com
Posts: 13
|
| Posted: 02/03/2011, 1:42 PM |
|
I gave up on this approach. Instead I used a Menu in a Table to look like tabs and just used the visible property on my grids.
Works a treat! Less hassle, less code and seems to be quicker for some reason.
_________________
isoftware.com
Looking for Codecharge VB.NET Freelance Developers
|
 |
 |
Waspman
Posts: 948
|
| Posted: 02/07/2011, 10:29 AM |
|
I've done this with tabs is a tab view?
I have a system where the user can show and hide tabs and set the tab name. Is that the same?
...and also set active tab if I remember right.
_________________
http://www.waspmedia.co.uk |
 |
 |