Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
Trap toolbar save or other button
posted

hi all,

i am new.. pls suggest how can i trap toolbar click event..

and how can i know which toll was selected.

i createed a event...

 

protected void WebHtmlEditor1_ToolbarClick(object sender, Infragistics.WebUI.WebHtmlEditor.ToolbarEventArgs e)
{
    pls if button == "save" 
         do some process...
}

with best regards..
kartikeya

 

Parents
No Data
Reply
  • 24497
    Verified Answer
    posted

    Hi Kartikeya,

    The ToolbarClick event is raised only for ToolbarButton which has enabled RaisePostback property. By default only Save button has that property enabled. However, application can enable that property for any button. Below example shows how to process that event.

    protected void WebHtmlEditor1_ToolbarClick(object sender, ToolbarEventArgs e)
    {
      ToolbarButton but = e.Item as ToolbarButton;
      ToolbarButtonType type = but.Type;
      string key = but.Key;
      string act = but.Act;
    }

Children