Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 views
In our implementation when the search completed a notification message ‘The search string was not found’ displayed i think it should be ‘Search completed’ or ‘Search has finished’.
Rumen
Telerik team
 answered on 30 Jul 2009
1 answer
139 views

Hi,

I'm using the advanced insert with custom attributes and everything is working fine. However, I'd like to use the default date/time picker in the advanced template as opposed to just texboxes which have 'start' and 'end' dates bound to them. Could somebody tell me how to implement this?

Thank You.

Peter
Telerik team
 answered on 30 Jul 2009
1 answer
97 views

In our implementation i found ‘Replace All’ does not replace the first string occurrence although it replaces all the other occurrences of string.

Rumen
Telerik team
 answered on 30 Jul 2009
1 answer
144 views
When I use the AdvancedInsertTemplate, I get a javascript error "d is undefined" when I try to open my Advanced Insert form.

<asp:ScriptManagerProxy runat="server" ID="AppointmentWebServiceScriptManager"> 
    <Services> 
      <asp:ServiceReference Path="~/WebServices/SchedulerWebService.asmx" /> 
    </Services> 
  </asp:ScriptManagerProxy> 
 
  <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="WeekView" StartEditingInAdvancedForm="true" DataKeyField="AppointmentID" 
    CustomAttributeNames="Customer" EnableCustomAttributeEditing="true"  StartInsertingInAdvancedForm="true"> 
      <AdvancedForm Modal="true" /> 
      <TimelineView GroupBy="Employee" GroupingDirection="Vertical" SlotDuration="1:00:00" NumberOfSlots="20" /> 
      <WebServiceSettings Path="~/WebServices/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />       
       
      <AdvancedEditTemplate> 
        <div><asp:Label ID="TestEdit" runat="server" Text="TEST"></asp:Label></div> 
      </AdvancedEditTemplate>   
       
      <AdvancedInsertTemplate> 
        <div><asp:Label ID="TestInsert" runat="server" Text="TEST"></asp:Label></div> 
      </AdvancedInsertTemplate>              
  </telerik:RadScheduler> 

The full error:

Fout: d is undefined
Bronbestand: http://localhost:2780/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManagerControl_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3anl%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3anl%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3aed16cbdc%3a86526ba7%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a39040b5c%3af85f9819%3ae330518b%3a1e771326%3ac8618e41%3a650fdad%3ad40f7d5c%3a1a9ac27f%3a7d98db04%3afe65db44%3a63767fed%3a44e9d927%3a26c790aa%3a3cdff5d5%3ae91ff703%3a7666c7ed%3aef9d9f4a%3aa960fda2%3aca44ff11%3aa51ee93e%3a59462f1
Regel: 7374

I'm using Telerik for ASP.NET AJAX RadControls 2009 Q2. Can somebody tell me what I am doing wrong?
Peter
Telerik team
 answered on 30 Jul 2009
3 answers
102 views
Hi,

I'm trying to figure out why I'm getting the following js errors:
-_1.GroupedByResource is undefined (...Views/Month/GroupedByDate/Model.js)

_1.GroupedByResource is undefined (...Views/Timeline/GroupedByDate/Model.js)

I have disabled all embedded ressources and add the necessary scripts with a script manager.
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
            <Scripts> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Common/Core.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Ajax/Ajax.js" />                 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Common/jQuery.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Common/jQueryPlugins.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Common/Navigation/NavigationScripts.js" />              
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Calendar/RadDatePicker.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Input/TextBox/RadInputScript.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Input/DateInput/RadDateInputScript.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Calendar/RadCalendarCommonScript.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Calendar/RadCalendarScript.js" />                 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Calendar/RadDateTimePickerScript.js" />                 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/RadSchedulerScripts.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Scheduling/AdvancedTemplate.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Month/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Month/GroupedByDate/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Month/GroupedByResource/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Timeline/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Timeline/GroupedByDate/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Timeline/GroupedByResource/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Week/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Week/GroupedByDate/Model.js" /> 
                <asp:ScriptReference Path="~/thirdparty/RadControlsAjax/Scripts/Scheduler/Views/Week/GroupedByResource/Model.js" /> 
                <asp:ScriptReference Path="~/includes/Scheduler.js" /> 
            </Scripts> 
        </telerik:RadScriptManager> 

and my scheduler looks like that:
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataKeyField="ID" DataStartField="Start" DataEndField="End" DataSubjectField="Title" 
                        ShowHeader="false" AllowInsert="true" 
                        FirstDayOfWeek="Monday" LastDayOfWeek="Friday"  
                        ShowAllDayRow="true"  
                        OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing" OnAppointmentDelete="RadScheduler1_AppointmentDelete"  
                        OnClientAppointmentResizeEnd="AppointmentResizeEnd" OnClientAppointmentMoveEnd="AppointmentMoveEnd" > 
                <TimelineView UserSelectable="false" /> 
            </telerik:RadScheduler> 

All Appointments are being inserted in codebehind (no databind).

Used Control Version: RadControls ASP.NET AJAX 2009 1 527

Hopefully somebody already had that error.






Peter
Telerik team
 answered on 30 Jul 2009
1 answer
109 views
Getting the following error:

System.InvalidCastException: Conversion from string "{"UniqueName":"dckOrderHistory"," to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) at Dealers_Toolbox_portal.RetrievePortalState() in D:\Net Folders\Development Web Sites\Smoker\Dealers\Toolbox\portal.ascx.vb:line 51

Here is the value stored in the database:
{"UniqueName":"dckOrderHistory","DockZoneID":"ctl00_ContentPlaceHolder1_RadDock_RadDockZone1","Width":"300px","Height":"","ExpandedHeight":"0","Top":"0px","Left":"0px","Resizable":"False","Closed":"False","Collapsed":"False","Pinned":"False","Title":"Order History","Text":"","Tag":"~/Dealers/Toolbox/PortalControls/OrderHistory.ascx","Index":"1"}|{"UniqueName":"dckBrowseBoats","DockZoneID":"ctl00_ContentPlaceHolder1_RadDock_RadDockZone1","Width":"300px","Height":"","ExpandedHeight":"0","Top":"0px","Left":"0px","Resizable":"False","Closed":"False","Collapsed":"False","Pinned":"False","Title":"Browse Boats","Text":"","Tag":"~/Dealers/Toolbox/PortalControls/BrowseBoats.ascx","Index":"0"} 

Here is the code: (Line 51 is the Deserialize line)  What am I doing wrong?  Thanks!







Dim lDockState As New List(Of DockState) 
Dim sDockState() As String = oRdr.Item("PortalState").ToString.Split("|"c) 
 
For Each i As String In sDockState 
     Dim state As DockState = DockState.Deserialize(sDockState(i)) 
     lDockState.Add(state) 
Next 
 
RetrievePortalState = lDockState 
Pero
Telerik team
 answered on 30 Jul 2009
3 answers
135 views
Hello,
In the page_load event I set the RADEditors on that page to enabled = false if some conditions are fulfilled. The reason is that sometimes the user is only allowed to read the content of the editors. The content comes from the database.
The problem is that the lay out of the editors is gone, only the content is shown and because there are no scroll bars, the height of the editor is too big. How can I get scrollbars around the editors or keep the normal lay out in this situation? I use RADControls for ASPNET AJAX Q2

Thanks in advance,
Barbara
Rumen
Telerik team
 answered on 30 Jul 2009
1 answer
110 views
Hello,

I am using the RadEditor is a Publishing Pages scenario and it workd beutifully. However, when I use a Dataview webpart to trieve field content entered with the "AllowSpecialTags" attribute enabled The page renders the following markup;

<pre style="display:none" id=RadEditorEncodedTag>PGVtYmVkIHNyYz0iaHR0cDovL3d3dy55b3V0dWJlLmNvbS92L1M4YkxqSU1YM2JFJmFtcDtobD1lbiZhbXA7ZnM9MSZhbXA7IiB3aWR0aD0iMzIwIiBoZWlnaHQ9IjI2MCIgdHlwZT0iYXBwbGljYXRpb24veC1zaG9ja3dhdmUtZmxhc2giIGFsbG93c2NyaXB0YWNjZXNzPSJhbHdheXMiIGFsbG93ZnVsbHNjcmVlbj0idHJ1ZSIgLz4 

I realize this markeup must be encoded somehow so that SharPoint will not strip out special tags, attributes, and scripts. So is there a way, using a dataview webpart, to display the content entered using the RadEditor control?

Thank you in advance, any help is appreciated.
Stanimir
Telerik team
 answered on 30 Jul 2009
1 answer
68 views
Recently I noticed that under IE7 if I ctrl+click dates within a radcalendar supporting multiple selection a new tab window will open as if a link was clicked.  I do not get this when using FF 3.5, but unfortunately most of my users are in IE 7.

As an example, go to the Telerik Calendar "First Look" page.  If you Ctrl+click on the calendar, a new tab should NOT appear.  Now, unclick any of the check boxes shown.  Ctrl+click a new date and a new tab DOES appear.

Now, I have only noticed this under IE7, but it may occur in other versions of IE7.  I am looking for a way to stop this behavior as many users commonly use the Ctrl+click to select multiple dates (even though it is not required with this control).

Any suggestions?
Pavel
Telerik team
 answered on 30 Jul 2009
1 answer
135 views
Hi,

I'm using the editor in lists and have some columns defined as Rich Text and some as Enhanced Rich Text.  I want to be able to restrict the Enhanced Rich Text (which will be used just for simple HTML) much more than the Rich Text columns in terms of toolbar options.  However, if I remove the BasicToolBar buttons they disappear from the Rich Text as well as the EnhancedRichText toobars.  Essentially, I would like only the EnhancedToolbar to appear for thet EnhancedRichText and only the BasicToolbar for the standard Rich Text.

Is there a way of doing this?

Thanks.
Stanimir
Telerik team
 answered on 30 Jul 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?