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

we are using telerik version "2008.2.826.20" radeditor for one of my project.
It works normal for some of the html fomats. But sometimes there are senarios where on pasting some html in html mode, switch to design mode and then again when tried to switch to Html mode it gives javascript error

Message: 'styleSheet' is null or not an object
Line: 461
Char: 1
Code: 0
URI: http://............/ScriptResource.axd?d=llZhXWl6Cygg2gNOHRv3hQfS9_g_NzcOyPqP5JZNQHJND-oOwSYEBW9js92K5CCKKYPSxJECyJQOoHQRmadliQ2&t=633731249133424980

We tried copying same html in latest radeditor of telerik's site but iwe get same error.
We also tried disabling ConvertToXHtml content filter but that didnt help.

Here is one of the kind of html which we try to paste:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<html><head>
<meta http-equiv="content-language" content="en-us">
<title>Company</title>
</head>
<body >
<div class="mktEditable" id="main_text" ><br>Hello {{First Name:default=Sir/Madam}},<br> <mce:Style><mce:Style> <br>
This is for testing.
<div>
</body>
</html>

When I remove this "<mce:Style><mce:Style>" tag from the html, it works fine.

Can anyone tell me what could be the issue for this? What setting I have to do for getting rid of this?
We aslo want to know whether validation while switching between modes and submitting can be disabled. As stated we tried disabling contentfilters but no use. Tried ContentFilters = "None" also.

Please reply ASAP as this was the complaint from our Clients.

Thanks in advance.
Sups

Rumen
Telerik team
 answered on 27 Nov 2009
8 answers
200 views
Im trying to break down my grid in mutiple datasets for easy sorting and so I dont overload the client with too much data.  So I have a button and in the button I change the SQL and Rebind the data and it displays correctly in the grid. However if you then goto filter etc it repull in the original binding information.

This works except when I got filter then it goes back to the original select statment.
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click  
        HistorySQL.SelectCommand = "SELECT DRCMPY, DRYEAR, DRMKT, DRCCOD, DRBCN, DRSSN1, DRSSN2, DRSSN3, DRTEAM, DRPLNR, DRSTYL, DRSTDS, DRFCST, DRFCDS, DRSIZE, DRITEM, DRIDES, " & _  
                      "DRIDS2, DRCOAT, DRCTDS, DRCPRT, DRSD1, DRSD2, DRSD3, DRSD4, DRSD5, DRSD6, DRSD7, DRSD8, DRSD9, DRSD10, DRSD11, DRSD12, DRSU1, DRSU2, " & _  
                      "DRSU3, DRSU4, DRSU5, DRSU6, DRSU7, DRSU8, DRSU9, DRSU10, DRSU11, DRSU12, DRM1, DRM2, DRM3, DRM4, DRM5, DRM6, DRM7, DRM8, DRM9, DRM10, " & _  
                      "DRM11, DRM12, DRL1, DRL2, DRL3, DRL4, DRL5, DRL6, DRL7, DRL8, DRL9, DRL10, DRL11, DRL12, DRO1, DRO2, DRO3, DRO4, DRO5, DRO6, DRO7, DRO8, DRO9, " & _  
                      "DRO10, DRO11, DRO12, DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12 AS DRSDYR, " & _  
                      "DRSU1+DRSU2+DRSU3+DRSU4+DRSU5+DRSU6+DRSU7+DRSU8+DRSU9+DRSU10+DRSU11+DRSU12 AS DRSUYR,    " & _  
                      "DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12 AS DRMYR, " & _  
                      "DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12 AS DRLYR, " & _  
                      "DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12 AS DROYR, " & _  
                      "DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12+DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12+DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12 AS YRCost, " & _  
                      "Case WHEN (DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12) = 0 Then 0 Else (((DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12)-(DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12+DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12+DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12))/(DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12)) END AS YRPV " & _  
                      "FROM D097 WHERE DRYEAR Between Year(GetDate())-2003 and Year(GetDate())-2000"  
        HistoryGrid.DataBind()  
    End Sub 
Yavor
Telerik team
 answered on 27 Nov 2009
1 answer
114 views
How can i change output of tabs like
1-Tab1 2-Tab2 3-Tab3

i mean instead of ul , i want to use ol
Thanks.
Paul
Telerik team
 answered on 27 Nov 2009
1 answer
97 views
Hi

I have a RadGrid, datbound in code behind using a dataclass to get the data.

I want to implement sorting and paging, but when I turn it on I get the following error in the _ItemCommand.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I guess I need to check here that I'm actually looking at a row, If I'm correct how do I do that. If I'm wrong what do I need to do.

This is the start of my code:
   Protected Sub rgUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgUsers.ItemCommand  
 
 
        Dim User_ID As Guid = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("UserId")  
        Dim CommandName As String = e.CommandName  
 
        Select Case CommandName  
            Case "EditUser"  
 

Andy

Pavlina
Telerik team
 answered on 27 Nov 2009
1 answer
128 views
Hi,
       I am using a tree view where the nodes are using a context menu with two options "Delete"and "View". Depening on certain condition I need to remove the "Delete" menu option from some of the nodes. Could you please let me know how to achieve that?

Thanks
Hemangajit
Yana
Telerik team
 answered on 27 Nov 2009
1 answer
116 views
Hi,
   I have a telerik grid with people's names stored and I would to have the paging show the first 3 chars of each name in the paging rather
than first letter. Is this possible to do.

Regards

Robert
Pavlina
Telerik team
 answered on 27 Nov 2009
14 answers
232 views
Hi,

We are creating a new Finnish language pack following the instructions in Telerik's documentation (1, 2). The English localization files were copied from App_GlobalResources on the installation folder.
 
The (so far) localized strings works fine on the editor UI but not so well on the Image manager. Note that the image manager strings were not yet localized, so the original English values should be shown (from our localized fi-FI files). Instead, we get an error. For instance, all the top menubar buttons on the left pane of the image manager shows 'Not loaded (error)' as well as the Filename and Size column headers. Though, on the Preview pane the localization works fine for the top menubar. On the 'Properties' tab, only the 'Long Description' and Image alignment' labels shows as 'Not loaded (error)', while all the other labels are localized (currently in English).

Telerik's dll version is 2009.2.826.35

We also use the web.config Globalization , where we define our own resource provider factory that retrieves localization strings from database for the application. Could that be the problem?! But then again, on the main editor UI the localized strings works fine.

Any ideas would be highly appreciated.
Eyal


UPDATE: The issue seems to derive from the conflict with the ResourceProviderFactory that is defined in web.config. When I remove the ResourceProviderFactory and instead retrieve the application strings from a local resource file, the image manager shows all localization strings correctly. I think it may be worthwhile to check this resources' conflict more thoroughly, because in some projects it is required to use resources retrieved from database.

Rumen
Telerik team
 answered on 27 Nov 2009
2 answers
118 views
I've inherited some code that uses scheduler.

I see that when I add an appointment it appears, as you would expect in all views, but the appointments are, by default, all day events.

If I uncheck the "all day" checkbox on the add/edit form (sadly a complex one allowing recurrences and resources) I not that the event appears in both Month and Week views but not in Day View.

I know that there's 4 fifths of sod all to go on here, but if anyone going point me in a direction in which to look for a cause for this, I'd be most grateful.

If it makes a difference, we're running with Q1 2009.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 27 Nov 2009
1 answer
105 views
Hi,

I'm trying to set the upload,view and delte paths in code but keep on encountering errors.

The error is the old 'Object reference not set to an instance of an object.'

The strange thing is I'm testing using code copied directly from the Help file example yet I still get the error

See below :

Imports Telerik.Web.UI 
Partial Public Class blogsa 
 
    Inherits System.Web.UI.MasterPage 
 
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 
        Dim viewImages As String() = New String() {"~/Images"} 
        Dim uploadImages As String() = New String() {"~/Images/New"} 
        Dim deleteImages As String() = New String() {"~/Images/New/Articles", "~/Images/New/News"} 
        If Not IsPostBack Then 
            RadEditor1.ImageManager.ViewPaths = viewImages 
            RadEditor1.ImageManager.UploadPaths = uploadImages 
            RadEditor1.ImageManager.DeletePaths = deleteImages 
        End If 
    End Sub 
 
End Class 

Does anyone have any ideas ?


Dobromir
Telerik team
 answered on 27 Nov 2009
1 answer
116 views
Hello, I have a main page in my Portal, that loads user controls dynamically in 3 raddock zones, based on metadata that reside in a database.
Each user control is placed in its own placeholder(radDock) and does its job accordingly.

I also have a RadAjaxManager on my main page, and a radAjaxManagerProxy on every user control.
My User controls vary, from simple calendars to complex grid with chart and gauge controls.

I have now come to a point that I need a usercontrol to interact with another.
For example, lets say that I have one user control that only has a button int it, and one with a label.
Both these user controls are placed at runtime on a main page. When the button is clicked, the text of the label should change, using Ajax of course.

Is this possible? How?

Thanks in advance
Iana Tsolova
Telerik team
 answered on 27 Nov 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?