Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
I don't understand what setting or property of the menu or menuitems will cause ALL the dropdown menus to left-align.

My dropdowns always align under the top-level item.

I was able to acheive left alignment by doing this CSS hack. But this cant be the right way of doing this. My page is here:

http://kw.my.etghost.net

.Item1 .rmSlide
   {
       left: 0px !important;
   }   
.Item2 .rmSlide
   {
       left: -170px !important;
   }   
.Item3 .rmSlide
   {
       left: -340px !important;
   }
Kate
Telerik team
 answered on 21 Jun 2013
3 answers
147 views
I have a radgrid I am creating dynmically including an editcolumn but when I click on the edit Column button I get the following error?

"An error has occurred because a control with id 'dgCompGrid$ctl00$ctl04$EditButton' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error."

I have changed the grids viewstate = True but still get the same error?

        With dgCompGrid
            .Columns.Clear()
            .DataSource = Nothing
            .EnableViewState = True
            .DataSource = ippService.Select(ID)
        End With

        Dim oEditColumn As New GridEditCommandColumn
        With oEditColumn
            .ButtonType = GridButtonColumnType.ImageButton
            .UniqueName = "EditColumn"
            .CancelImageUrl = "~/Images/small/x_out.gif"
            .EditImageUrl = "~/Images/small/pencil.gif"
            .UpdateImageUrl = "~/Images/small/save_blue.gif"
            .ItemStyle.Wrap = False
        End With

        dgCompGrid.MasterTableView.Columns.Add(oEditColumn)


If I comment out the buttontype were the column shows EDIT instead of an image button it have no problems?

I use the Needdatasource to call a sub that loads the data.

Thanks in Advance.
Stefan
Top achievements
Rank 2
 answered on 21 Jun 2013
1 answer
102 views
Hi,
is there a way to check which RadTreeviewContextMenu was selected. (Server Side)
I have 3 contextmenus
Kate
Telerik team
 answered on 21 Jun 2013
2 answers
246 views

I am using the RadNotification control to notify the user of their session timeout due to inactivity.  I am basically following the example from the demo on the site.  But notification keeps showing even if there was ajax calls that keeps the session alive. I couldn't find any documentation on handling sliding session timeouts with radnotification control.
Marin Bratanov
Telerik team
 answered on 21 Jun 2013
4 answers
189 views
I have a radcombobox control on a pop rad window on a web server that will not open to display the items.
It does work on my laptop though
What is the work around?
Marin Bratanov
Telerik team
 answered on 21 Jun 2013
5 answers
74 views
I'm using VS 2012 on Windows 8.  Works fine on Chrome, but when I'm using IE it's blank every time I manually select it.  If I set it programatically at the start then I can see it. Or if I set AutoPostback=true, then I can see it too.

I'm just using a dictionary to fill my combo box

<telerik:RadComboBox ID="rcbSeasonsFilt"
 
    EmptyMessage="Change Season" DataTextField="Key"
    runat="server" DataValueField="Value" />

EDIT, I'm using q1 2013 asp.net 4.5 v 2013.1.220.45
Nencho
Telerik team
 answered on 21 Jun 2013
1 answer
536 views
I downloaded this file:
TelerikControlPanelSetup_2013_1_530.exe

and this file:
RadControlsForAspNetAjaxControlPanel_2013_2_611.exe

Executing either throws error stating I have a connection problem.  Which I don't as you can see by virtue of me adding this post. Please help
Thanks

Dyanko
Telerik team
 answered on 21 Jun 2013
2 answers
218 views
I have an asp.net page with 2 raddatepickers on it.  I would like for the user to be able to pick a date from picker_1 and picker_2 would get populated with that same date.  How can this be done??
Rusty
Top achievements
Rank 1
 answered on 21 Jun 2013
3 answers
94 views
I have deployed an ASP.Net app that uses ASP.Net Ajax controls to different servers in different environments and all is fine with the exception of one page within the site that the Telerik controls do not appear correctly.

I've examined the source for the page that works and the page that doesn't and the only difference is the fact the in the head section there are two <link> WebResource references missing on the page that does not work. For reference, the controls that do not display correctly are used on other pages in the site and they display correctly.

If have compared every file in the site (source, DLL, etc.) and they are all identical from server to server.

Any idea why certain WebResource references would not be generated on one server but would be on another?

Hugh
Marin Bratanov
Telerik team
 answered on 21 Jun 2013
1 answer
161 views
Hi , I have a problem with the telerik ajax controls like this.

I have this master page :
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="Resource_Main" %>
 
<!DOCTYPE html>
 
<head runat="server">
 
    <link href="/resource/main.css" type="text/css" rel="stylesheet" />
 
    <script src="/resource/js/jquery-2.0.0.js"></script>
    <script src="/resource/js/jquery-2.0.0.min.js"></script>
    <script src="/resource/js/jquery.json-2.2.min.js"></script>
 
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
    <script>
        $(document).ready(function () {
            $("#loginPanel").hide();
 
 
 
            $("#btnlogin").on("click", function (event) {
                $("#loginPanel").fadeToggle("fast", "swing");
            });
 
            $("#btnDoLogin").on("click", Login);
 
            $("#btnProfileMenu").on("click", function (event) {
                $("#tdPbar").fadeToggle("fast", "swing");
            });
 
 
 
            if (sessionStorage.getItem("LOGINED") == "True") {
                $("#btnlogin").hide("Slow");
                $("#btnProfileMenu").show("fast")
                $("#tdPbar").hide("fast");
            }
            else {
                $("#btnProfileMenu").hide("fast");
                $("#btnlogin").show("fast");
                $("#tdPbar").hide("fast");
            }
 
        });
 
 
        function Login() {
            $("#loadingLogin").html("<img width='20px' src='/resource/img/loading141.gif' />");
 
            $.ajax({
 
                type: "POST",
                url: "default.aspx/login",
 
                data: "{'User_name':'" + $("#<%=txtUser.ClientID%>").val() + "','User_Pass':'" + $("#<%=txtPass.ClientID%>").val() + "'}",
 
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                async: true,
                cache: false,
                success: function (msg) {
                    if (msg.d == 'true') {
                        $("#loadingLogin").html("<span class='msg'>Login successd,Redirecting ...</span>");
                        sessionStorage.setItem("LOGINED", "True");
                        sessionStorage.setItem("username", $("#<%=txtUser.ClientID%>").val());
                        document.location.href = '/default.aspx';
                    }
                    else {
                        $("#loadingLogin").html("<span class='error'>" + msg.d + "</span>");
                    }
 
                }
 
            });
        }
 
    </script>
</head>
<body>
 
    <form id="form1" runat="server">
        <table style="width: 100%;" cellpadding="0" cellspacing="0">
            <tr>
                <td class="Header">
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50px;"></td>
                            <td style="width: 170px;">
                                <img src="/resource/img/Logo.png" /></td>
                            <td style="width: 825px;">
                                <asp:TextBox ID="txtSearch" CssClass="txtSearch" runat="server"></asp:TextBox>
                                <asp:Button ID="btnSearch" CssClass="btnSearch" runat="server" Text="              " />
                            </td>
                            <td>
                                <input name="btnlogin" id="btnlogin" type="button" onclick="" class="btnLogin" value="Login" />
                                <input name="btnProfileMenu" id="btnProfileMenu" type="button" onclick="" class="btnLogin" value="Profile" />
                                <span name="loginPanel" id="loginPanel" class="LoginPanel">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td style="width: 80px">Username :</td>
                                            <td>
                                                <asp:TextBox ID="txtUser" runat="server" CssClass="publicTextBox" Width="90%"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>Password :</td>
                                            <td>
                                                <asp:TextBox ID="txtPass" runat="server" CssClass="publicTextBox" Width="90%" TextMode="Password"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="vertical-align: central">
                                                <input name="btnDoLogin" id="btnDoLogin" type="button" onclick="" class="publicButton" value="Sing in" />
 
                                                <span id="loadingLogin" name="loadingLogin" class="loadingLogin"></span></td>
                                        </tr>
                                    </table>
                                </span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td id="tdPbar" class="Header" colspan="4">
 
                    <table style="width: 100%;" cellpadding="0" cellspacing="0">
 
                        <tr>
 
                            <td>
                                <asp:LinkButton ID="LinkButton2" runat="server" CssClass="LinkButtonProfileMenu">LinkButton</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="LinkButtonProfileMenu" PostBackUrl="~/Upload.aspx">Upload</asp:LinkButton>
                                <asp:LinkButton ID="lbtnMyChannel" runat="server" PostBackUrl="~/MyChannel.aspx" CssClass="LinkButtonProfileMenu">My Channel</asp:LinkButton></td>
 
                        </tr>
 
                    </table>
 
                </td>
            </tr>
            <tr style="height:500px">
                <td style="vertical-align:top">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </td>
            </tr>
            <tr>
                <td class="Footer">Copyright  2013-2014 by Video Arts Company</td>
            </tr>
        </table>
    </form>
</body>
</html>

and i have a a page upload.aspx
I'd like to use the RadAsyncUpload control in my page , i add a RadScriptManager and i register the Assembly of telerik in my web.config , but when run the page i receive this error :
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

my upload.aspx is :
<%@ Page Title="" Language="C#" MasterPageFile="~/Resource/Main.master" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="VartsTube.Upload" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
 
 
    <table class="tblUpload">
        <tr>
            <td class="tblUploadCenterTD">
                <table class="tblUpload">
                    <tr>
                        <td class="tdUpload2">
                            <h3>Upload Video</h3>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdUpload1">
                            <h5>Select Your Video </h5>
                            <p>
                                <telerik:RadAjaxPanel ID="ajxpanelupload" runat="server" Height="200px" Width="300px">
                                    <telerik:RadAsyncUpload ID="uploader" runat="server"></telerik:RadAsyncUpload>
                                </telerik:RadAjaxPanel>
                            </p>
 
                        </td>
                    </tr>
                    <tr>
                        <td class="tdUpload1">
                            <h5 style="direction: ltr; text-align: left">Title</h5>
                            <asp:TextBox ID="txtTitle" CssClass="txtTitle" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdUpload1">
                            <h5 style="direction: ltr; text-align: left">Description</h5>
                            <asp:TextBox ID="txtDesc" CssClass="txtTitle" runat="server" TextMode="MultiLine" Height="60px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdUpload3">
                            <input name="btnSubmiteUpload" id="btnSubmiteUpload" type="button" onclick="" class="publicButton" value="Submite" />
 
 
                        </td>
                    </tr>
                </table>
            </td>
            <td></td>
        </tr>
    </table>
 
 
</asp:Content>

and this is my web.config :
<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <appSettings />
  <connectionStrings />
  <system.web>
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="Windows" />
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5" />
        <providerOption name="WarnAsError" value="false" />
      </compiler>
    </compilers>
  </system.codedom>
  <!--
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>


how can i fix it ?

Thank's a lot if you reply ASAP....
Mohammad
Top achievements
Rank 2
 answered on 21 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?