Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 28, 2008 03:05
open dhtmlx forum
gridToClipboard() - customize cell values

I have cell congaing html value like A or IMG tag, so when cell is imported to clipboard value of this kind of cell should be striped of html content.

How can define custom cell value for clipboard export only? Will some custom eXcell help?
Answer posted by Support on Oct 28, 2008 05:40
You can try to use
    grid._strictText = true;
It will change logic of data export in such way, thay only text values of cell will be copied to clipboard ( images and other tags will be lost )

>>How can define custom cell value for clipboard export only? Will some custom eXcell help?
The clipboard operation uses getValue method of excell ( getTitle in case of _strictText ), so you can redefine such method for excell in question ( or create new excell with necesary logic )