Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
602 views

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.

 

 

George
Top achievements
Rank 2
 answered on 21 Apr 2018
5 answers
402 views
Hi all,

I have a grid with a sub grid. All works wel, except the detail grid will not insert, update or delete. I can select edit, I'm getting a popup edit, but when I click update, the record is not being updated. No errors. The event "ItemCommand" triggers, and thats it! nothing else, no other events, not from the grid as the datasource.

I've tried (among other 1000 things) to use the detail datasource on a single grid, and there are no problems.

In the example:
http://demos.telerik.com/aspnet/prometheus/Grid/Examples/DataEditing/ThreeLevel/DefaultVB.aspx


it seems a piece of cake... I've copied all the properties edc.. It is costing mne hours and still nothing...

do I need to set other properties? Is detail editing not supported this way?
Cynthia
Top achievements
Rank 1
 answered on 20 Apr 2018
0 answers
82 views

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());
 
}

 

Yash
Top achievements
Rank 1
 asked on 20 Apr 2018
1 answer
147 views

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>
Attila Antal
Telerik team
 answered on 20 Apr 2018
0 answers
139 views
I have an radcombobox and datepicker in seperate update panel in a asp.net web form. when type values in combo and try to select date in datepicker, it freezed(opens the popup but could not select date values inside the pop up). Can any one help me? thanks in advance.
banu
Top achievements
Rank 1
 asked on 20 Apr 2018
1 answer
73 views

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

Jolly
Top achievements
Rank 1
 answered on 19 Apr 2018
8 answers
514 views
Hello team Telerik,

I am using your trial version and planning to renew my licence but i am facing some compatibility issues after using the trial version.
My Previous Version of Telerik.Web.UI.dll = 2008 3.1314.20
Version of trial Telerik.Web.UI.dll = 2014.2.724.40


Now the problem is that in my previous dll i am using skins like 'default2006' , 'skyblue' etc etc for my controls and those were working fine but as i updated the trial version dll in my project i am getting the error regarding these skins because these are not in the new version. Are your components not backward compatible?
if not then how can i fix the error that i am getting (by changing the previous skins with the new one on every screen?)

Secondly, I have used some custom skins while i was using the previous version of dll but as i updated the trail version the custom skins are not working also?
my second question is that does newer version supports custom control skins? if yes the Give me an example where a custom skin is used on a control.

My third question is that What EnableEmbeddedskins do? and keeping in mind the above two scenarios how can i use it?
(i have seen a post where u people have suggested to disable it in web.config and then enabled it for only specific screen where control is using SKIN.is it the only way to use it? going on every screen with skin attribute in it and EnableEmbededSkins= true for that control? ) Please give me an early response so that i can buy the licence as soon as possible...



Rumen
Telerik team
 answered on 19 Apr 2018
0 answers
113 views

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?

 

Perry
Top achievements
Rank 1
 asked on 19 Apr 2018
2 answers
259 views
I'm now being told by my users that it's imperative to be able to navigate the batch edit using the up and down arrows.  Essentially they are looking for the functionality of Excel in a webpage. Up and Down should go to the next or previous row, and left and right should be the same as tab / shift + tab.

Does this functionality exist?  And if so how would I activate it?  

Thank you.
Smit
Top achievements
Rank 1
 answered on 19 Apr 2018
3 answers
931 views

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

 

 

Eyup
Telerik team
 answered on 19 Apr 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?