Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
197 views
  Hello,

I have Telerik RadControls for ASP.NET AJAX Q1 2008 (v2008.1.619.20).

I am using the RadEditor to allow users to enter comments and notes on a form on a SharePoint site.  The data is then stored in a TEXT field in a MS SQL database.  The users generally copy and paste large amounts of information from Microsoft Word, but I want the information stored in MS SQL to be just plain text (i.e., not HTML).  I am using this control because of its ability strip all formatting.  I do NOT want any formatting and I want Microsoft Words curly quotes, curly apostrophes, and big hyphens to be converted to regular quotes, regular apostrophes, and regular dashes.

When I update the TEXT field in the database, I am using the .Text property of the RadEditor instead of the .Content property.  This way, there should be no formatting to handle.  However, Words curly quotes, apostrophes, and long dashes are still present in the .Text property.  So I have code to replace these Words characters with regular characters.

This seems to work okay when I use this on an ASP.NET page.  But when I put the exact same code on a SharePoint page, RadEditor returns different values in the .Text property.

Here is the .Text property from ASP.NET:

This line has Word curly "quotes", curly ‘apostrophes’, and long—dashes.

Here is the same .Text property from SharePoint:

This line has Word curly “quotes”, curly ‘apostrophes’, and long—dashes.

As you can see, the values are different.  I captured these values using Visual Studio 2005 debug screen.

Can you tell me how why this is different and how I should use the RadEditor to enter just plain text and handle stripping out Words special characters?

Here is the RadEditor code I am using (exactly the same in the ASP.NET page and the SharePoint page):

<telerik:RadEditor ID="radEditor_Comments" runat="server" 
ContentAreaCssFile="~/Styles/vt_RadEditor_ContentArea.css"
EditModes="All"
NewLineBr="true"
StripFormattingOnPaste="MSWordRemoveAll,AllExceptNewLines" 
Width="100%"
<Modules
<telerik:EditorModule Name="RadEditorStatistics" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" Visible="false" /> 
</Modules
<Tools
<telerik:EditorToolGroup /> 
</Tools
</telerik:RadEditor>

Thanks,

Randall Price

Thanks,Randall Price

 

Rumen
Telerik team
 answered on 05 Nov 2008
3 answers
109 views
Is it possible to allowing scrolling on a disabled Rad Editor control?
Rumen
Telerik team
 answered on 05 Nov 2008
2 answers
205 views
Hi,

I hold customer code,customer's cars trademark and customer's carsmodels in RadGrid. These trademarks and models can edit on RadGrid. For example; When edit row, you can change Customer Code, Customer's Car TradeMark and Customer's Car Model. In edit form, Customer's CarTradeMark and Customer's Car Model show in dropdownlist. If I change the Customer's trademark on dropdownlist, ı want to change the Car Models. For Example; When I choose Honda, other dropdownlist(Cars Model) fill again with Honda's model.(Civic,Accord...etc)

I looked GridDropDownColumn properties but ı dont find any event for postback.
YAVUZ
Top achievements
Rank 1
 answered on 05 Nov 2008
11 answers
321 views
I have a RadGrid with cells that contain numeric values. If a user clicks a cell I want to decrease the value in that cell.
How do I do that? The main question is: how do I get the value that is in the cell that the user clicked on?

I hope that someone can help me with this problem. I have a feeling that the solution is very simple, but this did already cost me a whole evening without coming any closer to as solution.
Daniel
Telerik team
 answered on 05 Nov 2008
1 answer
137 views
I am using AdvancedInsertTemplate & AdvancedEditTemplate in my schedular but my controls are not accessible at insert.

e.g of my insert parameter:
 <InsertParameters  >
 <asp:FormParameter FormField="Utilisateur" Name="Utilisateur"  />

e.g of my control in AdvancedInsertTemplate 
 <telerik:RadTextBox ID="Utilisateur" Text="test" runat="server">
                         </telerik:RadTextBox>


Do you have an example where you have used it with an sqldatatsource?

Thank you.
Peter
Telerik team
 answered on 05 Nov 2008
4 answers
320 views
I have a RadGrid where the MasterTableView has a single DetailTable.  When right-clicking on a row in a DetailTable, a ContextMenu is displayed to perform various operations on the row.

I've successfully grabbed the index of the DetailTable row that was clicked on in the client-side event handler "OnRowContextMenu" and put it in a hidden field, so I can access it in the RadMenu.OnItemClick event handler.  That works just fine; I can grab the value from the hidden field.

What I need to do is get a handle on the GridDataItem associated with the row, and (more importantly) the GridDataItem of the DetailTable row's parent.  How do I do this?  It seems like a pretty common thing someone might need to do when using the ContextMenu with RadGrid.  REALLY need help on this one.  Thanks.
Steve
Top achievements
Rank 2
 answered on 05 Nov 2008
5 answers
384 views
i have been messing with this all day, and cannot get my grid to look how i want it to. basically, i want horizontal scroll bars, but not vertical. i don't want my data to wrap. the following is close, but the vertical scroll bar still appears for the default height. the horizontal bar appear correctly, but it also causes the width of the table itself on the page to extend to the 'true' width of the grid (as if the scroll bar was not there), causing a horizontal scroll bar to also appear in the browser. here is my current configuration. The 'scrollheight' of 100% does not seem to work.

thanks,
susan

<

telerik:RadGrid ID="SubGrid" AllowSorting="True" Skin="Hay" runat="server" GridLines="none" Width="985px">

<ClientSettings EnableRowHoverStyle="true">

<Selecting AllowRowSelect="true" />

<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="100%"/>

</ClientSettings>

<MasterTableView AutoGenerateColumns="False" DataKeyNames="VendorKey" TableLayout="auto" Width="100%" >

<Columns>

<telerik:GridHyperLinkColumn HeaderText="Subcontractor" DataTextField="VendorName" ItemStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="VendorType" HeaderText="Trade 1" ItemStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="VendorType2" HeaderText="Trade 2" ItemStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="VendorType3" HeaderText="Trade 3" ItemStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="MainPhone" HeaderText="Main Phone" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="ContactName" HeaderText="Contact Name" ItemStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="ContactPhone" HeaderText="Contact Phone" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="ContactCell" HeaderText="Contact Cell" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="ShowToCustomer" HeaderText="Show Cust?" ItemStyle-HorizontalAlign="center" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="GeneralLiabilityExpiration" HeaderText="GL Expiration" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="AutoInsuranceExpiration" HeaderText="Auto Expiration" ItemStyle-Wrap="false" HeaderStyle-Wrap="false"/>

<telerik:GridBoundColumn DataField="Status" HeaderText="Status"/>

<telerik:GridTemplateColumn UniqueName="SubNotes" HeaderText="Notes" ItemStyle-HorizontalAlign="center">

<ItemTemplate>

<asp:Image TabIndex="-1" id="imgNotes" AlternateText="Notes" imageUrl="../images/notes.gif" runat="server" />

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

Azad
Top achievements
Rank 1
 answered on 05 Nov 2008
1 answer
101 views
Hi All,

I am using RadScheduler.

I am binding radscheduler runtime
I assigned the Starttime and Endtime property of radSheduler with same field.(ex StartDate)

In 24 hour format it showing the record in 12 Am section of time.

 
I want to show the appointment having time 12:00Am to show in All Day section of RadScheduler.

Thanks.



Peter
Telerik team
 answered on 05 Nov 2008
1 answer
147 views
Hi,

I have been trying out the example code supplied with the Q3 2008 beta version.  I have found that when viewing the radscheduler it does NOT display the vertical scrollbar like it does on the equivalent telerik demo page:

http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/Default/DefaultCS.aspx

I have also found that if I click the 'show 24 hours' button the control simply expands in size down the page which is undesireable.

My questions are therefore:
  1. Is there a bug or known issue with the Q3 beta code in terms of displaying the scroll bar?  If so is it fixed in the Q3 release?
  2. Are there any workarounds and sample code that I could use temporarily to force the radscheduler to behave as in the online sample?

I wish to use the Q3 release as I understand that it contains some enhancements for validation in the scheduler control.  I also wish to fix the size of the scheduler control like in the example as I plan to display the control in the a modal dialog.

Thanks,

Ross

PS; My browser is IE7.

Peter
Telerik team
 answered on 05 Nov 2008
2 answers
154 views
Hello,

FormDecorator causes client side script errors with 2008.2.826 that don't appear with 2008.2.723.

IE7, Safari and Opera fail, but FF 3.0.1 is not affected.

Script Debugging with IE shows that a script generated by ScriptResource.axd fails with "Invalid argument" when trying to set a negative height to an element.

A visible sign of trouble is that in a Scheduler control the integrated date picker icon is misplaced about 10px.

Switching back to 2008.2.723 or removing FormDecorator solves the issue.

I have .NET 3.5 SP1 installed.

Regards,
-mika-

eTaika Ltd
Grendizer
Top achievements
Rank 1
 answered on 05 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?