Hi,
I am creating a tab strip dynamically. I have some 5-6 tabs at the rootlevel. In my last tab i am creating a tab template which will have normal HTML controls for example a Logout link and someother links like that. My requirement is that the contents of my last tab should be always at the right most corner of the screen. Please refer the attached image of expected output. It should be like that on screen resize also, i mean in every situation they should be at the right most corner.
Currently i am doing it by calculating its offsetLeft and setting the paddingleft style property for the last tab dynamically on page load and on window resize event. Following is my code for that
paddingLeft = tabStrip.get_element().offsetWidth - lastTab.get_element().offsetLeft - 80; // 80 is the width of the logout link
lastTab.get_element().style.paddingLeft = paddingLeft;
But, it seems to break sometimes.
Please, suggest some more elegant way of doing it.
Thanx in advance.
Mohammad.
| RadTab selectedTab = this.rtsResultSet.SelectedTab; |
| this.rtsResultSet.Tabs.Remove(selectedTab); |
| int tabCount = this.rtsResultSet.Tabs.Count; |
| this.rtsResultSet.SelectedIndex = (tabCount - 1); |
root.get_nodes().getNode(j).select();
root.get_nodes().getNode(j).scrollIntoView();
Thios works fine. However, if the selected node is down the scroll area (about 10 items are visible at a time), the node is selected but the cursor does not scroll directly down to the selected node.
Thanks!
Ramjee
| this.rdtpAbsoluteBegin.DateInput.Attributes.Add("OnChange", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
| this.rdtpAbsoluteBegin.TimeView.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
| this.rdtpAbsoluteBegin.Calendar.Attributes.Add("OnClick", String.Format("javascript:DesignChangeMade('{0}')", CompositeEntity.CompositeID.ToString())); |
| <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" |
| AutoSize="True" Modal="True" Behavior="Resize, Close, Move" |
| Behaviors="Resize, Close, Move" InitialBehavior="None" Left="" |
| ShowContentDuringLoad="False" Top="" VisibleStatusbar="False" |
| VisibleTitlebar="False"> |
| <ContentTemplate> |
| <div id="criteriapanel" class="criteriapanel"> |
| <telerik:RadAjaxPanel ID="updatePanel" runat="server" |
| HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" > |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" |
| Height="39px" InitialDelayTime="300" IsSticky="True" MinDisplayTime="200" |
| Skin="Default" BackColor="yellow" OnClientShowing="MyClientShowing" OnClientHiding="MyClientHiding"> |
| </telerik:RadAjaxLoadingPanel> |
| </telerik:RadAjaxPanel> |
| <asp:Button runat="server" ID="GenerateReport" CssClass="button" Text="Generate Report" /> |
| <asp:Button runat="server" ID="CancelReport" CssClass="button" Text="Cancel" OnClientClick="CloseCriteria();return false;" /> |
| </div> |
| </ContentTemplate> |
| </telerik:RadWindow> |