Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
128 views
In my scenario I want to add javascript to anchor tag. I have done following steps by reading other threads but still can make it work.
  1. Added AllowScripts property in ConfigFile.xml located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.4.1.0__1f131a624888eeed\RadControls\Editor
  2. Then add AllowSpecialTags="true" e.g. <radE:RadHtmlField runat="server" FieldName="RelatedLinks" AllowSpecialTags="true"></radE:RadHtmlField>
  3. After that when I add id to my anchor tag and add the javascript editor is not stipping out the javascript, but it looks as javascript is no executed after page is loaded. Instead it shows some thing like this just after anchor tag 

<PRE id="RadEditorEncodedTag" style="DISPLAY:none"> NjcmlwdD5kb2N1bWVudC5nZXRFbGVtZW50QnlJZCgndGVzdDEnKS5vbmNsaWNrPWZ1bmN0aW9uKCl7YWxlcnQoIjEiKX08L3NjcmlwdD4=

</PRE>

I have also added javascript code below in MOSSEditorTool.js located at C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.4.1.0__1f131a624888eeed\RadControls\Editor\Scripts\7_2_1

Telerik.Web.UI.Editor.EncodeScriptsFilter.prototype.getHtmlContent = function(content)  

{  

        return content;  

};  

 

Telerik.Web.UI.Editor.EncodeScriptsFilter.prototype.getDesignContent = function(content)  

{  

        return content;  

};


Kindly can you identify the problem or is there any version issue as I am using 4.4.1.0
Stanimir
Telerik team
 answered on 30 Jul 2009
1 answer
131 views
We've upgraded recently to the most recent Q2 version of the controls.
There appears to be a bug. It deals with the Rad Dock.
Here is what happens, unlike before in the Q1 version

dock.set_closed(

false);

 

and

dock.set_closed(true)

;
are now handled by Dock's OnClientCommand handler.
This is fine, but in that handler I have no idea if I am closing the doc or opening, because the boolean parameter is not available, which causes a problem since we have the following:

 

if

 

(cmd.get_name() == "Close" )
{
    do some work...
}
I never had this issue before because OnClientCommand was only hit when the user pressed the X button on the Dock.
Please help, as we

 

Pero
Telerik team
 answered on 30 Jul 2009
1 answer
125 views
I need to bind a RadGrid to an object (called "Article").  

Most of the fields of this object are strings or ints and so are straightforward to display/sort/filter, but one of the fields is a collection of other objects (simple objects that just contain a name and a couple of other strings and ints).

What I need to do is:

a) Display the contents of the collection one of the columns of the grid.  If there is only one object in the collection I need to display it's name.  If there are multiple objects then I need to display the name of the first object and just append it with "(and n more)"

b) I need to be able to Filter on that column based on the names of the objects in the collection.  Ideally I would like a RadComboBox in the header that contains all of the names that exist in any of the collections.  When one is selected, only those rows who have that name in their collection should be displayed.

Have been trying to get this working for hours now.  Any help would be much appreciated!!

Johnnie
Yavor
Telerik team
 answered on 30 Jul 2009
0 answers
100 views
Hi,

Select a item in the Combobox.After the postback.Clear the combobox.
Select the same item, no event will be fired.

Ex: Combobox contains a,b,c,d items.
User will select 'a' then postback event will be fired. I am clearing the combobox item for the next item selection.
Again user will select the same item i.e 'a' then no event will be fired.

Regards,
Medac
Medac
Top achievements
Rank 1
 asked on 30 Jul 2009
1 answer
59 views
In our implementation when the replace process completed this notification is showing  ‘The search string was not found’ i think it should be ‘Search completed’ or ‘Search has finished’.
Rumen
Telerik team
 answered on 30 Jul 2009
1 answer
41 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
132 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
94 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
137 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
99 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?