Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
412 views
Hi,

I am developing telerik asp.net ajax proejct using .net 4.0 and vs 2012. All the controls are working fine in development environment, but it is working same (esp RadSlider & RadRadialGuage controls) after i deploy in the testing server(Windows server 2008 r2, iis 7.5). Find below my web.config file.
I really appreciate your help.

Thanks,
Jay

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <connectionStrings>
      <add name="AppConStr" connectionString="Server=xxx.xxx.x.xx,1433;Database=xxxDb;User ID=xx;Password=xx;Trusted_Connection=True;Integrated Security=False" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
      <customErrors mode="Off">
        <!--<customErrors mode="On" defaultRedirect="ConstructionsPage.html" >
            <error statusCode="403" redirect="ConstructionsPage.html"/>
            <error statusCode="404" redirect="ConstructionsPage.html"/>-->
      </customErrors>
      <globalization enableClientBasedCulture="true" culture="auto:en-GB" uiCulture="auto:en" />
      <compilation debug="true" targetFramework="4.0">
        <assemblies>
          <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        </assemblies>
        <buildProviders>
          <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
        </buildProviders>
      </compilation>
      <pages>
        <controls>
          <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        </controls>
      </pages>
      <httpHandlers>
        <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
        <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
      <httpModules>
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
        <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      </httpModules>
    </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>      
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      
    </handlers>
    <directoryBrowse enabled="true" />
    <staticContent>
      <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
      <mimeMap fileExtension=".kmz" mimeType="application/vnd.google-earth.kmz" />
    </staticContent>
    <defaultDocument>
      <files>
        <clear />
        <add value="index.html" />
        <add value="Login.aspx" />
        <add value="iisstart.htm" />
        <add value="default.aspx" />
        <add value="index.php" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

Marin Bratanov
Telerik team
 answered on 19 Apr 2013
4 answers
209 views
Hello friends:

My problem is that i have two editing modes in a grid, the two have to call to updateCommand but the first button have to execute one method and the second buttom execute other method.

in the itemCommand i have this code:

if (e.CommandName == "Desasignar")
                {
                    //la condicion indica que si el campo fecha_baja esta vacio se ejecute la linea, si no ya esta dado de baja
                    if (item.Cells[9].Text == " ")
                        (item as GridEditableItem).FireCommandEvent(RadGrid.EditCommandName, "Desasignar");
                }
                if (e.CommandName == "EliminarDispositivo")
                {
                    //la condicion indica que si el campo fecha_baja esta vacio se ejecute la linea, si no ya esta dado de baja
                    if (item.Cells[9].Text == " ")
                        (item as GridEditableItem).FireCommandEvent(RadGrid.EditCommandName, "EliminarDispositivo");
                }

and the UpdateCommand code:

//Si el argumento es desasignar
if(e.CommandArgument == "Desasignar")
{
        .......
}
 
//Si el argumento es Eliminar el dispositivo
if (e.CommandArgument == "EliminarDispositivo")
{
          .......
}


then, in the updateCommand, e.CommandArgument = ""; and i need distinguish the buttom 

Thanks for the help!!
Eyup
Telerik team
 answered on 19 Apr 2013
7 answers
171 views
I am using Telerik Ajax tools in my project. Recently we upgraded the .NET Ajax tools to the latest 2012.3.1308.35 product version. One issue is pertaining to a single page. It is the improper rendering of the Ajax Panel on edit mode. The page looks somewhat like this :

<RadAjaxPanel ....>
    <asp:FormView...... >
        <Header Template >
                User control with certain controls as Edit, Save, Toggle, etc.
        </Header Template>
        <Item Template>
            <Label... />
        </ Item Template >
        <Edit Item Template >
            <Custom Validator... />
                <asp:Button />
            <Rad Editor... />  (It uses the same internal Rad Editor Skin )
         < / Edit Item Template >
    </ Form View>
< / RadAjaxPaneI>

It has two such above mentioned sections. In ReadOnly Mode, the page looks fine but when the FormView is changed to Edit mode for the FIRST TIME, the entire panel becomes too wide to be enclosed within the screen, all the save, edit etc buttons on the right top corner of the panel is not visible as the panel extends invariably towards the right. We have a toggle button on the left top corner which minimises or maximises the panel ( by default panel is maximised ). After this, if we minimise the panel and maximize again, everything becomes fine and takes the correct positions with proper width and visible buttons. Later any number of edits wold not affect anyway and will show proper result. 

As I mentioned above, we have two panel sections. This happens for the panel (only one time) which is pushed into edit mode FIRST after the rendering of the page. The other section which is edited second works properly at all times. Even after multiple refreshing of the page, this erroneous behaviour remains the same.

Please help me with this.

    
    
    
Maria Ilieva
Telerik team
 answered on 19 Apr 2013
1 answer
129 views
Hi
     How can I select a row on checkbox column click from client side. Please post a viable solution.
thanks
Allen
Princy
Top achievements
Rank 2
 answered on 19 Apr 2013
1 answer
79 views
Our QA posted this : Date formatting:  When ‘04162013’ is entered, the field will auto-format the entry to reflect ‘04/16/2013’.  If ‘0416/2013’ or ‘04/162013’ is entered….the field flags the entry as an error and will not auto-format

Is there anything I can do using JavaScript and such ?
Angel Petrov
Telerik team
 answered on 19 Apr 2013
1 answer
86 views
Hi
   How can I hide filter row on editing radgird. thanks for your reply in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 19 Apr 2013
1 answer
97 views
I am getting this error is Azure only. When running locally the program executes as expected. Any thoughts?
SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3abcbc5876-5d5e-4774-955e-2ecda3d55cd3%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc, line 15 character 16485

Here is the ASPX

<form id="dsxWeb_Login" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <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" />
        </Scripts>
    </telerik:RadScriptManager>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="loginClicked">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="loginMessage"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
            <telerik:RadCodeBlock ID="cb1" runat="server">
                <script type="text/javascript">
                    function invokeAjax()
                    {
                        try
                        {
                            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                            ajaxManager.ajaxRequest();
                        }
                        catch (err)
                        {
                            alert(err);
                        }
                    }
                </script>
            </telerik:RadCodeBlock>
            <div id="login">
                <div id="loginLogo"></div>
                <div id="loginProducts">
                    <ul>
                        <li><input type="checkbox" id="chkLoginFM" runat="server"/>Forecast Management</li>
                        <li><input type="checkbox" id="chkLoginRP" disabled="disabled" runat="server" />Requirements Planning (Coming Soon...)</li>
                    </ul>
                </div>
                <div id="loginForm">
                    Username:<br />
                    <input id="txtUsername" class="loginInput" runat="server"/><br /><br />
                    Password: <br />
                    <input id="txtPassword" class="loginInput" type="password" runat="server"/><br />
                    <input type="button" ID="btnLogin" onClick="invokeAjax(); return false;" Value="Login" />
                    <br />
                     
                </div>
               <div id="loginMessage" runat="server"><strong>Please enter login credentials.</strong></div>
            </div>
             
             
 
        </form>



Genady Sergeev
Telerik team
 answered on 19 Apr 2013
2 answers
249 views
using visual studio 2012 professional update 2 and Telerik RadControls for ASP.NET AJAX VSExtensions Package v2013.1.219.
I created a RadControls application and in the wizard, i set the default skin to Office2010Blue. i got the Telerik.Web.UI.Skins assembly automatically referenced. Whenever i use a telerik control, i cannot set any skin other than the default in the designer, if i open the drop down to select one i get a message that says : " No skins assembly found. To use the built-in skins, please add a reference to Telerik.Web.UI.Skins.dll or copy it to the Bin folder of your application and reload the solution in visual studio.

please advise
ck
Top achievements
Rank 1
 answered on 19 Apr 2013
3 answers
84 views
Hi,

we have radgrid which contains a checkbox for all rows in the grid, On checking and unchecking, checkbox, a text box is updated. textbox is located outside the radgrid. 

lets say the there are 10 results displayed in grid, on checking 4 checkboxes, text box will display the count 4. 

while double clicking or fast clicking the checkbox in the radgrid, value in textbox increments or decrements out of control.

is there an issue with radgrid and IE9 compatibility ?

Everything works well in other versions of IE ( 7& 8) and also in other browsers. 

thanks
Abdul Rahman.
Milena
Telerik team
 answered on 19 Apr 2013
1 answer
155 views
trying to get more into javascript and not doing postbacks if I do not have to.  What I am tring to figure out is how to show a div that is my information to insert on the radgrid add new record command.  cant do inside of the grid as I have a jquery autocomplete that does not play nice.  So how can I pop up a div in javascript on the click o fthe radgrid insert new record.

Protected Sub myRadGrid_InsertCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.InsertCommand
 
End Sub
 
Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
    If (e.CommandArgument = "Up") Then
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), " document.getElementById('divOut').style.display='block';", True)
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), " document.getElementById('tblAdmin').style.display='block';", True)
    End If
End Sub


<table class="ConsultGrid">
      <tr>
          <td>
             <telerik:RadGrid ID="myRadGrid" runat="server" Width="100%" Skin="Web20" >
                  <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intAdminId" CommandItemDisplay="Top">
                      <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                      <ItemStyle HorizontalAlign="Center"/>
                      <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                          <Columns>
                              <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                              <telerik:GridBoundColumn DataField="Name" HeaderText="NAME" />
                              <telerik:GridTemplateColumn>
                                  <ItemTemplate>
                                      <asp:LinkButton ID="lnkChange" runat="server" CommandArgument='<%# Bind("intAdminId")%>' CommandName="Up" Text="Add"></asp:LinkButton>
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="ADMIN">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbADmin" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitProgramAdmin") Is DBNull.Value, False, Eval("bitProgramAdmin"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="MEPS ADMIN">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbMepsAdmin" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitMepsAdmin") Is DBNull.Value, False, Eval("bitMepsAdmin"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                              <telerik:GridTemplateColumn HeaderText="ACTIVE">
                                  <ItemTemplate>
                                      <asp:CheckBox ID="cbActivate" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "bitActive") Is DBNull.Value, False, Eval("bitActive"))%>' runat="server" Enabled="false" />
                                  </ItemTemplate>
                              </telerik:GridTemplateColumn>
                           </Columns>
                              <EditFormSettings EditFormType="Template">
                                  <FormTemplate>
                                      
                                  </FormTemplate>
                              </EditFormSettings>
                  </MasterTableView>
             </telerik:RadGrid>
          </td>
      </tr>
  </table>
  <div class="happy" runat="server" id="divOut" style="display:none">
  </div>
   <table class="windows" runat="server" id="tblAdmin" style="display:none">
          <tr>
              <td style="text-align:right">Enter Admin: </td>
              <td>
                  <asp:TextBox ID="txtname" runat="server" Width="260px"></asp:TextBox><asp:HiddenField ID="HFId" runat="server" />
              </td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">Program Admin: </td>
              <td> <asp:CheckBox ID="cbAdmin" runat="server" /></td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">MEPS Admin: </td>
              <td> <asp:CheckBox ID="cbMepsAdmin"  runat="server" /></td>
          </tr>
          <tr>
              <td style="height:5px"></td>
          </tr>
          <tr>
              <td style="text-align:right">Active: </td>
              <td><asp:CheckBox ID="cbActive" runat="server" /></td>
          </tr>
          <tr>
              <td></td>
              <td>
                  <asp:LinkButton ID="lnkSubmit" runat="server" Text="Submit"></asp:LinkButton>
                       
                  <asp:LinkButton ID="lnkCancel" runat="server" CausesValidation="false" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
              </td>
          </tr>
          <tr>
              <td style="height:8px"></td>
          </tr>
      </table>
Antonio Stoilkov
Telerik team
 answered on 19 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?