Telerik Forums
UI for ASP.NET AJAX Forum
27 answers
300 views
We have a CMS that is using RadEditor. Most of the time, the content is being copied from word, stripping everything out, which works fine. The content comes in in propert <p> tags. The problem arises when the user starts applying styles.
For example, if I have a style set as:
.BodyText
{
   font-family: Arial;
   ...
}
In my content I have
<p class="Word class">Test</p>
I highlight the text and apply my style from the dropdown. Sometimes it works, other times it will format the following:
<span class="BodyText"><p class="Word class">Test</p></span>
OR
<p class="Word class"><span class="BodyText">Test</span><p>

Unfortunately, this html content has to be converted into a structured xml document that using the class definitions as attributes. This will not work if the content editor cannot apply styles consistently. Has anyone had similar problems, and/or any recommendations for how to approach this issue?

Regards,

Mick
Rumen
Telerik team
 answered on 29 Jan 2009
3 answers
195 views
Hi,

I had a problem to get value from editform template from a validator event.

    Public Sub ValidateOccupation(ByVal source As Object, ByVal e As ServerValidateEventArgs) 
        ' verifie s'il est en edition 
        Dim mess As StringString = String.Empty 
        If grdTerritory.EditItems.Count > 0 Then 
            Dim Description As StringString = String.Empty 
            Dim lstOcc As List(Of Occupation) = New List(Of Occupation) 
 
            Dim editedItem As GridItem = grdTerritory.EditItems(0) 
 
            DirectCast(editedItem.FindControl("lblErrorMessage"), Label).Text = mess 
 
            If GetInfoEditableItem(editedItem, Description, ID.ToString, lstOcc) Then 
                Try 
                    mess = OccupationValidator(ID.ToString, lstOcc, TerritoryAction.Update) 
                Catch ex As Exception 
                    Throw 
                End Try 
 
            End If 
 
            If Not String.IsNullOrEmpty(mess) Then 
                e.IsValid = False 
            Else 
                e.IsValid = True 
            End If 
        End If 

This DirectCast(editedItem.FindControl("lblErrorMessage"), Label) crash on NullReferenceException

How can access my label from my validator event into editTemplate on my item in editmode?

ty


Georgi Krustev
Telerik team
 answered on 29 Jan 2009
1 answer
157 views
I have two datepickers on a page that are using a shared calendar. The min date on both datepickers is "1/1/1900", however it is being ignored and the default of 1/1/1980 is being used. The datepickers and calendar are all in the same ajaxpanel. How do i get the control to honor the mindate property?

Thanks!
Princy
Top achievements
Rank 2
 answered on 29 Jan 2009
12 answers
215 views
While doing some pre-client testing, I discovered that 6.0 versions of IE / IE6 do not work with the RadDock's pin function/behavior.  If you undock a dockpanel and then pin it, the panel does not follow the page when you scroll.  This behavior does not occur on IE7.  I have also verified it on two different machines that are both running the same XP SP2 IE 6.0.2900 SP2.  I am using the latest 2008.2.1001.20 assembly version of Telerik.Web.UI.dll

I have found an old thread which talks about it this from May, and it said that this issue was to be resolved already.  FYI incase perhaps it was left out or is occurring now for a different reason: 
http://www.telerik.com/community/forums/aspnet-ajax/docking/raddock-ie-6-0.aspx 

much obliged for your time,
joseph johnson jr.
Nikolay Raykov
Telerik team
 answered on 29 Jan 2009
6 answers
127 views
I just went to the Forum that covers the Toolbar and did a search using the keyword "event" and no results came back, yet there are postings with the word "event" in the title. I tried other words that should have generated some results but any query I enter yields no results. Please check your server application that handles searching.
SonicImaging
Top achievements
Rank 1
 answered on 29 Jan 2009
1 answer
117 views
Hello,

Since using 1314.35 version, I have a strange behavior on a page.
This page is using ajaxManager from a masterPage with an ajaxmanagerproxy.
There is a RaTabStrip/RadMultiPage on the page, none of the two are in AjaxSettings senders, but in the updated controls of some of their buttons.
There is also a RadFormDecorator same configuration.
Some buttons from different PageViews are registered as ajaxsetting sender in AjaxManager with the radTabStrip/RadMultiPage/RadFormdecorator as updated controls, just like:
        <telerik:AjaxSetting AjaxControlID="ShipCountryField">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                <telerik:AjaxUpdatedControl ControlID="FormDecorator1" />
            </UpdatedControls>
        </telerik:AjaxSetting>

These buttons behave normally with a callback when clicked.
A last button is not in AjaxManager but part of a PageView.
This button now is doing callback in place of postback (apparently since 1314.35) ?

As this button triggers a Server.Transfer() I am now receiving a PageRequestManagerParseError and my page display no more change ?

Why this button is not doing postback: seems that now when buttons are in a Multipage, they do automatically callback, even when the multipage in not ajaxified ???


Thanks for help.
CS
Iana Tsolova
Telerik team
 answered on 29 Jan 2009
1 answer
91 views

The RadEditor says it is fully supported with .Net 2.0 but when I create a VS 2.0 project the RadControls never appear in the VS toolbox .

I also notice that the current version of the RadEditor requires version 3.5 of the .Net Framework since it uses the System.Web.Extensions file in that version.  Will it work if I swap in the 1.0 version?

Can you point me to the information I need to get the RadEditor working in a project running off of 3.0 of the .Net Framework (or 2.0).

Thanks.

Rumen
Telerik team
 answered on 29 Jan 2009
1 answer
133 views
Hi,
For me the raddatepicker's clientside event 'OnDateSelected'  is not trigeering in firefox .
can anyone help me in this
Thx,
jawaher
 

Princy
Top achievements
Rank 2
 answered on 29 Jan 2009
1 answer
171 views
Hello,
I'm having a problem that I was hoping you guys could help me with. As the sujects says, I have a combobox with serverside filtering. To reduce db strain, it should only do itemrequest when users press enter. Any tip on how to solve this?
Princy
Top achievements
Rank 2
 answered on 29 Jan 2009
3 answers
242 views

Hi,

I have a radgrid and within this radgrid, I have two comboboxes in the edit/insert form. I want to ajaxify the comboboxes, such that one combobox "onselectedindexchanged" event should refresh the second one. Additionally, I want to ajaxify the insert/update/delete operations of the radgrid too. So I wrote the following code:

       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  > 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox2" LoadingPanelID="LoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1" > 
                      
                    <UpdatedControls> 
                      
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="LoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                           
                  
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

The problem is; when radcombobox1 is changed, the whole radgrid refreshes, not just radcombobox2. How do I prevent this? I want only radcombobox2 refreshed when radcombobox1's index is changed.

Thanks in advance.

Note: Radcombobox1 and radcombobox2 is in edit form of the radgrid1.

Iana Tsolova
Telerik team
 answered on 29 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?