Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views
We use Rad controls for a customer, and they just realized that the link manager did not work anymore. Maybe something changed when we updated the rad controls.
We currently uses Telerik 2012.3.1308.40 (Quarter 3 of 2012 i guess, been a while since we last updated).

When clicking the button for adding links the window pops up but the "Ok" and "Cancel" buttons does not work, the close button on top works.
With the console active in Chrome i get the following errors when the popup shows:

Uncaught SyntaxError: Unexpected token > Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:354
Uncaught TypeError: Cannot read property 'LinkManager' of undefined Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:851(anonymous function)Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=L%C3%A4nkhanterare&doid…:851(anonymous function)ScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:3484Sys$_Application$_raiseInitScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5084Sys$_Application$initializeScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:4934initScriptResource.axd?d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5038Sys$_Application$_domReady.document.addEventListener.checkScriptResource.axd?
d=YepxDFowAbF2_2YC3FeFxc4R4ZETisY3a3SE46UzpJAqGHHDN8pVqJ-Zk0K9nQhXuWxdGzIaQcl4Li…:5049

The html definition we uses on the page is the following:

<telerik:RadEditor ID="RadEditorDesc" runat="server" EditModes="Design, Html">
                                    <Tools>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="Print" />
                                            <telerik:EditorTool Name="FindAndReplace" />
                                            <telerik:EditorTool Name="SelectAll" />
                                            <telerik:EditorTool Name="Cut" />
                                            <telerik:EditorTool Name="Copy" />
                                            <telerik:EditorTool Name="Paste" />
                                            <telerik:EditorTool Name="PasteStrip" />
                                            <telerik:EditorTool Name="Undo" />
                                            <telerik:EditorTool Name="Redo" />
                                        </telerik:EditorToolGroup>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="InsertOrderedList" />
                                            <telerik:EditorTool Name="InsertUnorderedList" />
                                            <telerik:EditorTool Name="LinkManager" />
                                        </telerik:EditorToolGroup>
                                        <telerik:EditorToolGroup>
                                            <telerik:EditorTool Name="FontName" />
                                            <telerik:EditorTool Name="FontSize" />
                                            <telerik:EditorTool Name="ForeColor" />
                                            <telerik:EditorTool Name="Bold" />
                                            <telerik:EditorTool Name="Italic" />
                                            <telerik:EditorTool Name="Underline" />
                                            <telerik:EditorSeparator />
                                            <telerik:EditorTool Name="JustifyLeft" />
                                            <telerik:EditorTool Name="JustifyCenter" />
                                            <telerik:EditorTool Name="JustifyRight" />
                                            <telerik:EditorTool Name="JustifyFull" />
                                            <telerik:EditorTool Name="JustifyNone" />
                                        </telerik:EditorToolGroup>
                                    </Tools>
                                    <Content>
                                    
                                    
                                    </Content>
                                </telerik:RadEditor>

I have checked the web.config for configurations regarding handlers:
<system.web>
<httpHandlers>
      <!-- AJAX -->
      <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.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
      <add verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <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.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" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    </httpHandlers>
</system.web>

<system.webServer>
<handlers>
      <add name="EPiTraceTracker" path="TrackerHandler.ashx" verb="*" type="EPiServer.Trace.CMS.Web.Handlers.TrackerHandler" />
      <clear />
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.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=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="TraceHandler-Integrated" path="trace.axd" verb="GET,HEAD,POST,DEBUG" type="System.Web.Handlers.TraceHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="WebAdminHandler-Integrated" path="WebAdmin.axd" verb="GET,DEBUG" type="System.Web.Handlers.WebAdminHandler" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.SimpleHandlerFactory" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="WebServiceHandlerFactory-Integrated" path="*.asmx" verb="GET,HEAD,POST,DEBUG" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="HttpRemotingHandlerFactory-rem-Integrated" path="*.rem" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="HttpRemotingHandlerFactory-soap-Integrated" path="*.soap" verb="GET,HEAD,POST,DEBUG" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" modules="ManagedPipelineHandler" scriptProcessor="" resourceType="Unspecified" requireAccess="Script" allowPathInfo="false" preCondition="integratedMode" responseBufferLimit="4194304" />
      <add name="TRACEVerbHandler" path="*" verb="TRACE" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
      <add name="OPTIONSVerbHandler" path="*" verb="OPTIONS" type="" modules="ProtocolSupportModule" scriptProcessor="" resourceType="Unspecified" requireAccess="None" allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
      <add name="ComponentArtScriptHandler" verb="*" path="ComponentArtScript.axd" type="Dropit.ComponentArt.Web.UI.ScriptHandler,Dropit.ComponentArt.Web.UI" preCondition="integratedMode" />
      <add name="StaticFileHandler" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
      <add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <!-- re-add the clear directive first in line-->
    </handlers>
</system.webServer>






Ianko
Telerik team
 answered on 04 Sep 2014
1 answer
230 views

I am trying to use Validations on RadPageView as below  and its not working (Paging not working):

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">

        <Tabs>

            <telerik:RadTab Text="Tap1 "
Width="200px">

            </telerik:RadTab>

            <telerik:RadTab Text=" Tap2"
Width="200px">

            </telerik:RadTab>

            <telerik:RadTab Text=" Tap3 Width="200px">

            </telerik:RadTab>

        </Tabs>

    </telerik:RadTabStrip>

    <telerik:RadMultiPage runat="server"
ID="RadMultiPage1"
SelectedIndex="0"
CssClass="outerMultiPage">

     

        <telerik:RadPageView runat="server"
ID="RadPageView2">

            <div class="ClientClass">

               
<table>

 

                   
<tr>

                        <td>

                            <div class="classImg">

                                <telerik:RadXmlHttpPanel runat="server"
Height="240px"
ID="radxmlhttppanel1"
Value="3"

                                    CssClass="xmlpanelcustomerinfo">

                                    <div class="classDiv">

                                        <table cellpadding="5px"
cellspacing="5px"
frame="border"
rules="groups"
style="position: absolute">

                                            <tr>

                                               
<td
style="width: 120px;">

                                                   
Phone:

                                               
</td>

                                               
<td
style="width: 150px;">

                                                   
<asp:TextBox ID="PhoneTextBox"
runat="server"
Width="116px"
MaxLength="12"></asp:TextBox>

                                                </td>

                                             <td style="width: 200px;">

                                                   
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ControlToValidate="PhoneTextBox"

                                                       
Display="Dynamic"
ErrorMessage="RequiredFieldValidator"
ForeColor="Red">Required</asp:RequiredFieldValidator>

                                                    <asp:CustomValidator
ID="CustomValidator2" runat="server"
Display="Dynamic" ControlToValidate="PhoneTextBox"

                                                       
ClientValidationFunction="Validate_Sender"
ForeColor="Red">Invalid Phone</asp:CustomValidator>

                                               
</td>

 

                                            </tr>

                                            <tr>

                                               
<td
style="width: 200px;">

                                                   
Message Sender:

                                               
</td>

                                               
<td
style="width: 150px;">

                                                   
<asp:TextBox ID="sendertxt"
runat="server"
Width="116px"
MaxLength="11"></asp:TextBox>

                                               
</td>

                                            

 <td style="width: 200px;">

                                                   
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ControlToValidate="sendertxt"

                                                       
Display="Dynamic"
ErrorMessage="RequiredFieldValidator"
ForeColor="Red">Required</asp:RequiredFieldValidator>

                                                   
<%--</td>--%>

                                                   
<%--<td style="width:200px;">--%>

                                                 
<%-- 
<asp:CustomValidator ID="CustomValidator1"
runat="server" Display="Dynamic"
ControlToValidate="sendertxt"

    
                                                   ClientValidationFunction="Validate_Sender"
ForeColor="Red">Invalid message sender</asp:CustomValidator>

                                               
</td>

                                            </tr>

                                            <tr>

                                               
<td
style="width: 200px;">

                                                   
Msessage Text:

                                               
</td>

                                               
<td>

                                                    <asp:TextBox ID="msgtxt" runat="server"
TextMode="MultiLine"
Height="88px"
Width="280px"

                                                       
onkeyup="Update_Length_Label('bodyContent_msgtxt',
'bodyContent_length_lbl')"></asp:TextBox>

                                               
</td>

 

 <td>

                                                    <asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server"
ControlToValidate="msgtxt"

                                                       
ErrorMessage="RequiredFieldValidator"
Text="Required" ForeColor="Red">Reuired</asp:RequiredFieldValidator>

                                               
</td>

 

                                            </tr>

                                            <tr>

                                                <td>

                                                   
Message Length:

                                               
</td>

                                               
<td
colspan="2">

                                                   
<asp:Label ID="length_lbl"
runat="server"
Width="280px"
ViewStateMode="Enabled"></asp:Label>

                                               
</td>

                                            </tr>

                                            <tr style="height: 10px;">

                                            </tr>

                                            <tr>

                                               
<td
colspan="2">

                                                   
<asp:Button ID="Savebtn"
runat="server"
Text="Send"
Font-Bold="False"
Font-Size="Large"

                                                       
ForeColor="#333333"
Height="27px"
Width="85px"
OnClick="Sendbtn_Click"
/>

                                               
</td>

             
                              </tr>

                                        </table>

                                    </div>

                                </telerik:RadXmlHttpPanel>

                            </div>

                        </td>

                   
</tr>

               
</table>

            </div>

        </telerik:RadPageView>

    

    </telerik:RadMultiPage>

 

any suggestions  !!

 

 

Plamen
Telerik team
 answered on 04 Sep 2014
2 answers
76 views

Is it possible to drag around a RadDock without it becoming transparent?

I've tried hooking into the OnClientDragStart with this function:

function OnClientDragStart(sender, args)
{
   var dockElement = sender.get_element();
   dockElement.style.opacity = "";
   dockElement.style.mozOpacity = "";
   dockElement.style.filter = ""; 
}

It has no effect - I can set the transparency very low or high successfully, but even with transparency at the lowest, it visually looks about 50% transparent.

I've removed the SkinManager and tried a bunch of jQuery on individual elements in the OnClientDragStart function as well, but something in the framework is consistently setting the entire dock's transparency when dragging starts.

I'm using UI for ASP.NET AJAX, v2014.1.403.45

Thanks,
Mike
Mike
Top achievements
Rank 1
 answered on 03 Sep 2014
2 answers
823 views
I am using a radgrid populated by a standard object datasource with a matching data entity. The grid populates fine and everything is operating fine except for when the Add New Record button is clicked the grid loses its current page and goes to the last page of the grid.

I found a nifty way to stop that from happening along with preventing an edit and insert from occuring at the same time see code 1. This code block is firing on ItemCommand Insert Command.

The problem is when I call e.Canceled it completely messes up my ItemDataBound function that is populating a drop down list used to pick a value on insert. How can I do both, keep the drop down list populating appropriately and keep my paging where it started when the AddNewRecord was clicked? I am open to a solution that doesn't use code block 1 as i think it may over complicate it but I need some help on how to tackle the problem. Any ideas?

Code 1
switch (e.CommandName.ToUpper()) {
    case "INITINSERT":
        grid.MasterTableView.ClearEditItems();
        //Ensure the grid doesn't jump to the last page
        e.Canceled = true;
        int pageIndex = e.Item.OwnerTableView.CurrentPageIndex;
        e.Item.OwnerTableView.InsertItem();
        e.Item.OwnerTableView.CurrentPageIndex = pageIndex;
        e.Item.OwnerTableView.Rebind();
        return;
    case "EDIT":
        e.Item.OwnerTableView.IsItemInserted = false;
        return;
Greg
Top achievements
Rank 2
 answered on 03 Sep 2014
3 answers
280 views
Hello,

I am working on a project with a RadGrid.
I need to make a custom filter.
I read your documentation and saw the instructions how to do it.

My problem is that the code works only for string type filters.
I get the following error in line 08 when I try to filter other types:

Unable to cast object of type 'Telerik.Web.UI.RadNumericTextBox'
to type 'System.Web.UI.WebControls.TextBox'.

My grid is generic (columns and data fields types are changed dynamically in run-time). 

VB.NET Code:
01.Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGrid1.ItemCommand
02.  
03.  
04.        If e.CommandName = RadGrid.FilterCommandName Then
05.            Dim filterPair As Pair = CType(e.CommandArgument, Pair)
06.            Dim filteritem = (CType(e.Item, GridFilteringItem))
07.  
08.            Dim textBox As TextBox = CType(filteritem(filterPair.Second.ToString()).Controls(0), TextBox)
09.            'Dim textBox As CheckBox = CType(x(filterPair.Second.ToString()).Controls(0), CheckBox)
10.            'Dim textBox As RadNumericTextBox = CType(x(filterPair.Second.ToString()).Controls(0), RadNumericTextBox)
11.            'Dim textBox As RadDatePicker = CType(x(filterPair.Second.ToString()).Controls(0), RadDatePicker)
12.  
13.            Dim val As String = textBox.Text
14.            Select Case filterPair.First
15.                Case "EqualTo"
16.  
17.                    'some logic
18.  
19.  
20.                Case ""
21.            End Select
22.  
23.             
24.            e.Canceled = True
25.  
26.  
27.        End If
28.    End Sub


Thank you,
Daniel
Eyup
Telerik team
 answered on 03 Sep 2014
1 answer
225 views
I am using  RadImageEditor & RadGrid with some data with coordinates, When i select a record in the grid i want to draw a rectangle on the image to show the record position on the image and when user selects another record then we should move the rectangle to different position on the image.
 
Vessy
Telerik team
 answered on 03 Sep 2014
2 answers
97 views
Hello,

We have installed Telerik UI for ASP.NET Ajax (Telerik_Web_Parts_For_Sharepoint2010_2014_2_724_Trial.msi) and configured our SharePoint 2010 to use the RadEditor in List items as it is described here. We also performed an IISreset. Still a simple text box appears (see attached screen capture) instead of the full ribbon as shown into the demo. Note that the RadEditor WebPart works fine.

Could you please help us in understanding the missing configuration?

Regards,
Roger.

Roger Roch
Top achievements
Rank 1
 answered on 03 Sep 2014
3 answers
124 views
Greetings,

I was struggling earlier to figure out why my loading panel was not showing.  I inherited an application and was trying to Ajaxify it.  One of my Loading Panels would not show up even though it was doing a lengthy post-back.  I discovered that having align="left" on a table tag (I know, not good practice) causes the loading panel to disappear.  Here is a sample...

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="Sample" %>
 
<html>
  <head runat="server">
    <title>Loading Panel Sample</title>
  </head>
  <body>
    <form id="form1" runat="server">
      <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
                              Width="350">
          <table border="1" width="350">
            <tr>
              <td>
                <h2>
                  Loading Panel Will Show
                </h2>
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                <telerik:RadButton ID="RadButton1" runat="server" Text="Post Me" OnClick="RadButton1_Click">
                </telerik:RadButton>
              </td>
            </tr>
          </table>
        </telerik:RadAjaxPanel>
        <br />
        <br />
        <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel2">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel2"
                              Width="350">
          <table align="left" border="1" width="350">
            <tr>
              <td>
                <h2>
                  Loading Panel Will Not Show
                </h2>
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                filler...
              </td>
            </tr>
            <tr>
              <td>
                <telerik:RadButton ID="RadButton2" runat="server" Text="Post Me" OnClick="RadButton2_Click">
                </telerik:RadButton>
              </td>
            </tr>
          </table>
        </telerik:RadAjaxPanel>
      </div>
    </form>
  </body>
</html>

using System;
public partial class Sample : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
  }
 
  protected void RadButton1_Click(object sender, EventArgs e)
  {
    System.Threading.Thread.Sleep(1000);
  }
 
  protected void RadButton2_Click(object sender, EventArgs e)
  {
    System.Threading.Thread.Sleep(1000);
  }
}

I removed the left alignment from the table tags and now working great.  Just wanted to share in case somebody else has this issue.

Matt
Pavlina
Telerik team
 answered on 03 Sep 2014
1 answer
204 views
I have a Radgrid with 4 ItemTemplate columns each item template column has a Textbox. I need to fire SelectedCellChanged event when I move (click tab) from one cell (textbox) to other cell (I need to call a method which does calculations whenever a cell is changed). How do i do that?

Thanks in advance.

Note: I'm working on a web application using c#.

Regards,
Mohan.
Viktor Tachev
Telerik team
 answered on 03 Sep 2014
8 answers
369 views
I'm struggling with borders on my Grid export to pdf. I have a grid that contains 3 detail tables. My biggest problem is that the 2nd and 3rd detail grids are not exporting with borders. The first detail grid exports with a border. I've tried changing all settings, and tried applying the borders in the code-behind to no avail. I'm also unable to remove borders. I tried setting the BorderType to "NoBorders", but the output still contains borders. Is there an issue with multiple detail tables? I've attached a sample export.

​Here's my grid definition:
<telerik:RadGrid ID="CDMGrid" runat="server"
                AllowPaging="True"
                AllowSorting="true"
                PageSize="25"
                AutoGenerateColumns="false" Skin="Office2007"
                OnNeedDataSource="CDMGrid_NeedDataSource"
                OnItemDataBound="CDMGrid_ItemDataBound"
                OnPreRender="CDMGrid_PreRender"
                OnDetailTableDataBind="CDMGrid_DetailTableDataBind"
                Height="657">
                <ExportSettings IgnorePaging="false" OpenInNewWindow="true">
                    <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="25mm" BorderStyle="Thin" BorderColor="#666666" BorderType="AllBorders" />
                </ExportSettings>
                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
                <MasterTableView TableLayout="Fixed" DataKeyNames="ServiceCode, HospRegn, TechnicalDesc" Name="MasterTableView">
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="HospRegn" DataField="HospRegn" HeaderText="Region" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60" />
                        <telerik:GridBoundColumn UniqueName="ServiceCode" DataField="ServiceCode" HeaderText="Svc Code" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80" />
                        <telerik:GridBoundColumn UniqueName="GeneralDesc" DataField="GeneralDesc" HeaderText="General Description" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Size="11px"  />
                        <telerik:GridBoundColumn UniqueName="TechnicalDesc" DataField="TechnicalDesc" HeaderText="Technical Description" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" Visible="false" />
                        <telerik:GridNumericColumn NumericType="Currency" UniqueName="Price1" DataField="Price1" HeaderText="Current Price" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="85" />
                        <telerik:GridBoundColumn UniqueName="SvcTypeDesc" DataField="SvcTypeDesc" HeaderText="Svc Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="100" />
                        <telerik:GridBoundColumn UniqueName="InsCdStr" DataField="InsCdStr" HeaderText="Ins Cd" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="140" />
                        <telerik:GridBoundColumn UniqueName="GLKeyStr" DataField="GLKeyStr" HeaderText="GL Key" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                        <telerik:GridDateTimeColumn UniqueName="InactiveDate" DataField="InactiveDate" HeaderText="Inactive Date" HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="95" />
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView AllowPaging="false" AutoGenerateColumns="false" DataKeyNames="" Name="PriceDetail" Width="100%" Font-Size="11px">
                            <Columns>
                                <telerik:GridBoundColumn UniqueName="FormulaCode" DataField="FormulaCode" HeaderText="Formula Code" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="Price1" DataField="Price1" HeaderText="Price 1" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="Price2" DataField="Price2" HeaderText="Price 2" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="Price3" DataField="Price3" HeaderText="Price 3" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="Price4" DataField="Price4" HeaderText="Price 4" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridBoundColumn DataFormatString="0.00" UniqueName="UnitAmt1" DataField="UnitAmt1" HeaderText="Unit Amt 1" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridBoundColumn DataFormatString="0.00" UniqueName="UnitAmt2" DataField="UnitAmt2" HeaderText="Unit Amt 2" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="MinPrice" DataField="MinPrice" HeaderText="Min Price" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridNumericColumn NumericType="Currency" UniqueName="MaxPrice" DataField="MaxPrice" HeaderText="Max Price" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridDateTimeColumn UniqueName="EffectiveDate" DataField="EffectiveDate" HeaderText="Effective Date" HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="94" />
                            </Columns>
                        </telerik:GridTableView>
                        <telerik:GridTableView AllowPaging="false" AutoGenerateColumns="false" DataKeyNames="" Name="ProcedureDetail" Width="100%" Font-Size="11px">
                            <Columns>
                                <telerik:GridTemplateColumn UniqueName="Filler" />
                                <telerik:GridBoundColumn UniqueName="SegTypeInd" DataField="SegTypeInd" HeaderText="Seg Type" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="100" />
                                <telerik:GridBoundColumn UniqueName="ThirdPartyIndStr" DataField="ThirdPartyIndStr" HeaderText="Third Party Ind" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="140" />
                                <telerik:GridBoundColumn UniqueName="Code" DataField="Code" HeaderText="Code" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="70" />
                                <telerik:GridDateTimeColumn UniqueName="EffectiveDate" DataField="EffectiveDate" HeaderText="Effective Date" HeaderStyle-HorizontalAlign="Center" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="94" />
                            </Columns>
                        </telerik:GridTableView>
                        <telerik:GridTableView AllowPaging="false" AutoGenerateColumns="false" DataKeyNames="" Name="CostCenterDetail" Width="100%" Font-Size="11px" BackColor="#fafdc9">
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="Technical Description" UniqueName="TechnicalDesc" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-BackColor="#fafdc9" HeaderStyle-Width="250" >
                                    <ItemTemplate>
                                        <div style="padding-right: 16px;">
                                            <asp:Label ID="TechnicalDescLabel" runat="server" Text='<%# Eval("TechnicalDesc")%>' />
                                        </div>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn HeaderText="Allowable Cost Centers" UniqueName="AllowableCostCenters" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" ItemStyle-BackColor="#fafdc9">
                                    <ItemTemplate>
                                        <div style="padding-right: 16px;">
                                            <asp:Label ID="AllowableCostCentersLabel" runat="server" Text='<%# Eval("CostCenters")%>' />
                                        </div>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <PagerStyle AlwaysVisible="True" />
                </MasterTableView>
                <ClientSettings>
                    <Scrolling UseStaticHeaders="true" AllowScroll="true" SaveScrollPosition="True" ScrollHeight="100" />
                    <Selecting AllowRowSelect="False" />
                </ClientSettings>
            </telerik:RadGrid>




Daniel
Telerik team
 answered on 03 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?