I'm dynamically creating a RadDatePicker in the VB .NET code behind like so...
Dim oCalCell As New HtmlTableCell()Dim oRadPicker As New Telerik.WebControls.RadDatePicker()oRadPicker.ID = "cldrStageDate"oRadPicker.Calendar.ID = "cldrStageDate_calendar"oRadPicker.Calendar.ClientEvents.OnLoad = "cldrLoaded"oCalCell.Controls.Add(oRadPicker)Then on the client side I have the following javascript code:
function cldrLoaded(oCtl) { var sCtlId = null; if (typeof(oCtl.get_id) === "function") sCtlId = oCtl.get_id().split('_calendar')[0]; else sCtlId = oCtl.ClientID; var oCldr = $find(sCtlId);}The control is rendered on the page and appears to be working. But inside "cldrLoaded", oCtl doesn't have a function named "get_id" when this function is called, but it does have a "ClientID" set. But the $find(sCtlID) won't find the RadDatePicker.
I have a DatePicker declared in the .aspx page that works as expected:
<telerik:RadDatePicker id="cldrStageDate" runat="server"> <Calendar ID="cldrStageDate_calendar" runat="server"> <ClientEvents OnLoad="cldrLoaded" /> </Calendar></telerik:RadDatePicker>How can I get the proper object get sent to the OnLoad function?
Thanks!


<EditFormSettings EditFormType="Template"><FormTemplate> <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" style="border-collapse: collapse;"> <tr> <td> <table id="Table4" cellspacing="1" cellpadding="1" width="50%" border="0" class="module"> <tr> <td>Name:</td> <td><asp:TextBox ID="TextBox2" Text='<%# Bind( "Name") %>' runat="server" TabIndex="8"></asp:TextBox></td> </tr> <asp:PlaceHolder ID="plupload" runat="server" > <tr> <td>File Upload :</td> <td><telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded" MultipleFileSelection="Disabled" AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" onvalidatingfile="RadAsyncUpload1_ValidatingFile"></telerik:RadAsyncUpload> </td> </tr> </asp:PlaceHolder> </table> </td> <td> </td> </tr> <tr> <td align="right" colspan="2"> <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> </asp:Button> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> </td> </tr> </table></FormTemplate></EditFormSettings><telerik:RadComboBox ID="RadComboBox1" runat="server" onselectedindexchanged="RadComboBox1_SelectedIndexChanged" autopostback="True" ><Items><telerik:RadComboBoxItem Value="1" Text="Show All" /><telerik:RadComboBoxItem Value="2" Text="Hide File Upload" /></Items></telerik:RadComboBox>
Replaces the default Rich Html editor with RadEditor (page content,wiki, etc.).
All html fields use the RAD editor and this is where I get the issue of inserting web parts into content areas.
This issue does not happen when the feature is not activated and i use the OOTB editor.
Also this is on a Vanila no customisations env.
RadEditorSharePoint DLL version in use from GAC is 6.1.7.0...