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

Show ToolTip with a Custom Message Just once in Form Template Edit Form while insert or edit mode.

2 Answers 78 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
gc_0620
Top achievements
Rank 1
gc_0620 asked on 10 Feb 2015, 01:46 AM
Hi all, using VS 2013 with UI for ASP.NET AJAX Q3 2014 SP1.

Below is my prototype.

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

I would like to popup a ToolTip Message just once (i.e. "You are adding/Editing new Employee...") for 10 seconds when user's open the Edit form to Insert/Edit.

Thanks

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Feb 2015, 04:53 PM

Hi,

I believe the RadNotification control will be of use for this scenario. Here is a basic example:

<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand">
    <MasterTableView>
        <Columns>
            <telerik:GridEditCommandColumn>
            </telerik:GridEditCommandColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<telerik:RadNotification ID="RadNotification1" runat="server" AutoCloseDelay="10000" Width="200px" Height="100px" VisibleTitlebar="false"
                         Text="You are adding/Editing new Employee" ContentIcon="info" Position="Center">
    <NotificationMenu Visible="false"></NotificationMenu>
</telerik:RadNotification>
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    RadGrid1.DataSource = GetData();
}
 
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.InitInsertCommandName || e.CommandName == RadGrid.EditCommandName)
    {
        RadNotification1.Show();
    }
}


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
gc_0620
Top achievements
Rank 1
answered on 10 Feb 2015, 07:55 PM
Thanks Marin, your solution works. Appreciate
Tags
ToolTip
Asked by
gc_0620
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
gc_0620
Top achievements
Rank 1
Share this question
or