Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views

I have a RadEditor in my page. I am getting the HTML text from Database. The text is the form of div inside div with hierarchy of 4 times. When I select any text and clicks on unordered or ordered list, bullet point is applying to the first line only.

But I want to use bullet points for selected text or for the selected paragraph.

Please suggest me any solution for this.

Thanks,

Anusha

Anshi
Top achievements
Rank 1
 answered on 30 Apr 2018
9 answers
385 views
Hi, I am trying to implement the Copy and paste feature in radgrid. Copy from Excel and paste to RadGrid.

I am using one of the example which shows the copy and paste using the Clipboard. But i am not able to make it work fully.

Do you have any latest example for this? Is there any built in feature with the current version of the radgrid?

Thanks

Ravi
Vessy
Telerik team
 answered on 30 Apr 2018
1 answer
91 views

Here is the entire contents of my aspx markup. There is nothing in the code-behind.

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Tom.aspx.vb" Inherits="POC_Tom" %>
<!DOCTYPE html>
<head runat="server">
   <title>test</title>
</head>
<body>
   <form id="form1" runat="server">
      <div>
 
         <asp:ScriptManager ID="smDemo" runat="server" ScriptMode="Release" />
          
         <telerik:RadTabStrip runat="server" ID="tabTom">
            <Tabs>
               <telerik:RadTab runat="server" Text="Paul"></telerik:RadTab>
               <telerik:RadTab runat="server" Text="George"></telerik:RadTab>
               <telerik:RadTab runat="server" Text="John"></telerik:RadTab>
               <telerik:RadTab runat="server" Text="Ringo"></telerik:RadTab>
            </Tabs>
         </telerik:RadTabStrip>
 
      </div>
   </form>
</body>
</html>

 

In IE 11, clicking the last tab shifts the contents of the control over 1 pixel and cuts off on the left. (The control renders properly in FireFox and Chrome.)

See the attached screenshot to see what I mean. Everything in hot-pink was added to the screenshot by me. Note the vertical line which shows the shift.

Rumen
Telerik team
 answered on 30 Apr 2018
2 answers
382 views

My JS stops functioning after I attempt to find out if a RadTextBox is empty.

 

01.<telerik:RadTextBox ID="rtbEmptyBox" runat="server" EmptyMessage="This box is empty." />
02.<telerik:RadButton ID="rbtnDetermineIfEmpty" runat="server" Text="Determine if Empty" AutoPostBack="false" OnClientClicked="determineIfEmpty" />
03. 
04.function determineIfEmpty(sender, eventArgs) {
05.    var emptyBox = document.getElementById('<%=rtbEmptyBox.ClientID %>');
06. 
07.    if (emptyBox.isEmpty()) {
08.        console.log('empty box is empty');
09.    }
10.    else {
11.        console.log('empty box is full');
12.    }
13.}

The JS stops at line 07 and won't proceed.  Do I have the functionality of isEmpty() incorrect?  I'm attempting to get the value of the text box, but when it is empty, it gives me the value of the EmptyMessage.

Keith
Top achievements
Rank 1
 answered on 30 Apr 2018
7 answers
1.2K+ views
Hello everyone. 

In my current company we have a reference in a webform application: Telerik.Web.Mvc.dll, version= 2011.2.914.340  and there is a bug with a dropdown list. I proposed to move the all into kendo UI, however for this to be approved we need to test with the lastest version of that component. Problem is that I am not able to find it ( Telerik.Web.Mvc.dll) in latest version ( UI for ASP.NET AJAX Q3 2014 ) from Telerik. Seems like Kendo UI is the defacto replacement and Telerik is not providing downloads for older / archives versions.

Can you help me out on this? I also follow up this thread: http://www.telerik.com/help/aspnet-mvc/getting-started-upgrading.html and installed this tool: https://visualstudiogallery.msdn.microsoft.com/d3399c97-2ed2-4114-90f5-5271c803136d however the tool replaced all with latest Kendo version and Telerik.Web.Mvc.dll had dissapeared.

Thanks
Ivan Danchev
Telerik team
 answered on 30 Apr 2018
0 answers
84 views

Hi,

I have the issue about the open CSV file for modify and save it when I have exported the file from RadGrid. The value will combine to all text in one column after save the related document in MS Excel application. Attached please see the screen capture as below and how to solve this problem?

 

Kim
Top achievements
Rank 1
 asked on 30 Apr 2018
0 answers
233 views
I am trying to increase the number of rows available in the RadGrid control.  No matter the setting I touch like pagesize or height, the grid only displays the same number of rows.  5 rows if  RenderMode="lightweight" and 7 if RenderMode="Classic". It seems like the display height is fixed to around 350px.  If I increase the height to 1000px, the display of the grid only uses the first 350px.  At one point, I turned off "something" and the full 1000px was used, but it was still the same 5/7 rows.  Just distributed over a 1000px field.
Philip
Top achievements
Rank 1
 asked on 29 Apr 2018
2 answers
110 views

Example:
I am binding a data source with below text and value field
DataTextField="FruitName"
DataValueField="FruitId"

on selection of fruits i can get selected item text as below but i am not able to get selected item id.
AutoCompleteBox.Text

This is an issue, please let me know how to get selected item id.
It should provide id's for multiple selected items also.

 

--

Jagadish

Anas
Top achievements
Rank 1
 answered on 28 Apr 2018
0 answers
268 views

In an Edit Form Template of a RadGrid, I have a LinkButton and when that control is pressed a RadWindow is shown, that RadWindow has another RadGrid with a Select column, when the user presses that column, the system must take the value of another column and return it to a RadTextbox of the parent RadGrid.

This is my current code, but it does not work, I can not find the RadTextbox of the RadGrid parent.

<telerik:RadGrid ID="RgvUsuario" runat="server" RenderMode="Lightweight" AllowSorting="true" AutoGenerateColumns="false" AllowPaging="true" PageSize="10"
                OnNeedDataSource="RgvUsuario_NeedDataSource" OnItemDataBound="RgvUsuario_ItemDataBound">
                <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center">
                    <CommandItemSettings AddNewRecordText="Nuevo" ShowRefreshButton="false" />
                    <PagerStyle AlwaysVisible="true" />
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditText="Editar"></telerik:GridEditCommandColumn>
 
                        <telerik:GridBoundColumn DataField="Id" HeaderText="Id Usuario" UniqueName="Id"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="IdCliente" HeaderText="Id Cliente" UniqueName="IdCliente"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Nombre" HeaderText="Nombre" UniqueName="Nombre"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Apellido1" HeaderText="Apellido 1" UniqueName="Apellido1"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Apellido2" HeaderText="Apellido 2" UniqueName="Apellido2"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" UniqueName="UserName"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Identificacion.Numero" HeaderText="Identificación" UniqueName="Identificacion.Numero"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Telefono.NumTelefono" HeaderText="Teléfono" UniqueName="Telefono.NumTelefono"></telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn DataField="IsActivo" HeaderText="Estado" UniqueName="IsActivo"></telerik:GridCheckBoxColumn>
 
                        <telerik:GridButtonColumn ConfirmText="¿Eliminar registro?" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                            ConfirmTitle="Mantenimiento de Usuarios" CommandName="Delete" Text="Eliminar" UniqueName="DeleteColumn">
                        </telerik:GridButtonColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table class="grid-edit-form">
                                <tr>
                                    <td colspan="6"><span class="negrita">Detalle del Usuario</span></td>
                                </tr>
 
                                <%--Fila 1--%>
                                <tr>
                                    <%--Columna 1--%>
                                    <td>Id Cliente</td>
                                    <td>
                                        <telerik:RadTextBox ID="txtIdCliente" Text='<%# Eval("IdCliente") %>' runat="server"></telerik:RadTextBox>
                                        <br />
                                        <asp:LinkButton ID="LnkBtnBuscarCliente" runat="server" ToolTip="Buscar Cliente" OnClick="LnkBtnBuscarCliente_Click">Buscar Cliente</asp:LinkButton>
                                    </td>
 
                                    <%--Columna 2--%>
                                    <td>Nombre</td>
                                    <td>
                                        <telerik:RadTextBox ID="txtNombre" Text='<%# Eval("Nombre") %>' runat="server" MaxLength="100"></telerik:RadTextBox>
                                    </td>
 
                                    <%--Columna 3--%>
                                    <td>Apellido 1</td>
                                    <td>
                                        <telerik:RadTextBox ID="Apellido1" Text='<%# Eval("Apellido1") %>' runat="server" MaxLength="100"></telerik:RadTextBox>
                                    </td>
                                </tr>
 
                                <tr>
                                    <%--Columna 1--%>
                                    <td colspan="2"> </td>
 
                                    <%--Columna 2--%>
                                    <td colspan="2"> </td>
 
                                    <%--Columna 3--%>
                                    <td colspan="2" class="derecha">
                                        <telerik:RadButton ID="btnAgregar" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Agregar" : "Modificar" %>' CommandName="Update"
                                            RenderMode="Lightweight" EnableEmbeddedSkins="false" Width="100px" Height="40px">
                                        </telerik:RadButton>
                                          
                                        <telerik:RadButton ID="RbtnCancelar" runat="server" Text="Cancelar" CausesValidation="false" CommandName="Cancel" RenderMode="Lightweight"
                                            EnableEmbeddedSkins="false" Width="100px" Height="40px">
                                        </telerik:RadButton>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                </MasterTableView>
                <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true">
                    <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
                </ClientSettings>
            </telerik:RadGrid>
             
<telerik:RadWindow RenderMode="Lightweight" ID="RwBuscarCliente" runat="server" OpenerElementID="RgvUsuario" Title="Búsqueda de Datos"
        CenterIfModal="true" Modal="true" OffsetElementID="main" Height="400px" Behaviors="Close" Width="800px" EnableShadow="true">
        <ContentTemplate>
            <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                <div class="ws-normal">
                    <telerik:RadGrid ID="gdvCliente" runat="server" RenderMode="Lightweight" AllowSorting="true" AutoGenerateColumns="false" AllowPaging="true" PageSize="10"
                        OnNeedDataSource="gdvCliente_NeedDataSource" OnItemCommand="gdvCliente_ItemCommand">
                        <MasterTableView DataKeyNames="Id" CommandItemDisplay="None" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Justify" AlternatingItemStyle-HorizontalAlign="Justify">
                            <PagerStyle AlwaysVisible="true" />
                            <Columns>
                                <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Nombre" HeaderText="Nombre" UniqueName="Nombre"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="NombreComercial" HeaderText="Nombre Comercial" UniqueName="NombreComercial"></telerik:GridBoundColumn>
                                 
                                <telerik:GridButtonColumn Text="Selecccionar" UniqueName="SelectColumn" CommandName="Select" ButtonType="LinkButton"></telerik:GridButtonColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true"></ClientSettings>
                    </telerik:RadGrid>
                </div>
            </telerik:RadAjaxPanel>
        </ContentTemplate>
    </telerik:RadWindow>
private string Fila
        {
            get { return (string)ViewState["Fila"]; }
            set { ViewState["Fila"] = value; }
        }
 
protected void LnkBtnBuscarCliente_Click(object sender, EventArgs e)
        {
            CargarGridCliente(); <-- Load the information in the RadGrid of the RadWindow
             
            RwBuscarCliente.VisibleOnPageLoad = true;
 
            GridEditableItem edit = (GridEditableItem)((LinkButton)sender).NamingContainer;
            this.Fila = edit.ItemIndex.ToString();
        }
         
protected void gdvCliente_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName.Equals("Select"))
            {
                GridDataItem item = (GridDataItem)e.Item;
                string idCliente = item["Id"].Text;
 
 
                int currentIndex = Convert.ToInt16(this.Fila);
                GridEditFormItem form = RgvUsuario.Items[currentIndex].EditFormItem;
                RadTextBox txtIdCliente = form.FindControl("txtIdCliente") as RadTextBox;
                 
                txtIdCliente.Text = idCliente;
 
                RwBuscarCliente.VisibleOnPageLoad = false;
            }
        }
Alonso
Top achievements
Rank 1
 asked on 27 Apr 2018
0 answers
108 views

I have a sharepoint 2010 site in which we have the NavDDL dropdwon on multiple pages. These dropdowns are tied to links list and navigate to another page when clicked on the menu item. The dropdown stops working once you navigate to other page after clicking on the dropdown item and come back to page.

 

This behavior is observed in chrom and Edge browser but not on IE. Please help. Any help appreciated.

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