Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
323 views
I would like the async upload to automatically postback after I select a file.

Is that possible?
Gerry
Top achievements
Rank 1
 answered on 06 Mar 2013
1 answer
61 views
Hi there,

We are using the editor to save HTML content to a database.

For some reason, the editor sometimes adds a HTML body tag to the content.

For example, the body tag was added to a simple HTML list we had:

<body class="RadEditorOverrides" contenteditable="true">
        <ul>
            <ul>
                <ul>
                    <p>&nbsp;</p>
                </ul>
            </ul>
        </ul>
    </body>

The content filter I have set is: 

ContentFilters="RemoveScripts,FixUlBoldItalic,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent,ConvertCharactersToEntities,FixEnclosingP"

Would anyone be able to offer some advice on how this problem can be resolved?

 

 

Rumen
Telerik team
 answered on 06 Mar 2013
3 answers
342 views
Is there a way to hide the tooltip when you click on something else on the page?  I saw thread with suggestions to add an onclick event to the form or the body, but then the tooltip goes away even if you click on the tooltip itself.

Thanks,
Rimma
Marin Bratanov
Telerik team
 answered on 06 Mar 2013
3 answers
401 views
I am utilizing DataGroupColumn to dynamically create multiple series groupings based on my data. My line charts display properly, but  I can't figure out how to hide the Value labels for all the series.
I see references to using
            -  Series[0].Appearance.ShowLabels = false.  But, since there are no explicit series created, this doesn't work. 

I've attached an image to demonstrate the issue.
thanks for the help.


Also, I just tried the following in the ItemDatBound event, and it does not seem to affect the display at all (IE: the labels still show up)

            foreach (ChartSeries s in myChart.Series) {
                s.Appearance.ShowLabels = false;
                s.DefaultLabelValue = "";
}
Ves
Telerik team
 answered on 06 Mar 2013
5 answers
650 views
Hi,

I have two issues with rad window:

1. Is it possible to prevent rad window from being dragged outside of the screen boundaries?I tried using
KeepInScreenBounds property, but it didn't help.

Here is my code example, and screen shot is attached:

 

<telerik:RadWindowManager ID="rwm" runat="server" ShowContentDuringLoad="false" Behaviors="Close,Move"

VisibleStatusbar="false" Skin="Gray" Modal="true" KeepInScreenBounds = "true">

<Windows>

 

<telerik:RadWindow ID="rwAuditCredentials" runat="server" NavigateUrl="~/Pages/Audits/AuditCredentials.aspx"

Title="Audit Credentials" Height="230px" Width="360px" KeepInScreenBounds="true">

</telerik:RadWindow>

</Windows>

 

</telerik:RadWindowManager>

2. How can I prevent from radwindow from being opened outside of the screen bounderies?
I got my radwindow opened when the title bar is outside the screen bounderies (as it looks in my print screen) and I couldn't drag it or close it.

Thanks!
Marin Bratanov
Telerik team
 answered on 06 Mar 2013
1 answer
114 views
hi,
 i use the autosieze mode, this is my code:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function openRadWindow(email) {
var oWnd = radopen("appuntamento.aspx?email=" + email, "RadWindowAppuntamento");
}
</script>
</telerik:RadCodeBlock>
<telerik:RadWindowManager ID="RadWindow_Conferma" runat="server" Modal="True" Skin="Office2010Silver">
<Windows>
<telerik:RadWindow ID="RadWindowAppuntamento" runat="server" Style="z-index: 8000"
ShowContentDuringLoad="false" Behaviors="None" AutoSize="true"
Modal="True" Behavior="None" Font-Names="Verdana" Font-Size="Small" ReloadOnShow="True"
IconUrl="/image/iconlogo.png" Width="200px" Height="100px"
VisibleStatusbar="False" Skin="Office2010Silver" NavigateUrl="appuntamento.aspx"
EnableViewState="False" InitialBehaviors="Close">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

and i call radwindow from code behind:

Private Sub Btn3_Click(sender As Object, e As System.EventArgs) Handles Btn3.Click
    ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", "openRadWindow('" & contenitoredati.Value & "');", True)
End Sub

now when i call the radwindow, the result is wrong, please see the image posted...

How can do it?

Marin Bratanov
Telerik team
 answered on 06 Mar 2013
1 answer
232 views
Hi, all.

I have a RadWindowManager sitting in my default.aspx page ("wndMgrDefault").  I'm trying to add a RadWindow to it from Javascript via a WebMethod (using the OnClientClicked property of a RadButton that's also on the same page), but I can't seen to find the wndMgrDefault control when I'm inside the method itself.

Javascript:
function ViewRating(sender, args) {
    PageMethods.set_path('default.aspx');
    PageMethods.OpenRating();
}


VB:
<System.Web.Services.WebMethod()> _
Public Shared Sub OpenRating()
    Dim currPg As Page = DirectCast(HttpContext.Current.Handler, Page)
    Dim mgr As RadWindowManager = DirectCast(currPg.FindControl("wndMgrDefault"), RadWindowManager)
    Dim wndRatings As New RadWindow
    Dim ht As Integer = CInt(HttpContext.Current.Session("WND_HT").ToString)
    Dim wd As Integer = CInt(HttpContext.Current.Session("WND_WD").ToString)
 
    With wndRatings
        ...
    End With
 
    mgr.Windows.Add(wndRatings)
End Sub

For some reason, the mgr variable is coming back as Nothing. If I make the routine a normal server-side method, I can add the window using "wndMgrDefault.Windows.Add(wndRatings)" with no problem, but I didn't want to re-render the entire page every time someone clicks this button.  Is there anything I'm missing by trying to add a RadWindow to the window manager doing it this way?
Marin Bratanov
Telerik team
 answered on 06 Mar 2013
4 answers
169 views
One of the things I like about the RadToolTip is its extremely simple to work with. No code is required, all it takes is setting a the TargetControlID and a few other properties:

<telerik:RadToolTip ID="StudentLastNameRadToolTip" TargetControlID="FullNameLabel" RelativeTo="Element" runat="server" HideEvent="ManualClose" ShowEvent="OnClick" Modal="True" ShowDelay="0">

Is there an equivalent way of using the RadWindow?
Marin Bratanov
Telerik team
 answered on 06 Mar 2013
1 answer
210 views
Hi,

I have a splitter, slidingzone and slidingpane combination implemented. 
The first time client loads the site in browser and then the page on which this slider is placed, the sliding pane is not overlapping the div, rather its pushing it on the right, adding margin to it. At this time it flickers once and then disappears but the div doesnt comes back to original place. 

If a single post back is done to the page it never happens again. 
Please see the attached screenshots for the detailed scenario. 

The code I am using for splitter and slidingzone is as follows:

<telerik:radsplitter id="RadSplitter1" runat="server" orientation="Vertical" height="230px"
    borderstyle="None" borderwidth="0">
        <telerik:RadPane ID="RadPane1" runat="server" Height="100%" BorderStyle="None" BorderWidth="0">
                <telerik:RadSlidingZone ID="RadSlidingZone1" runat="server" Height="100%" BorderStyle="None" ClickToOpen="true" 
                    BorderWidth="0" Width="27px" >
                    <telerik:RadSlidingPane ID="RadSlidingPane1" runat="server" Width="460px" Title="Add Stakeholder"
                        EnableDock="false" Height="240px" EnableResize="false" MinHeight="200" MinWidth="350">
                        <div id="dvStakeholder">
                            <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td colspan="2" style="color: White;">
                                        Add Stakeholder
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 10px;">
                                          
                                    </td>
                                </tr>
                                <tr>
                                    <td class="innerTd">
                                        Stakeholder Type
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="rcbStakeholderType" runat="server" AllowCustomText="True"
                                            Width="265px" OnClientSelectedIndexChanged="HideShowByStakeholderType" OnClientLoad="HideShowByStakeholderType"
                                            DataSourceID="LinqDataSource3" DataTextField="Type_Description" DataValueField="Type_ID">
                                        </telerik:RadComboBox>
                                        <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="CategoryTypeDataContext"
                                            EntityTypeName="" Select="new (Type_ID, Type_Description, Category_ID, Category, Company_ID)"
                                            TableName="View_CategoryType_Lists" Where="Company_ID = @Company_ID AND Category_ID = @Category_ID">
                                            <WhereParameters>
                                                <asp:Parameter Name="Company_ID" />
                                                <asp:Parameter Name="Category_ID" />
                                            </WhereParameters>
                                        </asp:LinqDataSource>
                                    </td>
                                </tr>
                                <tr id="trFirstName">
                                    <td class="innerTd">
                                        First Name
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtFirstName" runat="server" MaxLength="50" Width="260px" EmptyMessage="Maximum 50 Characters" EmptyMessageStyle-Font-Italic="true"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr id="trLastName">
                                    <td class="innerTd">
                                        Last Name
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtLastName" runat="server" MaxLength="50" Width="260px" EmptyMessage="Maximum 50 Characters" EmptyMessageStyle-Font-Italic="true"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr id="trName" style="display: none;">
                                    <td class="innerTd">
                                        Name
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtName" runat="server" Width="260px" MaxLength="50"  EmptyMessage="Maximum 50 Characters" EmptyMessageStyle-Font-Italic="true">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                          
                                    </td>
                                    <td>
                                          
                                    </td>
                                </tr>
                                <tr id="trGroupCategory" style="display: none;">
                                    <td class="innerTd">
                                        Group Category
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="rcbGroupCategory" runat="server" AllowCustomText="True"
                                            Width="265px" Height="160px">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td>
                                          
                                    </td>
                                    <td>
                                          
                                    </td>
                                </tr>
                                <tr>
                                    <td class="innerTd">
                                        Parent
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="rcbParentStakeholder" runat="server" DataMember="DefaultView"
                                            CloseDropDownOnBlur="true" DataTextField="StakeholderRelationship" DataValueField="Stakeholder_ID"
                                            Height="160px" Width="265px" EmptyMessage="Enter Stakeholder Name and Press Enter" AllowCustomText="true"
                                            DropDownWidth="265px" OnClientKeyPressing="OnKeyPressGetParentStakeholder"
                                            OnClientDropDownClosing="onClientClosing" OnClientBlur="onClientBlur" LoadingMessage="Loading.." MarkFirstMatch="true" >
                                        </telerik:RadComboBox>
                                        <%--<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="StakeholderDataContext"
                                            EntityTypeName="" Select="new (StakeholderRelationship, Stakeholder_ID)" TableName="View_Stakeholder_Search_Lists">
                                        </asp:LinqDataSource>--%>
                                      
                                    </td>
                                </tr>
                                <tr>
                                    <td class="innerTd">
                                        Title
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtTitle" runat="server" Width="260px" MaxLength="200" EmptyMessage="Maximum 200 Characters" EmptyMessageStyle-Font-Italic="true"></telerik:RadTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                          
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="right">
                                        <asp:Button ID="btnSaveStakeholder" runat="server" Text="Save" OnClientClick="CollapsePane();" />
                                        <asp:Button ID="btnCancelStakeholder" runat="server" Text="Cancel" OnClientClick="CollapsePane();" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
          <telerik:RadPane ID="Radpane2" runat="server" Width="96%" Height="100%" BorderStyle="None" BorderWidth="0">
      </telerik:RadPane>
   </telerik:radsplitter>

Vessy
Telerik team
 answered on 06 Mar 2013
1 answer
105 views
I have an issue with the RadMenu with EnableScreenBoundaryDetection="true" EnableAutoScroll="true"


A sub-submenu expanded near the bottom of the page will keep its original Y position, shrink and AutoScroll, but why won't it shift up to fit on the screen.

When AutoScroll is turned off, the menu does shift up to fit on the screen.

Is there an attribute I'm missing to get these to work together with BoundaryDetection implemented before AutoScroll.

I would like it to shift up so that as much of the sub-submenu can be visible and then autoscroll the remaining.
Can this be manually done through the OnClientItemShowing event?


Thanks
Kate
Telerik team
 answered on 06 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?