Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
68 views
i can't seem to change the size of the tab, it is big and i need to adjust it, doing fontsize is not helping. I also would like to change the size of the tab image too. when i look at the demo it was small and nice, but my is so big. Plus how do i make a scroll button for parent tab. Could you show me how to do it? thank you very much. 

 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Align="left" Font-Size="X-Small" Orientation="VerticalLeft" PerTabScrolling="true"></telerik:RadTabStrip>

appdev
Top achievements
Rank 1
 answered on 03 Nov 2008
1 answer
80 views
How can I find the RadWindowManager from server side code? I have a composite control that uses RadWindows and I don't want to add a new RadWindowManager if one already exists on the page. I want to grab the existing and use that in my composite control.
Georgi Tunev
Telerik team
 answered on 03 Nov 2008
2 answers
184 views
i can't seem to change the size of the tab, it is big and i need to adjust it, doing fontsize is not helping. could you show me how to do it? thank you very much. 

 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Align="left" Font-Size="X-Small" Orientation="VerticalLeft" PerTabScrolling="true"></telerik:RadTabStrip>

 

how do i make the text smaller and also the tab smaller. thank you in advance.

Paul
Telerik team
 answered on 03 Nov 2008
1 answer
201 views
i can't seem to change the size of the tab, it is big and i need to adjust it, doing fontsize is not helping. I also would like to change the size of the tab image too. when i look at the demo it was small and nice, but my is so big. Plus how do i make a scroll button for parent tab. Could you show me how to do it? thank you very much. 

 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Align="left" Font-Size="X-Small" Orientation="VerticalLeft" PerTabScrolling="true"></telerik:RadTabStrip>

 

 

Paul
Telerik team
 answered on 03 Nov 2008
2 answers
187 views
Here is the setup:
Content page with master page.  Master page contains a textbox, several buttons and several dropdowns shown on the left side, and top portion contains an image.  Contentplaceholder is contained in an RadAjax panel.  Masterpage has RadScriptManager, RadAjaxManager (with multiple settings for the buttons and dropdowns on the master page), 2 RadAjaxLoadingPanels and a RadWindowManager (with 3 RadWindows).
The content Page contains 4 panels that are made visible depending on user selection and if data is returned based on user request.  The request is done via the text box or a combination of the dropdowns on the master page.  The RadToolTipManager is located on the Content Page, and at the beginning did not contain any TargetControls.  They are added dynamically by the code-behind when data is found by the user's request.  This data is shown in a datalist, so the datalist's ItemDataBound method will add TargetControls to the RadToolTipManager for each record.  So initially there are not any TargetControls in the RadToolTipManager on the content page.  Only 1 of the afore-mentioned 4 panels in the content page contain this data and will utilize the RadToolTipManager, and the first panel shown to a user does not use the RadToolTipManager.
If the user's selection critieria requires the user to make a choice before the data list can be populated, panel #2 is shown. This panel will present the user with a radio button list and button to narrow their selection down.  If presented with this panel, the afore-mentioned textbox on the master page will show the dynamic tooltip instead of the hard-coded tooltip for the textbox.  Keep in mind there have not been any targetcontrols added to the radtooltipmanager yet because we have not generated a datalist which causes the code-behind to add targetcontrols. 
Now once the user makes a selections from the radiobuttonlist, the panel containing the datalist can be loaded and targetcontrols for the radtooltipmanager are created, and the hard-coded tooltip for the textbox on the master page is shown correctly, but the code that is fired when the user clicked the button to accept the selection from the radiobuttonlist does not fire correctly and all the comboboxes on the master page do not get populated correctly to reflect the user's choice.  I know this because I log the different actions taken in the code behind.

Here is what the RadToolTipManager looks like in the content page:
        <telerik:RadToolTipManager  ID="RadToolTipManager1" runat="server"   
            AutoTooltipify="False" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate"    
            Position="TopLeft" BackColor="#FFFFCC" BorderStyle="Solid"   
            BorderWidth="1px" Skin="WebBlue" RelativeTo="Mouse" AutoCloseDelay="7000"

SOLUTION:
So to get this working here is what I did.  I added an asp:textbox control to the web page and set a CssClass that would not allow it to be displayed. I then added this textbox as a targetcontrol to the RadToolTipManager.  This makes the textbox on the master page always correctly show the hard-coded tooltip, and the code-behind to function correctly when a user clicks the button to select an item from the radiobuttonlist to populate the comboboxes on the master page.

Conclusion:
If the RadToolTipManager does not have any TargetControls, and the AutoTooltipify = 'false', then the RadToolTipManager should not randomly Tooltipify another control, and I have no idea why the code in the code-behind would not fire once the RadToolTipManger randomly started Tooltipifying controls on the pages.  So in my opinion, this is a bug, albeit with a simple solution, but a bug nonetheless.

Please let me know if you have any suggestions on this issue, and please do not ask me send you a sample project.  I don't have time to create one for you, and I cannot send my current project, because 1) it is much bigger than what I depicted here 2) the database setup is too complicated to just throw something together and send to you.  If you have additional questions about my project, please let me know and I will do my best to answer them, or provide an example if possible.

Thanks!
James
Top achievements
Rank 2
 answered on 03 Nov 2008
2 answers
381 views
Hi there,

I have a page which has a RadTabStrip and a RadMultiPage.
The radMultiPage has 7 pageViews in which there is an usercontrol.
The problem I have is that even if I set RenderSelectedPageOnly="true" to the radMultiPage, the page loads all usercontrols.

<telerik:RadAjaxManager runat="server" ID="AjaxForUserInfo">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadTabStrip Width="700px" ID="RadTabStrip1" AutoPostBack="true" runat="server" CausesValidation="false" Skin="Sunset" MultiPageID="RadMultiPage1" SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="false">
                                <Tabs>
                                    <telerik:RadTab Text="A">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="B">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="C">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="E">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="F">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="G">
                                    </telerik:RadTab>
                                    <telerik:RadTab Text="H">
                                    </telerik:RadTab>
                                </Tabs>
                            </telerik:RadTabStrip> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" RenderSelectedPageOnly="true" SelectedIndex="0" CssClass="pageView" Width="700px">
                                <telerik:RadPageView ID="RadPageView1" runat="server">
                                    <uc1:A runat="server" ID="A" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView2" runat="server">
                                    <uc3:B runat="server" ID="B" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView3" runat="server">
                                    <uc2:C runat="server" ID="C" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView7" runat="server">
                                    <uc7:D runat="server" ID="D" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView6" runat="server">
                                    <uc6:E runat="server" ID="E" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView4" runat="server">
                                    <uc4:F runat="server" ID="F" />
                                </telerik:RadPageView>
                                <telerik:RadPageView ID="RadPageView5" runat="server">
                                    <uc5:G runat="server" ID="G" />
                                </telerik:RadPageView>
                            </telerik:RadMultiPage>

Your help would be appreciated,

Thanks,

Toby


JC
Top achievements
Rank 1
 answered on 03 Nov 2008
4 answers
153 views
Is there a way to highlight the cell you are currently hovering over?
Cheers,
Paul
Daniel
Telerik team
 answered on 03 Nov 2008
3 answers
106 views
How I can handle appointment drag server side to update my database ? Actually, I don't use datasource to populate my scheduler. I mus populate manually and I want to update my database manually server side when appointment is dragged

Thanks
Peter
Telerik team
 answered on 03 Nov 2008
2 answers
116 views

Howdy, y'all.  I'm sure I'm missing something really basic, here.  I'm trying to write some additional information to the client-side attributes for a raddateinput control.  (This is part of a larger project, writing a custom validator, etc).  I've simplified out to a basic web page illustrating my challenge.  Here's my ASPX:

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="test5.aspx.cs" Inherits="TASDashboard.Secured.test5" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Register assembly="Controls" namespace="TASDashboard" tagprefix="cc1" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
<form runat="server">  
<script language="javascript" type="text/javascript">  
    function testFunction(sender, args) {  
        alert(sender.testAttribute); //shows as undefined  
    }  
</script> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
        <telerik:RadDateInput ID="RadDateInput1" Runat="server" DateFormat="HHmm"   
            Skin="Office2007">  
        </telerik:RadDateInput> 
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" /> 
    <p> 
        <asp:Button ID="Button1" runat="server" Text="Button" /> 
    </p> 
</form> 
</body> 
</html> 
 

and here's my C#:

 

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
namespace TASDashboard.Secured  
{  
    public partial class test5 : DashboardBasePage  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadDateInput1.ClientEvents.OnValueChanged = "testFunction";  
            RadDateInput1.Attributes.Add("testAttribute""hello");  
 
        }  
    }  

And when I run it, and change the value of the raddateinput control, my javascript routine runs as expected, but sender.testAttribute is undefined.  Should I be looking somewhere else for testAttribute?

Thank you!
Scott
Scott
Top achievements
Rank 1
 answered on 03 Nov 2008
1 answer
96 views
This is probably a dumb question but I can't seem to figure it out.  How can I select the node that just got dropped somewhere?  I know of the .selected property but I am not sure how to reference it.  Here is my drag & drop code:

Private Shared Sub PerformDragAndDrop(ByVal dropPosition As RadTreeViewDropPosition, ByVal sourceNode As RadTreeNode, ByVal destNode As RadTreeNode) 
        If (sourceNode.Equals(destNode) OrElse sourceNode.IsAncestorOf(destNode)) Then 
            Return 
        End If 
        sourceNode.Owner.Nodes.Remove(sourceNode) 
        Select Case (dropPosition) 
            Case RadTreeViewDropPosition.Over 
                ' child 
                If Not sourceNode.IsAncestorOf(destNode) Then 
                    destNode.Nodes.Add(sourceNode) 
                End If 
            Case RadTreeViewDropPosition.Above 
                ' sibling - above                     
                destNode.InsertBefore(sourceNode) 
            Case RadTreeViewDropPosition.Below 
                ' sibling - below 
                destNode.InsertAfter(sourceNode) 
        End Select 
    End Sub 

Yana
Telerik team
 answered on 03 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?