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

Email and SMS Notification

5 Answers 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mncedi
Top achievements
Rank 2
Mncedi asked on 30 Jan 2019, 09:07 AM

Hi All,

I am very new to Telerik, doing all my work through threads. The program I am working on it is already do have tables and so on, now I cannot find anyone with problem of sending email and sms.

I need to have a clue on how I can retrieve the particular fields on my clients table and send SMS notification. Email suppose to have an attachment field to attach the document slip.

All I would like to see is ViewModel and View binding data - just these 2, would really appreciate any short program as an example.

 

Regards,

Mncedi

 

5 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 04 Feb 2019, 08:06 AM
Hello Mncedi,

The UI for WPF suite doesn't have a library that allows you sending sms or emails. You can check the following resources.

When it comes to UI you can use different controls from the Telerik package. For example, you can use RadGridView for the data tables. Or the RadDataForm to fill a form.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mncedi
Top achievements
Rank 2
answered on 04 Feb 2019, 10:46 AM

Hi Martin,


Thanks a lot for your reply I really appreciate, I would like to show you a piece of the project I am working on with hope that it will give you a clear view of what I am looking for.

I will then have 2 or 1 buttons at the bottom, If 2 of them then each button with will be responsible of sending either email or sms. If one then it will be determined by the checkbox checked.

Thanks,
Mncedi

View

<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:c="clr-namespace:BKB.BKBGSWeigh"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
             xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
             x:Class="BKB.BKBGSWeigh.SMSEmail.MaintainSMSEmailClients.MaintainSMSEmailListView"
             xmlns:util="clr-namespace:BKB.BKBGSWeigh.Utilities"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">

    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Loaded">
            <ei:CallMethodAction TargetObject="{Binding}" MethodName="LoadData"/>
        </i:EventTrigger>
    </i:Interaction.Triggers>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>
        <telerik:RadGridView Name="MainGridView"
                             ItemsSource="{Binding Relations, Mode=TwoWay}"
                             AutoGenerateColumns="False"
                             SelectedItem="{Binding SelectedRecord, Mode=TwoWay}" 
                             NewRowPosition="Top" ValidationType="Default"
                             ValidatesOnDataErrors="Default"
                             CanUserResizeColumns="True"
                             IsReadOnly="False"
                             Grid.Row="0" 
                             AlternateRowBackground="LightBlue"
                             AlternationCount="2"
                             HorizontalAlignment="Left"
                             Margin="0,10"       
                             VerticalAlignment="Stretch" 
                             Width="Auto"
                             >


            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name ID" 
                                            DataMemberBinding="{Binding AgrisCode, Mode=OneWay}" 
                                            IsReadOnly="True"
                                            />
                <telerik:GridViewDataColumn Header="Name" 
                                            DataMemberBinding="{Binding Name, Mode=OneWay}" 
                                            IsReadOnly="True"
                                            />
                <telerik:GridViewDataColumn Header="Address" 
                                            DataMemberBinding="{Binding City, Mode=TwoWay, NotifyOnValidationError=True}" 
                                            />
                <telerik:GridViewDataColumn Header="Cell Number" 
                                            DataMemberBinding="{Binding CellNumber, Mode=TwoWay, NotifyOnValidationError=True}" 
                                            />
                <telerik:GridViewDataColumn Header="Email" 
                                            DataMemberBinding="{Binding Email, Mode=TwoWay, NotifyOnValidationError=True}" 
                                            />
                <telerik:GridViewDataColumn Header="SMS Active" 
                                            DataMemberBinding="{Binding SMSTickets, Mode=TwoWay, NotifyOnValidationError=True}" 
                                            />
                <telerik:GridViewDataColumn Header="Email Active" 
                                            DataMemberBinding="{Binding EmailTickets, Mode=TwoWay, NotifyOnValidationError=True}" 
                                            />

            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <ContentPresenter  Grid.Row="1" ContentTemplate="{StaticResource MainGridViewPager}" />

    </Grid>
</UserControl>

 

0
Martin Ivanov
Telerik team
answered on 07 Feb 2019, 07:42 AM
Hello Mncedi,

Thank you for the description.

I am not sure where exactly those buttons will be positioned, but if they are outside of RadGridView you can simply add two RadButton controls. If you want to add this in the gridview rows, you can use a GridViewDataColumn and set its CellTemplate. In the template you can define the buttons that will send sms or email when clicked.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mncedi
Top achievements
Rank 2
answered on 07 Feb 2019, 07:50 AM

Thank you once again,

 

Last question, in your first reply you meant to say in Telerik I cannot use a fixture of sending email an sms? 

If I can please share just a small program with me.

 

Thanks

Mncedi

0
Martin Ivanov
Telerik team
answered on 07 Feb 2019, 07:54 AM
Hi Mncedi,

I am not sure that I understand your question. Can you please add some more details on it?

Also, in my first reply I meant that the Telerik WPF suite does not have an explicit API to send sms or email. The suite contains mostly UI components and data operations related elements. If you want to send an sms or email, you will need to write custom code to do this.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Mncedi
Top achievements
Rank 2
Answers by
Martin Ivanov
Telerik team
Mncedi
Top achievements
Rank 2
Share this question
or