SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom web part which is has a rich text box. When I add any text, tables, images, etc, they get saved in the list column with the data type rich text box. So when we have couple of paragraphs, the item expands in the list and the row takes the size of the data in the rich text box.

Is there a way where if a rich text box has 20 lines of data when we open the list, we are able to see only first few lines but when we open the item then we are able to see the whole text?

share|improve this question
Is the list presenting the data in your web part or just a normal SharePoint list? – David Lozzi Jan 20 '12 at 21:27

If you have custom application pages with a reference to your project's javascript file you could write some code to set a max height to the row, or trim the text on the inner html of that field.

share|improve this answer
up vote 0 down vote accepted

I figured a way around, i converted the richtextbox1 box data(html) data into text and then i trimed the first 3 lines.. and put it in another richtextbox2 when users are on the allitems.aspx they will see the richtextbox2(trimed with first 3 lines of text) data and when they want to edit the item, they will see the entire data in the richtextbox1

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.