Currently to use a UserControl in RadGrid, it has to be in EditFormSettings defined as UserControlName. This functionallity requires filling all the controls of UserControl again on ItemDataBound event. It should be possible to put the UserControl in FormTemplate when EditFormType is "Template" . Thank you.
In HeaderContextMenu was made a typo in item value. TopGroupSeparator is typed as TopGroupSeperator. I've wasted 10 minutes to find out why JS code is not working.
Had a script to invoke filter button on enter key in the Filter header context menu of rad grid. This worked fine in Telerik DLL File version - 2010.2.929.35 but recently we upgraded to latest DLL which is File version - 2012.2.912.40 and it stopped working. Could you please help me in resolving this issue? Code used in ASpx.cs was void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e) { if (e.Item.Value == "FilterMenuContainer") { RadTextBox HCFMRTBFirstCond = e.Item.FindControl("HCFMRTBFirstCond") as RadTextBox; HCFMRTBFirstCond.ClientEvents.OnKeyPress = "PressFilterButton"; RadTextBox HCFMRTBSecondCond = e.Item.FindControl("HCFMRTBSecondCond") as RadTextBox; HCFMRTBSecondCond.ClientEvents.OnKeyPress = "PressFilterButton"; } } Javascript code is function PressFilterButton(sender, args) { var c = args.get_keyCode(); if (c == 13) { var btnFilter = null; var btnref = sender._clientID.substring(0, sender._clientID.indexOf("RTBFirstCond")) + 'FilterButton'; btnFilter = document.getElementById(btnref); if (btnFilter != null) { btnFilter.click(); } } }
The RadGrid OnDataBindingFailed event does not fire when WCF/WebService returns an IIS 500 Errror page. It DOES, however, fire when IIS returns a proper 500 error JSON response. In my case, the former was happening because my ASP.NET WCF services were incorrectly configured and thus throwing a standard IIS 500 error page. RadGrid should recognize the IIS 500 page as failure and spawned a OnDataBindingFailed event. NOTE: For example, RadScheduler *does* correctly interpret the IIS 500 page as a failure (RE: OnClientRequestFailed).
Design-time error when SelectMethod property added. aspx <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowSorting="True" PageSize="10" AllowMultiRowEdit="False" ItemType="ContosoUniversity.Models.Student" DataKeyNames="StudentID" SelectMethod="GetStudentData" > </telerik:RadGrid> code-behind: public IQueryable<Student> GetStudentData([Control] AcademicYear? displayYear) { ..... ERROR: RadGrid - RadGrid1System.ArgumentException: source is not IEnumerable<> at System.Linq.Queryable.AsQueryable(IEnumerable source) at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.RadGrid.DataBind() at System.Web.UI.Design.WebControls.DataBoundControlDesigner.DataBind(BaseDataBoundControl dataBoundControl) at Telerik.Web.Design.RadGridDesigner.DataBind(BaseDataBoundControl dataBoundControl) at System.Web.UI.Design.WebControls.BaseDataBoundControlDesigner.GetDesignTimeHtml()