:: Forum >>

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
Monday, November 29, 2004
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
Tuesday, November 30, 2004
Another solution could be a multiline tooltip applyed to every "cell" as someone suggest at this forum.
Carlos
Tuesday, November 30, 2004
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
Thursday, December 2, 2004
I chose to make a dhtml popup window to display the larger data, activated by clicking on a link in the grid.

Swisher
Thursday, October 26, 2006

This topic is archived.


Back to support forum

Forum search