On Phone and Table device browsers, I get this error on two pages.
The control with ID '' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The control with ID '' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.The two pages have one thing in common, a control being used. The one page basically is just a RadCaptcha giving access to another page.
They work fine with normal desktop browsers, or on the device when the browser is switched to desktop mode (Chrome).
The page has a just inside the form in the Site.Master file. It is an ASP.NET application Master files. The RadCaptcha is at the bottom the page well below the RadScriptManager definition.
If I add an aspiptManager, I get an error saying you can only have one script manager.
My RadScriptManager call looks like this.
<telerik:RadScriptManager ID="RadScriptManager" runat="server" CdnSettings-TelerikCdn="Enabled"> <Scripts> <%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=301884 --%> <%--Framework Scripts--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> <asp:ScriptReference Name="MsAjaxBundle" /> <asp:ScriptReference Name="jquery" /> <asp:ScriptReference Name="bootstrap" /> <asp:ScriptReference Name="respond" /> <asp:ScriptReference Name="WebFormsBundle" /> <%--Site Scripts--%> </Scripts></telerik:RadScriptManager>
The problem would seem to be RadCaptcha related.
I have a rad grid and on every row i have rad toggle button, now i want whenever user change state of toggle button then in javascript i have to get row index of rad grid.
I have written following
its giving me toggle button that state just changed but now i want row index of radgrid where this control resides
function toggleStateChangedDir(sender, args) { var getElement= $telerik.$(sender.get_element()); }
Hi
Below is a snippet of markup from a RadGrid. These colunms do not show when I have UseStaticHeader=true.
Andy Ideas.
Andy
<telerik:RadGrid ID="rdDashboard" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins="False" Skin="Activity" GridLines="None" EnableViewState="true" GroupingSettings-CaseSensitive="false" ClientSettings-Scrolling-UseStaticHeaders="true" ClientSettings-Scrolling-AllowScroll="true" Height="730px" > <MasterTableView DataKeyNames="ID"> <Columns> <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false" SortExpression="ID" HeaderText=" … "></telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="AppointmentEdit" UniqueName="AppointmentEdit"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="ViewDemog" UniqueName="ViewDemog" SortExpression="Demog" HeaderText=" … "> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="IsVulnerable" UniqueName="IsVulnerable"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="VisuallyImpaired" UniqueName="VisuallyImpaired"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="HearingImpaired" UniqueName="HearingImpaired"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Transport" UniqueName="Transport"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Porter" UniqueName="Porter"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Interpreter" UniqueName="Interpreter"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="ReceptionAlert" UniqueName="ReceptionAlert"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="PASAlert" UniqueName="PASAlert"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="AdditionalEvent" ImageUrl="~/Content/Images/Scales_24.png" UniqueName="AdditionalEvent" SortExpression="AdditionalEvent" HeaderText=" … " HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> <HeaderStyle Width="1px" /> <ItemStyle Width="1px" /> </telerik:GridButtonColumn>
I have a GridRating column in my RadGrid. My Grid is populated by Javascript at run time and there is no design time or code behind databinding. Is there a way the Rating column can be accessed at javascript level in OnRowDataBound method and the value set for the same?
Thanks

I have a RadGrid setup like this
<div id="Grid"> <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" AutoGenerateColumns="false" AllowPaging="true" OnNeedDataSource="UserGrid_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemCreated="RadGrid1_ItemCreated" OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand"> <MasterTableView DataKeyNames="UserID" CommandItemDisplay="Top" EditMode="EditForms"> <Columns> <telerik:GridEditCommandColumn /> <telerik:GridBoundColumn DataField="UserID" HeaderText="User ID" ReadOnly="true" ForceExtractValue="Always" ConvertEmptyStringToNull="true" /> <telerik:GridCheckBoxColumn DataField="Active" HeaderText="Active" SortExpression="Active" UniqueName="chkActive"></telerik:GridCheckBoxColumn> <telerik:GridTemplateColumn HeaderText="Role"> <ItemTemplate> <%#DataBinder.Eval(Container.DataItem, "Role")%> </ItemTemplate> <EditItemTemplate> <asp:DropDownList runat="server" ID="ddlRoles"> <asp:ListItem Text ="Admin" Value ="Administrator"></asp:ListItem> <asp:ListItem Text ="User" Value ="User"></asp:ListItem> </asp:DropDownList> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" /> <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName ="LastName"/> <telerik:GridBoundColumn DataField="UserName" HeaderText="User Name" UniqueName="UserName" /> <telerik:GridBoundColumn DataField="EmailAddress" HeaderText="Email Address" UniqueName="Email" /> <telerik:GridButtonColumn ConfirmText="Delete this User?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="FontIconButton" CommandName="Delete" /> </Columns> <EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit User: {0}" CaptionDataField="FirstName"> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> </telerik:RadGrid> </div>
I want to udpade or add new records using C# code behind. However I cannot get access to any of the controls. When thew code attemps to read the value of the value of the control, in this case a textbox, I get an error message stating {"Object reference not set to an instance of an object."} here is the code
protected void RadGrid1_UpdateCommand(object sender, GridCommandEventArgs e) { GridEditableItem editedItem = e.Item as GridEditableItem; UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); string strUserID = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["UserID"].ToString(); int intUserId = Convert.ToUInt16(strUserID); using (ExpungeEntities db = new ExpungeEntities()) { var Results = db.USERS_T_DATA.SingleOrDefault(i => i.UserID == intUserId); if (Results == null) { RadGrid1.Controls.Add(new LiteralControl("Unable to locate that user for updating")); e.Canceled = true; return; } Results.FirstName = (userControl.FindControl("FirstName") as TextBox).Text; } }Can you please tell me what the problem is?
Hello Guys,
I am new to Telerik Controls and my question is
How do i embed dropdownlist ( Or radcombobox ) and editable text box indise a radgrid ?
Please refer to attachment
( Dropdownlist or radgrid should populate from datasource)
I have already written the logic for edit delete save commands but to display them inside the grid is my doubt
