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()
I have created a dynamic hierarchical grid bind with dataset. I would like to have provision for Add/Update/Delete. I could not do that. even i don't see any demos for the same to my knowledge that is not doable. Is there a way to do that please redirect me?
After the upgrade yesterday, when an event is fired using AjaxPanel or AjaxManager, the first column of the grid is showed reduced (I'm using a button to change the page view on a multipage, but the grid is on second page) then if I apply sorting on a column the grid show well, next change the page and wend return to the page of the grid this is showed bad. The same error is doing when I have a grid and RadWindow is showed over a grid (in modal mode).
This is not a bug. In order to show the value into the GridDropDownColumn the relation between fields from the GridDropDownColumn data source and the grid datasource must be correct. Into the attached project in order to show the value in GridDropDownColumn the GridDropDownColumn's DataField needs to be "MyItemID": <telerik:GridDropDownColumn DataField="MyItemID" DataSourceID="SqlDataSourceColors" FilterControlAltText="Filter Color column" HeaderText="GridDropDownColumn" ListTextField="ColorName" ListValueField="ColorID" SortExpression="ColorName" UniqueName="MyItemIDMyItemID"> </telerik:GridDropDownColumn> Additionally the filtering also works as expected. More information here: http://www.telerik.com/help/aspnet-ajax/grid-filtering-by-listtextfield-for-griddropdowncolumn.html