We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Source code of Alert Window

Hi,
I want to customize the alert window of schedule control but I didn't find the source code.
Please give me the solution.

Thank you and regards,
Rasika

1 Reply

AK Adhikesevan Kothandaraman Syncfusion Team August 21, 2015 12:18 PM UTC

Hi Rasika,

 

Thank you for your interest in Syncfusion products.

 

If you want to customize the Alert window of the schedule control, you can use the scheduleControl1.AlertWindow’ property. AlertForm has one internal grid which can also be accessed. Here, I have customized the AlertWindow through VisibleChangedevent.

 

Code snippet:

 

//Invoke the event to customize the alert window while showing.

this.scheduleControl1.AlertWindow.VisibleChanged += AlertWindow_VisibleChanged;

this.scheduleControl1.EnableAlerts = true;

 

void AlertWindow_VisibleChanged(object sender, EventArgs e)

{

    AlertForm form = sender as AlertForm;

    if(form !=null && form.Visible)

    {

        form.StartPosition = FormStartPosition.CenterParent;

        form.buttonDismiss.BackColor = Color.LightPink;       

        //form.Grid is the internal grid -> GridControl

        form.Grid.QueryCellInfo += Grid_QueryCellInfo;

    }

}

 

Sample:

http://www.syncfusion.com/downloads/support/forum/119988/ze/Schedule-1477623254

 

Please let me know if you have any concerns.

 

Regards,

Adhi.


Loader.
Live Chat Icon For mobile
Up arrow icon