Hi all,
is there a way to allow the selection of text inside a cell if the AllowUpdate is set to false?
If you have AllowUpdate set to False, you will not be able to select the text within the cells. This is because you can't enter edit mode and therefore you cant select anything because by default, the grid will steal the mouse events to process row activation/selection etc. So, the only way to get around this is to disable some javascript events from the grid. Here is the snippet below.
Add this code to your javascript region (change UltraWebGrid1 to the name of your grid) and you will see that you can select all the text as a normal html table. However, this workaround does come with some limitations. Now there will be no concept of an active row or selected cells/rows. Aside from that, this should give you what you want.
Sorry, I missed a some javascript in the previous post.
I added the onmousedown for the element G_UltraWebGrid1 which is the table element for the grid which contains the rows and columns.
The full javascript should be:
window.onload = function() { document.getElementById('UltraWebGrid1_main').onmouseup = null; document.getElementById('G_UltraWebGrid1').onselectstart = null; document.getElementById('G_UltraWebGrid1').onmouseover = null; document.getElementById('G_UltraWebGrid1').onmousedown = null; }