<SafeControl> entries into the web.config and all it seemed to do was give me the 'live examples' application.
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server" > |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadTreeView"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadTreeView" /> |
| <telerik:AjaxUpdatedControl ControlID="IsShared" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManagerProxy> |
I am delegating AJAX request in page load to call my method on server .
| RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); |
| manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(RadAjaxManager_RadAjaxRequest); |
"RadAjaxManager_RadAjaxRequest" method is called and I am doing all my processing inside it. Up till now things are fine but the Issue is I want to update selected treeview node after performing my operation which is somthing not working.
Can you guid me how I can update selected node in treeview after performing my operation from "RadAjaxManager_RadAjaxRequest"?
If possible give me some running example which can give me clear understanding.
Thanks in advance,
Frank
Hi
I have problems using the spell checker in RadEditor in Sharepoint.
This is what I get when I try to run the spellchecker :
I have versions 2010.2.826.20 and 2010.2.826.35 of Telerik.Web.UI.dll in GAC.
I add the languages and the spell checking dropdown box in the tools.xml file as following:
<tools name="InsertToolbar" enabled="true" >
<tool name="AjaxSpellCheck"/>
</tools>
<languages>
<language code="de-DE" title="Deutsch" />
<language code="en-US" title="Englisch" />
<language code="fr-FR" title="France" />
<language code="sv-SE" title="Svenska" />
</languages>
I have the dictionary files in all of the following folders:
This is how my web.config httpHandlers section looks like:
<httpHandlers>
<remove verb="GET,HEAD,POST" path="*" />
<add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" verb="*" validate="false" />
</httpHandlers>
And finally, in the onload method of the user control I tried any combination of the following lines of code, as well as any possible option for the SpellCheckProvider enumeration.
editor.SpellCheckSettings.AllowAddCustom = true;
editor.SpellCheckSettings.SpellCheckProvider = SpellCheckProvider.MicrosoftWordProvider;
editor.SpellCheckSettings.EditDistance = 2;
editor.SpellCheckSettings.AjaxUrl = "Telerik.Web.UI.SpellCheckHandler.axd";
FYI I am using the rad editor inside a roddock which is in a web user control. The web user control in turn is loaded into a sharepoint webpart.
I appreciate your help.
Ali
AddHandler fdCourseStartDateDateTimePicker.Calendar.DefaultViewChanged, AddressOf fdCourseStartDateDateTimePicker_Calendar_DefaultViewChangedProtected Sub fdCourseStartDateDateTimePicker_Calendar_DefaultViewChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs) System.Diagnostics.Debug.WriteLine("") End SubHello,
I am using the following code to generate a grid for displaying and editing some data.
Unfortunately I am not able to get the value of the raddatepicker & the checkbox control in code behind to update the associated fields in the DB.
My aspx is as follows:
=================
<telerik:RadGrid ID="grdSites" runat="server" AllowAutomaticDeletes="false" AutoGenerateColumns="False" <BR>AllowMultiRowSelection="false" CssClass="MyRadGrid" AllowAutomaticUpdates="false"> <BR><MasterTableView AllowSorting="False" AllowPaging="false" DataKeyNames="BanquetSiteId" <BR>TableLayout="Fixed" ClientDataKeyNames="BanquetSiteId" EditMode="EditForms"> <BR><NoRecordsTemplate> <BR><asp:Label runat="server" CssClass="AlignCenter" ID="lblNoRecords" ResourceKey="lblNoRecords" <BR>Width="100%" align="center" /> <BR></NoRecordsTemplate> <BR><Columns> <BR><telerik:GridBoundColumn DataField="SiteId" HeaderText="SiteId" Visible="false"> <BR></telerik:GridBoundColumn> <BR><telerik:GridTemplateColumn HeaderText="SiteName" HeaderStyle-HorizontalAlign="Left"> <BR><ItemTemplate> <BR><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# getSiteUrl(Eval("SiteAlias"))%>' <BR>Text='<%# Eval("SiteName")%>' Target="Blank"></asp:HyperLink> <BR></ItemTemplate> <BR></telerik:GridTemplateColumn> <BR><telerik:GridBoundColumn DataField="ExpireDate" HeaderText="ExpireDate" HeaderStyle-HorizontalAlign="Left"> <BR></telerik:GridBoundColumn> <BR><telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" HeaderStyle-HorizontalAlign="Left"> <BR></telerik:GridCheckBoxColumn> <BR><telerik:GridEditCommandColumn ButtonType="LinkButton"> <BR></telerik:GridEditCommandColumn> <BR></Columns> <BR><EditFormSettings EditFormType="Template"> <BR><FormTemplate> <BR><table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" <BR>style="border-collapse: collapse; background: white;"> <BR><tr class="EditFormHeader"> <BR><td colspan="2" style="font-size: small"> <BR><b>Subscription Details</b> <BR></td> <BR></tr> <BR><tr> <BR><td> <BR><asp:Label ID="Label2" ResourceKey="litExpireDate" runat="server">Expire Date</asp:Label> <BR></td> <BR><td> <BR><telerik:RadDatePicker ID="rdpExpireDate" runat="server" ValidationGroup="BanquetSite" /> <BR></td> <BR></tr> <BR><tr> <BR><td> <BR></td> <BR><td> <BR><asp:CheckBox ID="chkIsActive" Text="IsActive" ResourceKey="IsActive" Checked='<%# Bind( "IsActive" ) %>' runat="server" /> <BR></td> <BR></tr> <BR><tr> <BR><td align="right" colspan="2"> <BR><asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"></asp:Button> <BR><asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> <BR></td> <BR></tr> <BR></table> <BR></FormTemplate> <BR></EditFormSettings> <BR></MasterTableView> <BR><ClientSettings EnablePostBackOnRowClick="false"> <BR><ClientEvents></ClientEvents> <BR><Selecting AllowRowSelect="true" /> <BR><Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="True" /> <BR></ClientSettings> <BR><PagerStyle Mode="NextPrevAndNumeric" /> <BR></telerik:RadGrid>
Code behind:
===========
Private Sub grdSites_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdSites.UpdateCommand Try Dim banquetSitId As Integer = CType(grdSites.MasterTableView.DataKeyValues(e.Item.ItemIndex).Values(0), Integer) 'Dim rdp As RadDatePicker Dim expireDate As DateTime = Nothing Dim isActive As Boolean 'If e.CommandName = RadGrid.UpdateCommandName Then ' If TypeOf (e.Item) Is GridEditFormItem Then ' Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem) ' If DirectCast(item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.HasValue Then ' expireDate = CType(item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.Value ' End If 'End If If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode AndAlso Not e.Item.OwnerTableView.IsItemInserted Then 'Dim editItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem) 'Dim item As GridDataItem = DirectCast(editItem.ParentItem, GridDataItem) 'Dim datepick As RadDatePicker = DirectCast(editItem.FindControl("rdpExpireDate"), RadDatePicker) Dim editedItem As GridEditableItem = DirectCast(e.Item, GridEditableItem) Dim datepick As RadDatePicker = DirectCast(editedItem.FindControl("rdpExpireDate"), RadDatePicker) expireDate = datepick.SelectedDate.Value End If If Not e.Item.FindControl("rdpExpireDate") Is Nothing Then If CType(e.Item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.HasValue Then expireDate = CType(e.Item.FindControl("rdpExpireDate"), Telerik.Web.UI.RadDatePicker).SelectedDate.Value End If End If If Not e.Item.FindControl("chkIsActive") Is Nothing Then isActive = CType(e.Item.FindControl("chkIsActive"), CheckBox).Checked End If BanquetController.UpdateBanquetSite(banquetSitId, expireDate, isActive) lblMessage.Text = Localization.GetString( "SubscribeSuccess.Text", Me.LocalResourceFile) grdSites.EditIndexes.Clear() BindBanquetSites() Catch ex As Exception lblMessage.Text = ex.Message End Try End SubIn the above code "datepick.SelectedDate.Value" returns null for me.
I have tried out a number of other combinations(currently commented out) as well, all returning null for me, though the control is coming up fine.
Any help would be highly appreciated.
Thanks
Tariq
In assessing the damage, I went through and made a list of all pages that got the error. The only pages that get the error on our website are ones that contain a Telerik ComboBox control. We have pages containing other Telerik controls that do not get this error. Has anyone else seen this problem? This just started today and our customers are freaking out.
We are using version 2010.2.713.35.