Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi,
I am interested in knowing how the radeditor handles requestvalidation - does it encode the html within a javascript function and then decode server-side? Can you provide any information on how radeditor handles validation - like, when it does it, and where?

Thanks

Daniel
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
301 views
I am binding a set of addresses to the RadMap server-side, and would like to set the Zoom and CenterPosition so that the points on the map are all within view.

For instance, the user may have zoomed into the US - the selects a list that adds addresses in Europe.  I would like to reset the map zoom/center to show this whole group.  How would I go about doing this?
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
189 views
How to resize image on AsyncUpload?
I want to specify a maximum width (Constrain Proportions) when uploading a picture.
If the picture I upload is 1800px wide, I want to be saved as a maximum of 600 px wide.
Tips on how I solve it. I am using the "AsyncUpload - Validation" example....
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
8 answers
242 views
I have a Radgrid which is part of a popup window. the popup window has a panel which has an update panel to which the radgrid is added. The refresh and delete do not work here because the RadGrid1_ItemCommand is never invoked! Whereas if I add the same control, without the popup it works fine.
Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
3 answers
549 views
Hello,

My requirement is to refresh ajaxified grid's data based on some conditions from client side using jquery.
As a temporary solution, I have written following jquery code:

$("a.rgCurrentPage").each(function () {
                    $(this).removeAttr("onclick");
                    $(this)[0].click();
                });

Is telerik provided any client side function to trigger radgrid's pager number's click event using javascript ?

thank you in advance
Gafoor.
Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
1 answer
258 views
Hi there,

I have two RadAsyncUpload and a RadProgressArea on the same page, but I want the RadProgressArea to show only when the user uploading files using the first RadAsyncUpload, and hide the RadProgressArea when the user uploading through the second RadAsyncUpload. Currently, the RadProgressArea shows on both. Is there any way to hide the RadProgressArea using javascript? Any help is much appreciated.
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
5 answers
574 views
Want to get the tooltip of a current selected item in radcombobox
sandeep
Top achievements
Rank 1
 answered on 07 Jul 2014
4 answers
194 views
I am setting a target for the radbutton.  This was working fine with my last build from Q1.  With the latest Q2 build, it appears to be ignoring the Target setting to open the link in the parent window. Instead, it navigates to the new page within the existing window.  Did something change here?


<telerik:RadButton ID="testButton" runat="server" NavigateUrl="~/newPage" Text="Setup" Target="_parent" Skin="MetroTouch" ButtonType="LinkButton" AutoPostBack="false" />
Dobromir
Telerik team
 answered on 07 Jul 2014
1 answer
285 views
Hi,
I'm using UI for ASP.NET AJAX Q2 2014  2014.2.618.45 let me describe my problem:
I'm using a RadGrid with FormTemplate and 2 buttons, one for Insert or Update (I'm usig CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>') and one for Cancel; If I'm in insert mode and if  I press the TAB key to select the Save button and then I press the Enter Key, it is working fine but, when I'm in Update mode  and if  I press the TAB key to select the Save button and then I press the Enter Key, the Update button events never fires. It's is happening only for the Save button becouse if I select the Cancel button works fine.

I´m attaching my aspx code  for a better idea of what I'm describing

I hope you can help me.

Regards,
José Zamarrón

<%@ Page Title="" Language="C#" MasterPageFile="~/masterSRR.Master" AutoEventWireup="true" CodeBehind="rancho.aspx.cs" Inherits="SRRUI2.Catalogos.rancho" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphScriptsCss" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphFiltros" runat="Server">
    <table style="width: 100%">
        <tr>
            <td rowspan="3">
                <asp:Panel ID="Panel5" runat="server" BackColor="Transparent" Style="float: left;">
                    <asp:Image ID="Image1" ImageUrl="~/Imagenes/titulo-ranchos.png"
                        runat="server" />
                </asp:Panel>
            </td>
            <td colspan="5" style="text-align: right"></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
           
            <td></td>
            <td style="text-align: left; width: 210px">
            
                 <asp:Label ID="lblFitrarActivo" runat="server" Text="FILTRAR POR:" CssClass="MyLabel"></asp:Label><br />
                <telerik:RadComboBox ID="cmbFiltroActivo" runat="server" Skin="Windows7">
                    <Items>
                        <telerik:RadComboBoxItem Text="TODOS" Value="-1" />
                        <telerik:RadComboBoxItem Text="ACTIVO" Value="1" Selected="true" />
                        <telerik:RadComboBoxItem Text="INACTIVO" Value="0" />
                    </Items>
                </telerik:RadComboBox>
            </td>
            <td style="text-align: left; width: 210px">
            
                 <asp:Label ID="lblBusqueda" runat="server" Text="BÚSQUEDA:" CssClass="MyLabel"></asp:Label><br />
                 <telerik:RadSearchBox runat="server" ID="rdsFiltro"  onKeyPress="return EvitaCaracteres(event)" onpaste="return false"
                    CssClass="MyWrapper" Skin="Windows7" Width="210" DropDownSettings-Height="300"
                    DataTextField="nombre" EmptyMessage="NOMBRE"  EnableAutoComplete="false"
                    Filter="Contains" OnSearch="rdsFiltro_Search">
                 </telerik:RadSearchBox>
        
            </td>
        </tr>
    </table>
</asp:Content>
    
<asp:Content ID="Content3" ContentPlaceHolderID="cphContenido" runat="server">
    <div>           
        <telerik:RadAjaxPanel runat="server" ID="rApnl" Width="100%" ClientEvents-OnRequestStart="onRequestStart" LoadingPanelID="radLoaginPlanel" Culture="es-MX" >
 
        <telerik:RadGrid ID="gridRancho" runat="server" AllowPaging="true" Skin="Windows7" AllowSorting="true" Culture="es-MX"
                            OnNeedDataSource="gridRancho_NeedDataSource"
                            OnDeleteCommand="gridRancho_DeleteCommand"
                            OnInsertCommand="gridRancho_InsertCommand"
                            OnUnload="gridRancho_Unload"
                            OnUpdateCommand="gridRancho_UpdateCommand"
                            OnItemCommand="gridRancho_ItemCommand"
                            OnItemDataBound="gridRancho_ItemDataBound" OnItemCreated="gridRancho_ItemCreated">
 
                            <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false" DataKeyNames="id_rancho"
                                InsertItemPageIndexAction="ShowItemOnCurrentPage">
                                <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4} Registro {2} a {3} de {5}" PageSizeLabelText="Tamaño por página" />
                                <NoRecordsTemplate>
                                    <table width="100%" border="0">
                                        <tr>
                                            <td align="center">
                                                <h3 style="color: Red">NO SE ENCONTRÓ INFORMACIÓN</h3>
                                            </td>
                                        </tr>
                                    </table>
                                </NoRecordsTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="id_rancho" UniqueName="id_rancho" HeaderText="ID"  Visible="false" ReadOnly="True">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="nombre" UniqueName="nombre" HeaderText="NOMBRE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="propietario" UniqueName="propietario" HeaderText="PROPIETARIO">
                                    </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="zona" UniqueName="zona" HeaderText="IdZona" Visible="false">
                                    </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="descZona" UniqueName="descZona" HeaderText="ZONA">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="activo" UniqueName="activo" HeaderText="Activo" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="EDITAR" UpdateImageUrl="~/Imagenes/editar.png" Exportable="false" UniqueName="EditColumn"></telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ConfirmText="¿ESTÁ SEGURO QUE DESEA ELIMINAR EL RANCHO SELECCIONADO?" ButtonType="ImageButton" Exportable="false" ButtonCssClass="item_permisos" ImageUrl="~/Imagenes/eliminarRegistro.png" 
                                        CommandName="Delete" Text="Eliminar" UniqueName="DeleteColumn" HeaderText="ELIMINAR">
                                    </telerik:GridButtonColumn>
                                </Columns>
                                <EditFormSettings InsertCaption="Agregar Nuevo Rancho" CaptionFormatString="Esta editando el rancho con ID: {0}" CaptionDataField="id_rancho" EditFormType="Template">
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
                                    </EditColumn>
                                    <FormTemplate>
                                      <table class="medio">
                                           <tr>
                                               <td class="celdaNameTamanio">
                                                        NOMBRE:
                                               </td>
                                               <td class="celdaDatosTamanio">  
                                                   <telerik:RadTextBox ID="txtNombre" Width="250" Skin="Windows7" MaxLength="60" CssClass="upper" onpaste="return false" onKeyPress="return EvitaCaracteres(event)" onKeyUp="changeCase(this)" runat="server"
                                                        EmptyMessage="" Text='<%# Bind("nombre") %>'>
                                                   </telerik:RadTextBox>
                                                   <asp:RequiredFieldValidator ID="rfvTxtNombre" ForeColor="Red" runat="server" ErrorMessage='<%#SRRUI2.Helpers.ModalView.MensajeCampoRequerido %>' Display="Dynamic" ControlToValidate="txtNombre"></asp:RequiredFieldValidator>
                                               </td>
                                           </tr>
                                          <tr>
                                              <td class="celdaNameTamanio">
                                                  PROPIETARIO:
                                              </td>
                                              <td class="celdaDatosTamanio">   <telerik:RadTextBox ID="txtPropietario" Width="250" Skin="Windows7" MaxLength="60" CssClass="upper" onpaste="return false" onKeyUp="changeCase(this)" onKeyPress="return EvitaCaracteres(event)" runat="server"
                                                        EmptyMessage="" Text='<%# Bind("propietario") %>'>
                                                    </telerik:RadTextBox>
                                              </td>
                                          </tr>
                                          <tr>
                                              <td class="celdaNameTamanio">
                                                  ZONA:
                                              </td>
                                              <td class="celdaDatosTamanio">  
                                                    <telerik:RadComboBox ID="cmbZona" Width="250" runat="server" Skin="Windows7" SelectedValue='<%# Bind("zona") %>' AppendDataBoundItems="True">
                                                        <Items>
                                                            <telerik:RadComboBoxItem Text="CENTRO" Value="1" />
                                                            <telerik:RadComboBoxItem Text="SUR" Value="2" />
                                                        </Items>
                                                    </telerik:RadComboBox>
                                              </td>
                                          </tr>
                                          <tr>
                                              <td class="celdaNameTamanio">
                                                  ESTADO:
                                              </td>
                                              <td class="celdaDatosTamanio"
                                                    <telerik:RadComboBox ID="cmbActivo" Width="250" runat="server" Skin="Windows7" SelectedValue='<%# Bind("activo") %>' AppendDataBoundItems="True">
                                                        <Items>
                                                            <telerik:RadComboBoxItem Text="ACTIVO" Value="1" />
                                                            <telerik:RadComboBoxItem Text="INACTIVO" Value="0" />
                                                        </Items>
                                                    </telerik:RadComboBox>
                                              </td>
 
                                          </tr>
                                            <tr>
                                                <td style="text-align: right; width: 50%"></td>
                                                <td style="text-align: left">
 
                                                  <telerik:RadButton ID="bntGuardar" runat="server" Text="Guardar" Skin="Windows7"
                                                        CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                        <Icon SecondaryIconCssClass="rbSave" SecondaryIconRight="4" SecondaryIconTop="4"></Icon>
                                                    </telerik:RadButton>   
                                                      
                                                            <telerik:RadButton ID="bntCancelar" runat="server" Text="Cancelar" Skin="Windows7" CausesValidation="False"
                                                                CommandName="Cancel">
                                                                <Icon SecondaryIconCssClass="rbCancel" SecondaryIconRight="4" SecondaryIconTop="4"></Icon>
                                                            </telerik:RadButton>
                                                </td>
                                                </tr>
 
                                       </table>
                                    </FormTemplate>
                                </EditFormSettings>
                                <ExpandCollapseColumn Visible="False">
                                    <HeaderStyle Width="19px"></HeaderStyle>
                                </ExpandCollapseColumn>
                                <CommandItemSettings AddNewRecordText="Agregar Nuevo Rancho" ShowExportToExcelButton="true" />
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                            </MasterTableView>
                            <ExportSettings ExportOnlyData="True" FileName="RANCHO"  IgnorePaging="True">
                            </ExportSettings>
                            <ClientSettings>
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                        </telerik:RadGrid>
                    <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none;" />
                    <asp:ModalPopupExtender ID="programmaticModalPopup" runat="server" BehaviorID="programmaticModalPopupBehavior"
                        TargetControlID="hiddenTargetControlForModalPopup" PopupControlID="programmaticPopup"
                        BackgroundCssClass="modalBackground" RepositionMode="RepositionOnWindowScroll"
                        OkControlID="bntok">
                    </asp:ModalPopupExtender>
 
                    <asp:Panel runat="server" CssClass="modalPopupatencion" ID="programmaticPopup" Style="width: 388px; height: 215px; text-align: center; color: white">
                        <asp:Panel runat="Server" ID="programmaticPopupDragHandle" Style="cursor: move; height: 45px; text-align: center;"
                            Height="42px">
                            <br />
                            Aviso del Sistema
                        </asp:Panel>
                        <table>
                            <tr>
                                <td style="width: 130px; height: 133px;">   
                                </td>
                                <td style="height: 133px">
                                    <asp:Label ID="lblmsg" CssClass="mensaje" runat="server"></asp:Label>
                                        
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:ImageButton ID="bntok" runat="server" CausesValidation="false" ImageUrl="~/Imagenes/boton-aceptarI.png" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
 
               </telerik:RadAjaxPanel>
         
                    <telerik:RadAjaxLoadingPanel ID="radLoaginPlanel" IsSticky="true" runat="server" Skin="" Transparency="30">
                        <div id="loading">
                            <div>
                                <p>
                                    Cargando
                                </p>
                                <span>Espere Por favor, se esta procesando su solicitud...</span>
                            </div>
                        </div>
                    </telerik:RadAjaxLoadingPanel>
 
    </div>
    <script type="text/javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportTo") >= 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
</asp:Content>

Dobromir
Telerik team
 answered on 07 Jul 2014
3 answers
117 views
We are using RadEditor version 2012.3.1016 and have the following issue in Internet Explorer 9.

  1. Enter an email address in the editor (eg. "info@example.com")
  2. Select the email address and open the LinkManager
  3. The Email tab is active and "info@example.com" is prefilled for both the address and the text
  4. Enter something in the subject field (eg. "test")
  5. Click OK
  6. Watch the HTML source. The subject is not added to the mailto-link

Now try this:

  1. Enter a random word in the editor (eg "test")
  2. Select the word and open the LinkManager
  3. Click on the Email tab
  4. Enter "info@example.com" in the address field
  5. Enter "something" in the subject field
  6. Watch the HTML source. The subject is added to the mailto-link

So adding a subject to a mailto-link works fine as long as the text of the link isn't an email address as well. The demo editor at http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx has the same problem.
Vessy
Telerik team
 answered on 07 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?