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
380
Format Cell after Pasting
posted

Hi

I am using a webdatagrid and would like to change the background color of the cells which have been pasted with new data so i am trying to use the event 

<ClipboardClientEvents Pasted="WebDataGrid_Clipboard_Pasted" />

but can you please let me know how i can change the cells which have been modified?

Regards

Raghu

Parents
  • 17590
    Offline posted

    Hello raghumuvvala,

    It`s been a while since you posted but if you are still in need of assistance I would be glad to help.

    What I can suggest for achieving you requirement is set cells background color to your desired color in the Clipboard_Pasting client side event as such:

    function  WebDataGrid1_Clipboard_Pasting(sender, eventArgs)

    {

         eventArgs.get_targetCell().get_element().style.backgroundColor ="red";

    }

    Some further reference about clipoboard could be found at:

    http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=WebHierarchicalDataGrid_Clipboard.html

    I hope this helps. Please let me know if you have any additional questions regarding this matter.

Reply Children
No Data