Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
81 views
Hi All,

I am using a Rad editor as my EmailBody - This one comes with all bold,italic,underline...etc (All functionality that a outlook mail will have)

<telerik:RadEditor ID="txtEmailBody" runat="server" Width="750px" StripFormattingOptions="MSWord, Css, Span, ConvertWordLists" EditModes="All" 
    StripFormattingOnPaste="MSWord, Css, Span, ConvertWordLists" ToolsFile="~/DesktopModules/Test/RadEditorTools.xml">
</telerik:RadEditor>

When I have the above code It is not letting me enter any text in the "txtemailbody"  When I add enabletextareamode="True" to the above code I am able to enter text but all the "old,italic,underline...etc (All functionality that a outlook mail will have) " functionality is not there any more.

How can I keep the functionality and enable Rad editor to accept text?? Please Advise??
Sima
Top achievements
Rank 1
 answered on 22 Aug 2012
2 answers
97 views

HI,
excuse for my english am french
i start  to build my new back office manager with your solution.
they start to develop in dotnet (transfer  to  asp 3.0)

i build an news manager with
datagrid / insert-update-delete with usercontrol ( in datagrid)
my news manager use 2 racontrols : editor (they work fine !!!) and radupload for litle image of the news  all page are in masterpage :

 

In actu.aspx they have one raddatagrid they call webusercontrol.ascx

In webusercontrolascx they have radeditor and radupload.


this code work when they run in single page (not include in master page)

 

In masterpage the radeditor work well but the radupload return nothing I thinks i can’t find this control.



    Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand

        'Get the GridEditableItem of the RadGrid

        Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)

        Dim MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

        'InitializeUpdateParameter(DirectCast(e.Item.FindControl("RadUpload1"), RadUpload))

        'Get the primary key value using the DataKeyValue.

        Dim actuID As String = editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("ID").ToString()

        'Access the textbox from the edit form template and store the values in string variables.

 

        Dim Titre As String = CType(MyUserControl.FindControl("titre"), TextBox).Text

        Dim Description As String = CType(MyUserControl.FindControl("RadEditor1"), RadEditor).Content

        'Dim RadUpload1 As RadUpload = TryCast(e.Item.FindControl("RadUpload1"), RadUpload)

        Dim RadUpload1 As RadUpload = CType(MyUserControl.FindControl("RadUpload1"), RadUpload)

        Dim Imageup As String

        If RadUpload1.UploadedFiles.Count > 0 Then

            System.Threading.Thread.Sleep(3000)

        End If

 

        For Each f As UploadedFile In RadUpload1.UploadedFiles

            If f.FileName <> "" Then

                Imageup = f.GetName

            Else

                Imageup = "none"

                'Dim imaup As String =

                'Open the SqlConnection

            End If

        Next

        Try

            SqlConnection.Open()

            'Update Query to update the Datatable

            Dim updateQuery As String = "UPDATE Actuvdotnet set TitreNews='" & Titre & "',Description='" & Description & "',Image='" & Imageup & "' where ID='" & actuID & "'"

            SqlCommand.CommandText = updateQuery

            SqlCommand.Connection = SqlConnection

            SqlCommand.ExecuteNonQuery()

            'Close the SqlConnection

 

 

            SqlConnection.Close()

        Catch ex As Exception

 

            RadGrid1.Controls.Add(New LiteralControl("Impossible de mettre à jour la base de donnée : " + ex.Message))

            e.Canceled = True

 

        End Try

 

    End Sub

In master page the radeditor work well but the radupload return nothing I thinks i can find this control

Can you help me please.

Neri
Top achievements
Rank 1
 answered on 22 Aug 2012
13 answers
822 views
Hi,

I am new to your controls - but very impressed, keep it up.

My issue is that with a RadGrid (Q3 2008) when the text of a field is too long to fit in the column, and has no whitespace on which to break, the text simply overflows into the adjacent column. Have I missed a setting/option somewhere, in my case just forcing a break at the column width would be fine. Incidentally I get the same behaviour with the PDF export.

I have searched the support site and don't see anyone else asking, and I surely am not the only person getting the effect?
Purush
Top achievements
Rank 1
 answered on 22 Aug 2012
4 answers
337 views
hi , 
i am using a radgrid editing to edit row in place . my probem is that i can't manager the width of editForm , it occupate all the width of parent table . 
thank you for reply . 

<EditFormSettings CaptionFormatString="Mise à jour de la fiche : {0}"  ColumnNumber="2"  
                             
                                  InsertCaption="Nouveau Compte"
                         
                     
                                  CaptionDataField="DenominationClient"
                        
                                  EditColumn-HeaderText =""
                                  
                                  EditColumn-ButtonType="PushButton"
                                   
                                  EditColumn-CancelText="Annuler"
                                 
                                  EditColumn-InsertText="Ajouter" 
                              
                                  EditColumn-UpdateText="Valider"
                                 
                           
                                  FormCaptionStyle-Font-Bold="true"
                                  PopUpSettings-Modal="true"
                                  EditColumn-ItemStyle-Font-Bold="true"
                                  FormTableItemStyle-Font-Bold="true"
                                  FormTableAlternatingItemStyle-Font-Bold="true"
                                  FormTableAlternatingItemStyle-VerticalAlign="Middle"
                                  FormTableItemStyle-VerticalAlign="Middle"
                                  FormTableItemStyle-HorizontalAlign="left"
                                  FormTableAlternatingItemStyle-HorizontalAlign="left"
                                  FormTableStyle-HorizontalAlign="left"
                                  PopUpSettings-ShowCaptionInEditForm="true"
                                  EditColumn-SortedBackColor="ActiveBorder"    >
reguapo
Top achievements
Rank 1
 answered on 22 Aug 2012
7 answers
326 views
Hi,

I am reviewing a sample on how to edit and insert an appointment with a single click. This sample is easy enough to understand and to implement. But I was interested in putting a "twist" on this. This sample provides a JavaScript function editAppointment(), whick places an appointment in edit mode. I would like to call this function from code-behind, passing a RadScheduler and a SchedulerEventArgs to the function.

I am thinking, for examle, of placing an asp:Button on the same page as my Scheduler control, and then creating an OnClick event for the button. Then I would like to call editAppointment() from the button's Click event. Before I click the button, I could capture the SchedulerEventArgs by first clicking on an appointment, and using the radScheduler_AppointmentClick() event to capture the value of SchedulerEventArgs. Then I would click my button to call and execute editAppointment(). But I don't know how to call this javascript function from within my button click event.

Anyone know how to do this?

Thanks,
Steven
Peter
Telerik team
 answered on 22 Aug 2012
3 answers
126 views
Hello,
My requirement is to build two panes. Left should be collapsed and have two sliding panes for preview buttons. Right pane should load usercontrol and should be expanded to 100%. The problem is that sliding pane doesnt have method set_contenturl(). so i cannot load external urls for each sliding pane. If i load the url in parent pane than the sliding pane gets overwritten and invisible. Somehow i cannot get right pane to expand upto 100%.

<

 

 

telerik:RadSplitter ID="RadSplitter1" Runat="server" Height="100%"

 

 

 

PanesBorderSize="3" Skin="Sunset" SplitBarsSize="8px" Width="100%">

 

 

 

<telerik:RadPane ID="RadPane1" Runat="server">

 

 

 

<telerik:RadSlidingZone ID="RadSlidingZone1" Runat="server">

 

 

 

<telerik:RadSlidingPane ID="RadSlidingPane1" Runat="server" Title="Load Yahoo" TabView="TextAndImage" OnClientExpanding="OnYahooExpanding" EnableDock="true"

 

 

 

CollapseText="Yahoo">

 

 

 

</telerik:RadSlidingPane>

 

 

 

<telerik:RadSlidingPane ID="RadSlidingPane2" Runat="server" Title="Load Google" TabView="TextAndImage" OnClientExpanding="OnGoogleExpanding" EnableDock="true"

 

 

 

CollapseText="Google">

 

 

 

</telerik:RadSlidingPane>

 

 

 

</telerik:RadSlidingZone>

 

 

 

</telerik:RadPane>

 

 

 

<telerik:RadSplitBar ID="RadSplitBar1" runat="server">

 

 

 

</telerik:RadSplitBar>

 

 

 

<telerik:RadPane ID="RadPane2" runat="server">

 

 

 

<uc1:WebUserControl ID="WebUserControl1" runat="server" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadSplitter>

Here is javascript code

 

<

 

 

telerik:RadScriptBlock ID="scriptBlock" runat="server">

 

 

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

 

 

function OnYahooExpanding(sender, args) {

 

viewYahoo();

}

 

 

function OnGoogleExpanding(sender, args) {

 

viewGoogle();

}

 

 

function viewYahoo() {

 

 

 

var splitter = $find("<%=RadSplitter1.ClientID %>");

 

 

 

var pane = splitter.getPaneById("<%=RadPane1.ClientID %>");

 

 

 

if (!pane) return;

 

pane.set_contentUrl(

 

'http://www.yahoo.com');

 

pane.expand();

}

 

 

function viewGoogle() {

 

 

 

var splitter = $find("<%=RadSplitter1.ClientID %>");

 

 

 

var pane = splitter.getPaneById("<%=RadPane1.ClientID %>");

 

 

 

if (!pane) return;

 

pane.set_contentUrl(

 

'http://www.google.com');

 

pane.expand();

}

 

 

</script>

 

Aarsh
Top achievements
Rank 1
 answered on 22 Aug 2012
3 answers
135 views
Hello

I'm french and I have a radgrid that spoke french until I update the library asp ajax this morning via the exe telerikontrolpanelsetup

Old versions (not updated) of my solution, work very well

Where is the problem ?

Thank for your help

Anne
Antonio
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
78 views
Hi,

I want to redirect on another page by double clicking on date slote. Please see the attachment.



Thanks
Manish
Peter
Telerik team
 answered on 22 Aug 2012
1 answer
111 views
hello to all,

                i would like to ask about this method delete in rad scheduler coz i'm having a validation once there are sub appointment connected on the main appointment he cannot delete unless there are no sub appointment connected to it..my problem is when i click the delete button on confirm dialog box on scheduler the item that supposed to be not to be deleted because of the validation the main appointment disappear what i wanted is when my validation check for this method the item should not be deleted on radscheduler it should still appear ..how can i achieve this.? please guys i need your help..


thanks in advance
Peter
Telerik team
 answered on 22 Aug 2012
2 answers
231 views
I am using Telerik ASP.NET AJAX Version 2012.1.411.40.  I have a page  where the user enters some search criteria and the search results are returned and displayed in a radGrid on the page.  If the entry in the grid is editable, an edit pencil is displayed. When the user clicks the edit pencil, a custom edit form is displayed in a radWindow. This window is opened from the codebehind (I need to pass several values to the edit form so that I know which record I need to edit) in the OnClick event handler using the following code:

rwinEditCustomer.Modal =

 

true;

 

rwinEditCustomer.NavigateUrl =

 

String.Format("CustomerAddEdit.aspx?source={0}&addrid={1}&cntctid={2}", lblSource.Text, hdnAddressId.Value, hdnContactId.Value);

 

 

 

string script = "function f(){$find(\"" + rwinEditCustomer.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";

 

 

 

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "winEditCust", script, true);

 


Buttons are available on the edit form for the user to delete the entry, save the information, or cancel.  If the user clicks delete, I use radconfirm to display a confirmation message. If the user choses to continue with the delete, the record is deleted, the radwindow is closed and the radgrid is rebound. If the user clicks save, the information is saved, the radwindow is closed and the radgrid is rebound.  If the user clicks cancel, the radwindow is closed. That all seems to be working. Now  I need to detect if the user changed any information. If data has been changed, I need to use radconfirm to warn the user about unsaved changes if they click cancel or try to close the edit window. I don't want to warn the user if they click save or if they close the edit window without changing any information.  I've searched through the forums for guidance but haven't been able to connect the dots to get this to work the way I need it to.  At one point, I had it working where I got a valid unsaved changes warning (not using radconfirm though) when the cancel was clicked. But when I tried to close the edit window, the radwindow closed and then displayed the warning which is not the order I'm looking for. 

Any suggestions on how I can do this?

Thanks
Michele
Top achievements
Rank 1
 answered on 22 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?