Implementing send button on Email system in Radwindow

5 posts, 0 answers
  1. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 28 Oct 2011 Link to this post

    Please how can i implement the send button of the email system from the radwindow ?

    The sample you provided had a lot embedded that i cant even find the send button to trigger it from server side

    I will be glad to have a solution to this

    Thanks Great Telerik
  2. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 31 Oct 2011 Link to this post

    Please friends may i have a solution to implementing the send button
    from the sample code provided in the "rad window email system" sample

    Please I will be glad to have a help

    Thanks in anticipation!
  3. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4570 posts

    Posted 31 Oct 2011 Link to this post

    Hi Francis,

    The method you are looking for is called Button1_Click in the Details.aspx page (i.e. the one that is being loaded in the RadWindow). You can then obtain the contents of the RadEditor either via its Text property (plain text), or via its Content property (the full HTML content with the markup), for example
    RadEditor RadEditor1 = ((RadEditor)DetailsView1.FindControl("RadEditor1"));
    string content = RadEditor1.Content;
    //send your e-mail with the content string

    in the else statement of the button click's method. This is assuming you are using C#, a VB version is available as well, you can examine its counterpart to see how to get the reference.

    On the sending of the e-mail - this functionality is out of the scope of our controls, as it requires the developer to setup his/her own SMTP server (or have access to one) so that the message itself can be sent. You can, for example, use the System.Net.Mail namespace for communicating with the server.

    Best wishes,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  4. Francis Frank
    Francis Frank avatar
    35 posts
    Member since:
    Mar 2010

    Posted 01 Nov 2011 Link to this post

    Thanks guys for your kind assistance

    Love you all !

    I added an
    else if ( button.text == send ) { // sending email code} and it works fine now.

    Please but i used Grid Hierarchy to emulate the email transaction process.

      Please how do load the reply of the email to the hierarchy: when any mail is clicked from the parent grid, the mail_id will be selected and the corresponding reply will be loaded in the inner grid

    Code in Server Side please

    Thanks
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4570 posts

    Posted 02 Nov 2011 Link to this post

    Hello Francis,

    I believe you may find the following demo useful, as it is similar to your scenario: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx.


    Greetings,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top