Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
276 views
I am saving the Content Html string in a SQL database table with a maximum length of 1,000 characters (nvarchar).

When the user is entering information into the content area, how do I warn her that she is at the maximum character limit and how do I make sure that any string truncated to 1,000 is valid Html?

Your help would be much appreciated.

Thanking you in in anticipation.

Roger
Rumen
Telerik team
 answered on 09 Aug 2010
2 answers
122 views
Hi,

I use advanced edit form and has my own RadComboBox which is connected to some class data source, I want to manually save a value of that combobox to a resource, but unfortunatelly, I can't get a RadComboBox handler in Insert method. 

Please help me:
- how to get access to controls in Insert/Update mathods of advanced form
- how to get access to rasources in code behind

Lookin forward fast reply.

Best regards,
Maciej
Maciej Siwek
Top achievements
Rank 1
 answered on 09 Aug 2010
2 answers
112 views
It would be nice to be able to modify the elements of both "DetailRowCell" (specifically "td.DetailRowCell") and "rgDetailTable".

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 09 Aug 2010
1 answer
132 views
Dear Readers,

i am getting error when i added radtooltipmanager :
Error :
           Cannot unregister UpdatePanel with ID 'RadToolTipManager1RTMPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel.

i am not using master page. i am using class file like master page. i am having scriptmanager but i am not having updatepanel. if there is any possibility to use tooltip manager with out updatepanel.


Thanks in Advance.


Ragards,
Kalai
Svetlina Anati
Telerik team
 answered on 09 Aug 2010
2 answers
157 views
Hi,

I want to set the height of a collapsed (minimized) radDock control. I tried overriding the .RadDock.rdCollapsed style but it's marked "!important" in the base css. How can I do this?

Thanks,
Wouter van Beek
Wouter van Beek
Top achievements
Rank 1
 answered on 09 Aug 2010
1 answer
208 views
Hello again,

I use advanced form and trying to place my own user control in it. Unfortunatelly I'm getting an error 
"The name "owner" does not exist in the current context error"
both in case im using:
'<%# Container.Appointment.Owner.Localization.AdvancedClose %>'
or
- '<%# Owner.Localization.AdvancedClose%>'

I also tried '=' instead of '#' but it didn't work. As well I already have converted .ascx to web application.

Here's my sample:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="Trash.WebUserControl1" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<div class="rsAdvancedEdit" style="position: relative">
    <%-- Title bar.--%>
    <div class="rsAdvTitle">
        <%-- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%>
        <h1 class="rsAdvInnerTitle">
            Edit Appointment</h1>
        <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"
            CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
            <%# Owner.Localization.AdvancedClose%>
        </asp:LinkButton>
    </div>
    <div class="rsAdvContentWrapper">
        <asp:Button ID="btn1" runat="server" Text="Btn" />          
        <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
            <div class="rsAdvButtonWrapper">
                <asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">
                    <span><%# Container.Appointment.Owner.Localization.Save%></span>
                </asp:LinkButton>
                <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"
                    CausesValidation="false">
                    <span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                </asp:LinkButton>
            </div>
        </asp:Panel>
    </div>
</div>

Lookin forward quick reply.

Best regards,
Maciej
Peter
Telerik team
 answered on 09 Aug 2010
1 answer
167 views
Hi,

I'm trying to test validation with RadInputManager.
I found an issue with server validation when RadInputManager is added programmatically.

Here the code :
<%@ Page Language="VB" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<script runat="server">
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
      
        Dim InputMgr As RadInputManager = New RadInputManager
        InputMgr.ID = "RadInputManager1"
        InputMgr.Skin = "Vista"
 
        ' KO
        'Me.Page.Form.Controls.Add(InputMgr)
         
        dim oTextBoxSetting as TextBoxSetting = new TextBoxSetting
        oTextBoxSetting.TargetControls.Add(New TargetInput(TextBox1.UniqueID, True))
        oTextBoxSetting.Validation.IsRequired = True
        oTextBoxSetting.ErrorMessage = "Text is required !"
        InputMgr.InputSettings.Add(oTextBoxSetting)
         
        ' OK
        Me.Page.Form.Controls.Add(InputMgr)
          
    End Sub
      
</script>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  
    <head id="Head1" runat="server">
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Test RadInputManager Validation</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <asp:TextBox ID="TextBox1" runat="server" />
            <asp:Button ID="btnSubmit" runat="server" text="Submit" />
            <asp:ValidationSummary runat="server" ShowMessageBox="true" ToolTip="Must type in textbox!" HeaderText="Header Text" />        
        </form>
    </body>
</html>

When i add InputManager at the end of the method, it's works fine. (OK comment)
Also if it is added before settings, it's not works. (KO comment)

So, why and is it normal please ?

Regards,
Christophe

Nikolay Rusev
Telerik team
 answered on 09 Aug 2010
1 answer
243 views

 

I have a RadPane Scrolling="None".
Inside is 2 divs one a heading the other content.
I want the content to scroll if it overflows keeping the heading up top.
Content displays scroll bars but cannot scroll, any ideas?

 

<telerik:RadPane RadPane Scrolling="None">
   
 <div id="Heading">Heading and buttons</div>
 
 <div id="content" class="pnlBar" style="overflow:scroll>
    ..........................
 </div>
</telerik:RadPane>

Svetlina Anati
Telerik team
 answered on 09 Aug 2010
2 answers
233 views
I have a telerik:GridTemplateColumn in which I have placed an asp:image control (see code segment)
<telerik:GridTemplateColumn HeaderText="Status" UniqueName="TemplateColumn">
    <HeaderStyle Font-Bold="True" Font-Size="Medium" HorizontalAlign="Left" 
        VerticalAlign="Middle" Width="4%" />
        <ItemStyle Font-Size="Medium" HorizontalAlign="Center" 
            VerticalAlign="Middle"/>
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" 
                    ImageUrl="~/images/redlight.gif"/>
            </ItemTemplate>
</telerik:GridTemplateColumn>

I want to change the asp:image ImageUrl programatically in the ItemDataBound event.  The ItemDataBound GridItemEventArgs is "e".
I can access properties of this cell in a row as "e.item.cells[14]" and change its Backcolor: 
e.Item.Cells[14].BackColor = System.Drawing.Color.Red;

What syntax can I use to change the image url in this cell?
Mike2
Top achievements
Rank 1
 answered on 09 Aug 2010
2 answers
176 views
Hi,

How can I add extra info to an appointment in the day/week/month view? It currently displays the subject only, but I'd like it to also display the appointment Location.

Regards,
Anthony.
Anthony
Top achievements
Rank 1
 answered on 09 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?