Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment
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 column..so 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
add comment

Your Answer

 
discard

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.