3.2.0

auto row height resize

When I select and display a long sentences from database, it will not display fully on datagrid. It will be truncated. Is there a way to make the sentence flow to the next line with its height automatically increased?

I am also looking for other alternative to this problem. For example, clicked on the truncated sentence and pop an alert with full sentence.
Li Li
November 29,
By modifying the sample at http://www.activewidgets.com/grid/ to this...
<script>
    obj.setAction("click", function(src){alert(src.getProperty("item/text"))});
</script>


Although I tend to find the alert method a bit intrusive so I would place the sentence into a div that's visible some where on the page.

<script>
    obj.setAction("click", function(src){getElementById("fullsentence").innerText=src.getProperty("item/text")});
</script>
Daniel
November 30,
Another solution could be a multiline tooltip applyed to every "cell" as someone suggest at this forum.
Carlos
November 30,
Thank you! The code

<script>
obj.setAction("click", function(src){alert(src.getProperty("item/text"))});
</script>

works like charm. I really appreciate your help :)
Li Li
December 2,
I chose to make a dhtml popup window to display the larger data, activated by clicking on a link in the grid.

Swisher
October 26,

This topic is archived.

See also:


Back to support forum