.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

InputFormTextBox richText dissapears

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :SharePoint
 
Hi
I'm developing in SP2010 beta2 and VS2010 beta, and having problems with text dissapearing from the Sharepoint InputFormTextBox.
The InputFormTextBox is inside a asp:WizardStep.
<Template_Control>
  <SharePoint:InputFormTextBox  
    ID="DescriptionId"
    runat="server" 
    TextMode="MultiLine" 
    ValidationGroup="CreateCase" 
    Rows="8" Columns="40" 
    RichText="true" 
    RichTextMode="Compatible" 
    AllowHyperlink="true" />
</Template_Control>
On the same page I also have an ImageUpload-function. When the image is uploaded the text dissapears from the text field. The same happens if I go the the next step in the wizard, and goes back. It seems like the Active X control in the rich text field doesn't render properly, because the text is still in the control. When I debug I find the text using DescriptionId.Text and in the page source the text seems to be present as well. But I'm not able to get the text inside the richText Field. 

If I set richText=false it works fine

Any help would be appreciated!   


View Complete Post


More Related Resource Links

InputFormTextBox with RichText="true" in Google Chrome

  

Good day,

I have a custom visual webpart which is saving values in a sharepoint list and currently have an issue with the InputFormTextBox control and Google chrome.   My code for the inputformtextbox is as follows

<SharePoint:InputFormTextBox ID="m_txtProjectObjectives" TextMode="MultiLine" Rows="5"
    Columns="50" RichText="true" MaxLength="4000" runat="server" ValidationGroup="CCPDForm"
    EnableViewState="false" RichTextMode="Compatible"> 
</SharePoint:InputFormTextBox>

What is happening in chrome is that the webpart doesnt show the bar at the top for formatting purposes which is correct.  However if you click on the field and type out your text, then click in another field and then click back on this field again the text that you typed out dissappear.

I've changed the properties of the richtextmode but the behaviour persists.

Anyone else experiencing this? Is it a google chrome issue and not a sharepoint issue?

What is my alternatives? Only use firefox (its working perfectly there) or IE?  Change the list column type to just a normal multiline input field with no html capabilities.  Though I wouldnt want to go either of these

While Printing an Infopath Form it Prints lot of Blank Spaces Before RichText Field

  

I had an infopath form with few rich text field. When i copy some content from somewhere and paste in the richtext Box then while Printing the form I get Lot of Blank Spaces Infront of the rich text box.

I tried creating teh print view too but still i get bunch of empty pages printed before by richtext box control.

Is there a way we can remove those blank spaces.....

I am not able to find out what is going wrong here....


Sharepoint Enhanced RichText Editor Modification.

  
I am working with a sharepoint custom list based on a content type, which pushes to a Content Query WebPart. The body of the content is a rich text field. I want to disable or remove the buttons.How do i go about doing this?  and what files do i edit?

RichText box

  
Hi All: I have a product page and I need to create a text area (for product accessories) where user can enter one word per line, and press submit button. Each word in line will related to some product. How can I create this type of textbox and then relate the products. Regars, Asif Hameed Hi All:I have a product page and I need to create a text area (for product accessories) where user can enter one word per line, and press submit button. Each word in line will related to some product. How can I create this type of textbox and then relate the products.Regars,Asif Hameed

InputFormTextBox replaces   with a space

  
I am using a InputFormText box in rich text mode. Whenever the html contains "&nbsp;", and the item is saved and when i fetch the field text from Code, the "&nbsp;" is replaced by " ". Because of this the saved content differs from the fetched content when displayed in the InputFormText. e.g. i save the following html <p>Table Name</p> <p>&nbsp</p> <p>&nbsp</p> <p>Table Name</p> when i get the field text using splistitem.getformattedvalue("fieldname"); what i get is  <p>Table Name</p> <p> </p> <p> </p> <p>Table Name</p> when the text of the InputFormTextBox is set to this retrieved html, it changes the <p> </p> to <p></p>. so the output is Table Name Table Name instead of  Table Name     Table Name   I have googled it but havn't found a solution.  Pankaj Bajpai. Prosares Solutions ASP.Net | Sharepoint | Consulting SharePoint | ASP.Net | Business Intelligence http://www.prosares.com http://www.linkedin.com/in/pankajbbajpai

InputFormTextBox not working in firefox

  

Hello All

I am using InputFormTextBox control of sharepoint for HTML input in to list

I am getting proper display of control in IE but not gettiing in Firefox Also in IE i am not able to set width of control.

Please let me know if any alternate sharepoint control is there which acts as ritchtext editor and does not have browser compatability issue and plz anybody help with yours expert comments on it.

 

Thanks & Regards

Mrugank Dholakia


How to validate the Sharepoint's InputFormTextBox control

  
validating the Sharepoint's rich text box control.

InputFormTextBox not working in firefox

  

Hello All

I am using InputFormTextBox control of sharepoint for HTML input in to list

I am getting proper display of control in IE but not gettiing in Firefox Also in IE i am not able to set width of control.

Please let me know if any alternate sharepoint control is there which acts as ritchtext editor and does not have browser compatability issue and plz anybody help with yours expert comments on it.

 

Thanks & Regards

Mrugank Dholakia


< Path > as button content dissapears on re-usage

  
Hello.

I'm new on WPF. I'm trying to use a Path as content of a button. The problem is that using the same path on different buttons, the path is only visible on the last one created.

This is the declaration of the path on a ResourceDictionary

<Path x:Key="CloseGeometry" Fill="{StaticResource DefaultForeground}" Stroke="Transparent"
Data="M 4,4 L 4,16 L 16,14 L 16,20 L 30,10 L 16,0 L 16,6 Z">
</Path>

And this is how I try to use it like button content.

<Button Name="dataEndavantButton" Style="{StaticResource AppButtonStyle}" Content="{StaticResource CloseGeometry}"></Button>

What I'm doing wrong?

Thanks in advance.

CAML RichText site column provision not working properly

  

I have used the following CAML declaration in a feature to provision some site columns:

 <Field
  Name="TestColumn"
  ID="{6E28A1F2-27DA-49EE-963A-155654A18809}"
  Type="Note"
  RichText="True"
  RichTextMode="FullHtml"
  DisplayName="Test Rich Text

Not able to insert text to a RichText field

  

I am trying to insert a modal dialog return value to the RichText field (FullHTML) through Javascript. When i was digging on to the RichText field i found that each text that we give on the RichText field is stored within a <div> tag.The RichText field itself is rendered in the following manner.

<iFrame ID="[RichText_CliendID_iframe]" its a hidden field>

<html>

<body>

<iFrame Baseline ID="[RichText_ClientID]"

<div>The text that we entered here</div>

<div>......</div>

I have tried getting the reference of the "RichText_ClientID" and created a <div> tag. But this doesn't work. When I tried getting the reference of the "RichText_ClientID_iframe" and then added a <div> tag to it. I am able to add to this (Have observed this through Dev Tool bar), but couldn't able to see it on the field. 

I am just relating one of the SharePoint OOTB behaviour to this "Insert ---> Upload File" (Displayed on the list forms ribbon button for the RichText fields). Using this option i will be able to upload a file to "Site Assets"

Need help with word or richtext files

  

Hello all

 

I don't know if this is the correct forum for this if not i appoligize

I have an Application that basicly a xna game and a editor

the xna game is ofcource on xna framework

but the editor is full WPF application

 

Now i want to make a help section as well and here is my problem

I have tryed this weekend to get the text out of a

1 -  office word file    ( didnt work i can only get it to save or open in office itself )

2 -  wordpad             ( cant find the file in my project only on my hard drive )

3 -  simple text file    ( cant find the file in my project only on my hard drive )

 

So can this be done with wpf ?

or am i trying something that can not be done ?

 


More knowledge, means more problems.

How to remove toolbar for InputFormTextBox in sharepoint?

  

How to remove toolbar for InputFormTextBox in sharepoint?


How to remove toolbar for InputFormTextBox in sharepoint?

  
How to remove toolbar for InputFormTextBox in sharepoint?

Question about InputFormTextBox in Sharepoint

  

I need to do this in a InputFormTextBox in Sharepoint:

" User cannot copy an image along with text into this field. To have an image, user has to first upload the image into Picture Library and provide the URL in the Rich Text Box. The Rich text box will then render the image along with text."

Any ideas?

Thanks.


Web Part Properties - Need InputFormTextBox to open in a new window.

  

Hi All,

I have developed a web part for SP2010. It inherits from the EditorPart class and uses an InputFormTextBox control. My problem is that the control appears in the web part properties in it's complete form (taking up alot of space).

Does anyone know how I can replicate the feature of the Content Editor Web Part by having a button open a window like RTE2PUEditor.aspx for editing?

Regards,
CFe


UpdateListItems to RichText via JavaScript

  

I am trying to use UpdateListItems to update a RichText via JavaScript.  So far everything but the BusCase field which is RichText will submit.  Here is what I got thus far, Do I need something special?  Could I do this better?

function CreateListItem(Title,MSLID,Method,BusCase)
{

if (Title == null)
{
	Title ='invalid'
}
if (MSLID == null)
{
	MSLID ='invalid'
}
if (Method == null)
{
	Method ='invalid'
}

	var url = "/MSL/_vti_bin/lists.asmx";
	var list = "{A5248571-FDC5-4BF1-8161-C0CF1E9CD3B7}";

	var batch = "<Batch onError='Continue' PreCalc='TRUE' ListVersion='0'>"
	 + " <Method ID='1' Cmd='New'>"
	
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend