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

3 posts, 0 answers
  1. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 09 Feb 2015 Link to this post

    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. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 10 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. gc_0620
    gc_0620 avatar
    225 posts
    Member since:
    Feb 2008

    Posted 10 Feb 2015 in reply to Marin Bratanov Link to this post

    Thanks Marin, your solution works. Appreciate
Back to Top