Flex tab navigator truncates the labels - apache-flex

I have a flex application which has 5 tabs from our application and 2 other tabs will be rendered from the other application at run time . We maintain a permissions database to render the tabs to a particular user. For eg: a user User1 logged in has the permissions only to view first 4 tabs then the other 3 tabs would be removed from the tab navigator by checking the permissions. The problem is when the first 2 tabs are removed from the permissions the remaining tabs displayed are shown with the labels truncated. I tried searching the Google but they have answered is only for the static tabs. Here tabs are rendered dynamically based on the permissions provided to the user. I cannot use the creationComplete method on tab navigator because I'm adding the other application's 2 tabs after creating it and these two tabs were unknown to that method of tab navigator. Any help would be appreciated.

Earlier I was using fl:SuperTabNavigator now moved to mx:TabNavigator.
this solved the problem

Related

Xamarin Forms Shell Tab Bar - Load default view for that Tab

I'm looking for a way to reset back to the default page for the tab when a user switches between tabs in a Xamarin Forms Shell based app.
Currently, my app has a number of tabs at the bottom, and a few of them can navigate to other pages (in a wizard type of scenario). Now, currently when a user clicks on a different tab and then returns to that tab - the last page the user navigated to in that tab is displayed - and I need the navigation to be reset to the default page for that tab.
Any pointers are greatly appreciated

Is it possible to persist Drive Picker widget settings across pages?

I have 2 pages in my app. Page 1 allows the user to select a pupil and then the app shows Page 2.
On Page 2 I have a Drive Picker widget that allows the user to choose images that will be copied to a specific folder (depends on what was selected on Page 1).
If the user closes the picker on Page 2 after picking files and then opens it again without visiting Page 1 first, the Drive Picker remembers which specific folder they had navigated to and allows them to continue.
If the user visits Page 1 again first to select a different pupil and then comes back to Page 2 and uses the Picker, it seems as if the Picker gets reset and shows the user the root of their Drive again. I want to avoid this behaviour so that the user can continue to select files from their last visit (in the same session) to Page 2.
Is there anyway to access the last visited folder of the picker and store that say in a page property and then make the picker use that property the next time it is opened?
I have become a little confused as well with the options that are available to the widget and the options that are surfaced through the result object. I confess that I've tried to search stack overflow for more information on how to use result object, but cannot surface much so all of my scripts use the widget.selectedDocuments way.
You can use sessionStorage() to keep variables between pages.
It is a client side function and does not support "custom action" as far as i know, but the following functions can fix that.
function get_ss(name){return sessionStoreage.getItem(name);}
function set_ss(name, val){sessionStorage.setItem(name, val);}
when navigating from page 1 you can use a custom action to get pupil and set it in sessionStorage then navigate to page2
"Custom Action=" set_ss("pupil", app.pages.Page1.decendents.PupilName.value); app.showPage(app.pages.Page2); //going from memory on the navigation code
You can add "var pupil = get_ss("pupil");" where ever you need it from there.

how do we create tabgroup inside tab in titanium

Hello I have basic two tab which is located on bottom side of application. I want to create another tabgroup when I clicked on second tab. I am searching a lot, but only able to add tab in existing tabgroup. My application requirement is when I clicked on second tab of existing tabgroup another tabgroup should be created and it should appears at the top of the same window.please help me to resolve this issue.
I thought you cannot add that.
if you work to develop android apps. do with tabGroup and actionBar or MenuBar
you can search the API here :
actionBar : http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Android.ActionBar
menuBar : http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Android.Menu
From the api doc for tabgroup
On Android, only one tab group may exist at one time. A tab group may
be closed to allow a new one to be opened later, but the root of the
application must be a heavyweight window to prevent it exiting. Tabs
cannot be removed from the tab group once added, and tabs cannot be
reordered.
On iOS, more than one tab group may exist, and may be opened and
closed as required. Each tab can contain a stack of windows, and the
user can switch between them by tapping the tab's associated control.
Tabs can be removed, and the user may (optionally) be allowed to
reorder tabs.

open new tabs on NavBarItem clicked in Devexpress

I'm developing some Windows forms app with Devexpress, and I have something like below, a set of tabs are open which are related to "System parameters" and I want to a new set of tabs to open in place of older tabs when I click on Error navBarItem and also it should be vise versa, I saw this in demos but I don't know how to do it myself, thanks
I suggest you use a UserControl for each set of options, and when you click on an item of your navigation bar, you do the following :
Set the visible property of the current user control to false
Check if the user control associed to the clicked item exist, if yes, set it's visible property to true (reactivate it), otherwise, create an new instance of it, and dock it.
To manage this, you should have a a list of the user controls already opened, so you can reactivate them when needed.
This link may help you :-)

Ajax Control Toolkit TabContainer shows more than one Tab when at least one tab is hidden

I'm having a problem with the AjaxControlToolkit TabContainer Control.
I apologize in advance for not submitting any code, but since the code is company property, i have no authority to post it anywhere.
The problem is as follows:
I have a TabContainer with 10 tabs, some of which contain user controls, some pure html and .net markup. When i set the tab number 5 to visible=false, something weird starts happening. Tab 6 operates as it should, but tab 7 to 10 show not only the content of their own tab, but also the tab that comes before them. I.e.:
when selecting the tab 7, it shows the content of tab 6 and tab 7, when selecting tab 7 it shows the content of tab 7 and tab 8 etc. the content of the previous tab appears a second later, and i am unsure as to what may be causing this behavior. The temporary solution is to place the tabs that needs to be hidden after the tabs that need to be shown all the time, but a situation has arisen where there is need to dynamically hide tabs depending on user permissions.
If anyone has any ideas, similar experiences, and anything else, please help. We are using AjaxControlToolkit 3.5.50401 with .NET 3.5.
There is issues when playing with the visible property of the tabPanels.
Look at this question that seem to be a very similar behavior.
Ajax Tookit TabPanel Invisible Tag Bug

Resources