This is a migrated thread and some comments may be shown as answers.

Implementing send button on Email system in Radwindow

4 Answers 149 Views
Window
This is a migrated thread and some comments may be shown as answers.
Francis Frank
Top achievements
Rank 1
Francis Frank asked on 28 Oct 2011, 04:55 PM
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

4 Answers, 1 is accepted

Sort by
0
Francis Frank
Top achievements
Rank 1
answered on 31 Oct 2011, 01:22 PM
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!
0
Marin Bratanov
Telerik team
answered on 31 Oct 2011, 04:08 PM
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
0
Francis Frank
Top achievements
Rank 1
answered on 01 Nov 2011, 11:27 AM
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
0
Marin Bratanov
Telerik team
answered on 02 Nov 2011, 11:44 AM
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
Tags
Window
Asked by
Francis Frank
Top achievements
Rank 1
Answers by
Francis Frank
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or