Can I limit the lines of text displayed as a Sharepoint list?

The easiest way to explain this is with an image:

http://i42.tinypic.com/fc1gdk.png

I want to show only the first two lines of the "Solution" field, because otherwise it becomes very difficult to view the list with a long solution. Is it possible? I looked through the list and viewing options and nothing is visible.

+5
source share
3 answers

It is not possible to see the image, corporate lock, but for a text column this will work.

Create a new column and calculate it, enter the formula = left ("your column", 2000), then use the calculated columns in your views.

+3

, :

, Content

-, , ContentCalc, = [Content]

-, ,

-, , "" : = LEFT ([ContentCalc], 60), 60 - , ,

, , - , :

<script type="text/javascript">
  var theTDs = document.getElementsByTagName("TD");
  var i=0;
  var TDContent = " ";
  while (i < theTDs.length)
  {
    try
    {
      TDContent = theTDs[i].innerText || theTDs[i].textContent;
      if (TDContent.indexOf("<div") == 0)
        {
          theTDs[i].innerHTML = TDContent;
        }
    }
  catch(err){}
  i=i+1;
  }
</script>

, , .

, , Calc , .

. javascript Rich Text, , div , . , . , .

+1

All Articles