or
a.RadContextMenu.prototype = {initialize: function() {......},attachContextMenu: function() { if (!this._detached) { return; } this._getContextMenuElement().parentNode.removeChild(this._getContextMenuElement()); this.get_element().insertBefore(this._getContextMenuElement(), $get(this.get_clientStateFieldID()));function OnCatalogTreeMenuItemClicked(sender, e) { var node = e.get_node(); var value = e.get_menuItem().get_value(); if (value == "delete") { sender.trackChanges(); var attributes = node.get_attributes(); attributes.setAttribute("Type", "Deleted"); attributes.setAttribute("HasChanged", "true"); node.set_visible(false); sender.commitChanges(); } e.get_menuItem().get_menu().hide();}Dear Experts,
I am using RadGrid to show my application data. In order to filter the related values I am using FilterTemplate with RadComboBox as it is nicely describe in this example. I Have up to 5 columns using this kind of tiltering.
Due to performance reasons I would like to change the server side loading of the filtering RadComboBoxes with the use of Web Services.
<telerik:GridBoundColumn DataField="OwnerId" UniqueName="OwnerId" DataType="System.Int32" /><telerik:GridBoundColumn DataField="OwnerName" SortExpression="OwnerName" DataType="System.String" UniqueName="OwnerName" AutoPostBackOnFilter="true" FilterDelay="800" ShowFilterIcon="false"> <FilterTemplate> <telerik:RadComboBox ID="RadComboBoxOwners" EnableAutomaticLoadOnDemand="True" Filter="StartsWith" AllowCustomText="true" AppendDataBoundItems="true" runat="server" OnClientSelectedIndexChanged="OwnerChanged" ViewStateMode="Enabled"> <Items> <telerik:RadComboBoxItem Text="All" Value="" Selected="true" /> </Items> <WebServiceSettings Path="~/DesktopModules/VipCrm/Wsi.asmx" Method="GetUsersFilter" /> </telerik:RadComboBox> <telerik:RadScriptBlock ID="RadScriptBlockOwners" runat="server"> <script type="text/javascript"> function OwnerChanged(sender, args) { $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>").filter("OwnerId", args.get_item().get_value(), "EqualTo"); } </script> </telerik:RadScriptBlock> </FilterTemplate></telerik:GridBoundColumn>
When trying to implement this I encountered the following problems:
Has anyone tried this approach? Do you have suggestion to solve the above problems?
Regards,
Kristijan
ERROR Name = [user name here] URL = http://[server name here]/[app name here]/WebResource.axd?d=sFh9ZVODkqTk5fNZCIKIMkVkP6jzFG7y-JZ9_b6fI2-rFsv37yMwoBV5wlOm5uGfmLgYWqtsLuH4d8CnbQXtlKLMnKtUe27Gd3koHY6av1k1&t=634248270600000000 Time = 2011-10-14 09:57:45.064Computer = [server name here]Exception: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)