Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
89 views
Hi everyone.

I have a proyect of asp net  with more than 8 radchart on vs 2010..but i noticed than the performance is too slow..the vs use 25% of cpu...and change view between source code and view design is too slow on visual studio 2010, the performance is bad now on vs..how i can  do?. 
Petar Marchev
Telerik team
 answered on 11 Sep 2013
1 answer
125 views
In edit mode of the grid, there is a dropdownlist for user to select.

For new record, it will select default message "Please select" 
For existing record, it will databind the value from db to become selected value

I had added the requiredvalidator to make sure user had selected dropdownlist.
it works when user create a new record, it will display error message if user not select.

but it had error when user edit the record, even though the dropdownlist had selected value.
it still display error message


<%@ Page Title="" Language="VB" MasterPageFile="~/LRDB.master" AutoEventWireup="false" CodeFile="Admin_dictionary_BU.aspx.vb" Inherits="Admin_Admin_dictionary_BU" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
        <br />
        <strong><span class="style4">Business Unit</span><br /> </strong><br />
 
                                                            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                                                            <script type="text/javascript">
                                                                function RowDblClick(sender, eventArgs) {
                                                                    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
                                                                }
 
                                                                function conformbox() {
                                                                    var con = confirm("Are you sure want to delete?");
                                                                    if (con == true) {
                                                                        return true;
                                                                    }
                                                                    else {
                                                                        return false;
                                                                    }
                                                                }
                                                            </script>
                                                        </telerik:RadCodeBlock>
 
                                                        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                                                        </telerik:RadAjaxLoadingPanel>
                                                            <telerik:RadGrid ID="RadGrid_BU" runat="server" CellSpacing="0"
                                                            DataSourceID="LDS_BU" width="1000"  PageSize="15"
                                                                    GridLines="None" style="margin-top: 0px" AllowFilteringByColumn="True"
                                                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                                                                    ShowStatusBar="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                                                            AllowAutomaticUpdates="True">
                                                                    <GroupingSettings CaseSensitive="false" />
                                                                <MasterTableView AutoGenerateColumns="False"
                                                                    DataKeyNames="BU_ID" DataSourceID="LDS_BU"
                                                                    AllowFilteringByColumn="False" AllowPaging="False"
                                                                    CommandItemDisplay="Top" OverrideDataSourceControlSorting="true" >
 
                                                                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                                                                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                                                                        Visible="True">
                                                                    </RowIndicatorColumn>
                                                                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                                                                        Visible="True">
                                                                    </ExpandCollapseColumn>
                                                                    <Columns>
                                                                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                                                                        </telerik:GridEditCommandColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_ID"
                                                                            FilterControlAltText="Filter BU_ID column" HeaderText="BU_ID"
                                                                            SortExpression="BU_ID" UniqueName="BU_ID" Visible="false">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_Name"
                                                                            FilterControlAltText="Filter BU_Name column" HeaderText="BU Name"
                                                                            SortExpression="BU_Name" UniqueName="BU_Name">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="shortname"
                                                                            FilterControlAltText="Filter shortname column" HeaderText="Shortname"
                                                                            SortExpression="shortname" UniqueName="shortname">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="bu_addr"
                                                                            FilterControlAltText="Filter bu_addr column" HeaderText="Address"
                                                                            SortExpression="bu_addr" UniqueName="bu_addr">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_Tel"
                                                                            FilterControlAltText="Filter BU_Tel column" HeaderText="Telephone"
                                                                            SortExpression="BU_Tel" UniqueName="BU_Tel">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_TelPre"
                                                                            FilterControlAltText="Filter BU_TelPre column" HeaderText="Telephone Prefix"
                                                                            SortExpression="BU_TelPre" UniqueName="BU_TelPre">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_Fax"
                                                                            FilterControlAltText="Filter BU_Fax column" HeaderText="Fax No."
                                                                            SortExpression="BU_Fax" UniqueName="BU_Fax">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_FaxPre"
                                                                            FilterControlAltText="Filter BU_FaxPre column" HeaderText="Fax No. Prefix"
                                                                            SortExpression="BU_FaxPre" UniqueName="BU_FaxPre">
                                                                        </telerik:GridBoundColumn>
                                                                        <telerik:GridBoundColumn DataField="BU_SpeedDial"
                                                                            FilterControlAltText="Filter BU_SpeedDial column" HeaderText="SpeedDial"
                                                                            SortExpression="BU_SpeedDial" UniqueName="BU_SpeedDial">
                                                                        </telerik:GridBoundColumn>
              
                                                                    </Columns>
                                                                    <EditFormSettings EditFormType="Template">
                                                                        <EditColumn FilterControlAltText="Filter EditCommandColumn1 column"
                                                                            UniqueName="EditCommandColumn1">
                                                                        </EditColumn>
                                                                    <FormTemplate>
 
                                                        <table id="Table2" cellspacing="2" cellpadding="1" width="50%" border="1" rules="none"
                                                            style="border-collapse: collapse;">
                                                            <tr class="EditFormHeader">
                                                            <td style="width:150px">
                                                            <asp:Label ID="Label5" Text="Company" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                                <telerik:RadDropDownList ID="rdl_company" runat="server" DataSourceID="LDS_Company"
                                                                 DataValueField="CompID" DataTextField="CompanyName" DefaultMessage="Please select..." >
                                                                </telerik:RadDropDownList>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="rdl_company"
                                                                     ErrorMessage="Please select a Company." ></asp:RequiredFieldValidator>  
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="lb" Text="BU Name" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_BU_name" runat="server" Text='<%# Bind("BU_Name") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label1" Text="ShortName" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_shortname" runat="server" Text='<%# Bind("shortname") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label2" Text="Address" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_BU_addr" runat="server" Text='<%# Bind("BU_addr") %>' TabIndex="2" Width="300" TextMode="MultiLine"></asp:TextBox>                                                           
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label3" Text="Telephone" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_tel" runat="server" Text='<%# Bind("bu_tel") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Display="Dynamic"
                                                            ErrorMessage="Please, enter valid phone number." ValidationExpression="\d+" ControlToValidate="tb_tel">
                                                            </asp:RegularExpressionValidator>
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label4" Text="Telephone Prefix" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_telpre" runat="server" Text='<%# Bind("bu_telpre") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" Display="Dynamic"
                                                            ErrorMessage="Please, enter valid phone number." ValidationExpression="\d+" ControlToValidate="tb_telpre">
                                                            </asp:RegularExpressionValidator>
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label6" Text="Fax No." runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_fax" runat="server" Text='<%# Bind("bu_fax") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Display="Dynamic"
                                                            ErrorMessage="Please, enter valid phone number." ValidationExpression="\d+" ControlToValidate="tb_fax">
                                                            </asp:RegularExpressionValidator>
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label7" Text="Fax No. Prefix" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_faxpre" runat="server" Text='<%# Bind("bu_faxpre") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" Display="Dynamic"
                                                            ErrorMessage="Please, enter valid phone number." ValidationExpression="\d+" ControlToValidate="tb_faxpre">
                                                            </asp:RegularExpressionValidator>
                                                            </td>
                                                            </tr>
                                                            <tr >
                                                            <td >
                                                            <asp:Label ID="Label8" Text="SpeedDial" runat="server"></asp:Label>                                                           
                                                            </td>
                                                            <td>
                                                            <asp:TextBox ID="tb_speeddial" runat="server" Text='<%# Bind("bu_speeddial") %>' TabIndex="2"></asp:TextBox>                                                           
                                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" Display="Dynamic"
                                                            ErrorMessage="Please, enter valid phone number." ValidationExpression="\d+" ControlToValidate="tb_speeddial">
                                                            </asp:RegularExpressionValidator>
                                                            </td>
                                                            </tr>
                                                               <tr>
                                                                <td align="right" colspan="2">
                                                                    <asp:Button ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
                                                                        runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' >
                                                                    </asp:Button> 
                                                                    <asp:Button ID="btnDelete" Text="Delete" runat="server" CausesValidation="False"
                                                                        CommandName="Delete" OnClientClick="return conformbox();"></asp:Button>
                                                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                        CommandName="Cancel"></asp:Button>
 
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </FormTemplate>
                                                </EditFormSettings>
                                                                    <PagerStyle PageSizeControlType="RadComboBox" />
                                                                </MasterTableView>
                                                                <PagerStyle PageSizeControlType="RadComboBox" />
                                                                <FilterMenu EnableImageSprites="False">
                                                                </FilterMenu>
 
                                                        </telerik:RadGrid>
 
                                                <asp:LinqDataSource ID="LDS_Company"
                                                    runat="server" ContextTypeName="dcLRDBDataContext" EntityTypeName=""
                                                    TableName="db_Companies">
                                                </asp:LinqDataSource>
 
                                                        <asp:LinqDataSource ID="LDS_BU"
                                                    runat="server" ContextTypeName="dcLRDBDataContext" EntityTypeName=""
                                                    TableName="db_Business_units">
                                                </asp:LinqDataSource>
</asp:Content>


Code behind:

Imports System
Imports System.IO
Imports Telerik.Web.UI
Imports System.Web.UI
Imports Telerik.Web.UI.AsyncUpload
Imports System.Runtime.Serialization.Json
Imports System.Web.Services
Imports System.Runtime.Serialization
Imports System.Collections.Generic
Imports System.Drawing
Partial Class Admin_Admin_dictionary_BU
    Inherits System.Web.UI.Page
 
    Protected Sub RadGrid_BU_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid_BU.ItemCommand
        RadGrid_BU.MasterTableView.ClearEditItems()
 
        If e.CommandName = RadGrid.InitInsertCommandName Then   'Click Add New Record button           
            Dim editColumn As GridEditCommandColumn = CType(RadGrid_BU.MasterTableView.GetColumn("EditCommandColumn"), GridEditCommandColumn)
            editColumn.Visible = False
        ElseIf (e.CommandName = RadGrid.RebindGridCommandName AndAlso e.Item.OwnerTableView.IsItemInserted) Then
            e.Canceled = True
        Else
            Dim editColumn As GridEditCommandColumn = CType(RadGrid_BU.MasterTableView.GetColumn("EditCommandColumn"), GridEditCommandColumn)
            If Not editColumn.Visible Then  'Click Cancel button (both Insert and Update mode)
                editColumn.Visible = True
            End If
 
            Dim ddlComp_id As RadDropDownList = DirectCast(e.Item.FindControl("rdl_company"), RadDropDownList)
            Dim txt_bu_name As TextBox = DirectCast(e.Item.FindControl("tb_bu_name"), TextBox)
            Dim txt_shortname As TextBox = DirectCast(e.Item.FindControl("tb_shortname"), TextBox)
            Dim txt_address As TextBox = DirectCast(e.Item.FindControl("tb_bu_addr"), TextBox)
            Dim txt_tel As TextBox = DirectCast(e.Item.FindControl("tb_tel"), TextBox)
            Dim txt_telpre As TextBox = DirectCast(e.Item.FindControl("tb_telpre"), TextBox)
            Dim txt_fax As TextBox = DirectCast(e.Item.FindControl("tb_fax"), TextBox)
            Dim txt_faxpre As TextBox = DirectCast(e.Item.FindControl("tb_faxpre"), TextBox)
            Dim txt_speeddial As TextBox = DirectCast(e.Item.FindControl("tb_speeddial"), TextBox)
            Dim dc As New dcLRDBDataContext
 
            If e.CommandName = "PerformInsert" Then
 
                Dim newRecord1 As New db_Business_unit
                dc.db_Business_units.InsertOnSubmit(newRecord1)
                newRecord1.CompID = ddlComp_id.SelectedValue
                newRecord1.BU_Name = txt_bu_name.Text
                newRecord1.shortname = txt_shortname.Text
                newRecord1.BU_Tel = txt_tel.Text
                newRecord1.BU_TelPre = txt_telpre.Text
                newRecord1.BU_Fax = txt_fax.Text
                newRecord1.BU_FaxPre = txt_faxpre.Text
                newRecord1.BU_SpeedDial = txt_speeddial.Text
                newRecord1.BU_addr = txt_address.Text
                newRecord1.LastUpdateDate = DateTime.Now
                newRecord1.LastUpdateBy = HttpContext.Current.Session("UserID")
                dc.SubmitChanges()
 
                RadGrid_BU.MasterTableView.ClearEditItems()
                RadGrid_BU.DataBind()
 
            ElseIf e.CommandName = "Update" Then
                Dim lid As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("BU_ID")
 
                Dim rec = (From p In dc.db_Business_units Where p.BU_ID = lid).FirstOrDefault
                If Not rec Is Nothing Then
                    rec.CompID = ddlComp_id.SelectedValue
                    rec.BU_Name = txt_bu_name.Text
                    rec.shortname = txt_shortname.Text
                    rec.BU_addr = txt_address.Text
                    rec.BU_Tel = txt_tel.Text
                    rec.BU_TelPre = txt_telpre.Text
                    rec.BU_Fax = txt_fax.Text
                    rec.BU_FaxPre = txt_faxpre.Text
                    rec.BU_SpeedDial = txt_speeddial.Text
                    rec.LastUpdateBy = HttpContext.Current.Session("UserID")
                    rec.LastUpdateDate = DateTime.Now
                    dc.SubmitChanges()
                End If
 
                RadGrid_BU.MasterTableView.ClearEditItems()
                RadGrid_BU.DataBind()
            ElseIf e.CommandName = "Delete" Then
 
                Dim lid As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("BU_ID")
 
                Dim chk_rec = (From a In dc.db_Countries Where a.BU_ID = lid).Count
                If chk_rec > 0 Then
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), "MessageBox", "alert('Cannot delete because this dictionary had been used.');", True)
                Else
 
                    Dim rec2 = (From p In dc.db_Business_units Where p.BU_ID = lid).FirstOrDefault
                    If Not IsNothing(rec2) Then
                        dc.db_Business_units.DeleteOnSubmit(rec2)
                        dc.SubmitChanges()
                    End If
                End If
 
 
 
 
 
                RadGrid_BU.MasterTableView.ClearEditItems()
                RadGrid_BU.DataBind()
            End If
 
            dc.Dispose()
        End If
    End Sub
 
    Private Sub RadGrid_BU_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid_BU.ItemDataBound
 
        If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
            Dim item As GridEditableItem = e.Item
            Dim ddl As RadDropDownList = item.FindControl("rdl_company")
            ddl.SelectedValue = DataBinder.Eval(e.Item.DataItem, "CompID").ToString
        End If
 
    End Sub
End Class
Nencho
Telerik team
 answered on 11 Sep 2013
3 answers
151 views
Hi,

I have a radchart with two line series. One of them is a horizontal line, which represents a threshold value. 
I would want this line series to have a ChartAxisLayoutMode.Normal and the other line series to have a ChartAxisLayoutMode.Between or Inside.

series1.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Normal;
series2.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Inside;


 How do I do this? Currently, the one written last is overriding the previous.

Thanks


Petar Kirov
Telerik team
 answered on 11 Sep 2013
1 answer
97 views
Hello,

I am using RadAsyncUpload 2012.1.411.40.  I try to have OnClientProgressUpdating to create a custom progress bar.  When uploading a file under the Visual Studio Development Server, OnClientProgressUpdating is fired properly.  However, when uploading a file under a testing server(windows sever 2008), OnClientProgressUpdating is not fired at all in IE 9.  (I tired to upload a 80MB file.)  It actually works fine in Firefox in both servers.

I have set DisablePlugins to true for the RadAsyncUpload.  Will it cause the problem?  Does anyone have an idea?

Thank you,

Wai
Peter Filipov
Telerik team
 answered on 11 Sep 2013
1 answer
344 views
Good Morning,

I am a SP 2013 farm admin and have a tenant in one of my farms utilizing this control. We were able to deploy their product through our staging environments without any issue, but once we hit production the control stopped validating properly. It appears fine but when a user enters the correct text and tries to submit their form, the control kicks back and says the text doesn't match the image. 

My question: How does this control actually perform validation? Is this all done server-side utilizing the telerik packages we installed on the system, or is a web service (or other external) call made that could possibly be blocked at the prod level? 
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2013
1 answer
144 views
Hello guys,

I am trying to activate the asyncupload feature in the FileExplorer. I can see that the file has been uploaded correctly inside the "App_Data/RadUploadTemp" folder but for some reason the functionality doesn't copy the file over the destination path. 

Do you have any suggestion about this?

This is the ascx file:
<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="600px" Height="350px" Skin="WebBlue"
        OnClientItemSelected="OnClientItemSelected"
        ExplorerMode="Thumbnails" CssClass="rfeLargeThumbnails galleryContainer"
        OnItemCommand="RadFileExplorer1_ItemCommand"
        EnableOpenFile="true"
        OnClientMove ="OnExplorerMoveHandler">
 
    </telerik:RadFileExplorer>
And the code behind:
protected override void OnInit(EventArgs e)
{
    FileExplorer1.Configuration.ContentProviderTypeName = typeof(CMSFileSystemContentProvider).AssemblyQualifiedName;
    FileExplorer1.TreeView.EnableDragAndDrop = false;
    FileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = false;
    
    base.OnInit(e);
 
    if (WebConfigurationManager.AppSettings["Gallery.Path"] != null)
    {
        initialPath = WebConfigurationManager.AppSettings["Gallery.Path"].ToString();
    }
 
    FileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.jpeg", "*.gif", "*.png" };
    FileExplorer1.Configuration.MaxUploadFileSize = 2097152; //2MB
 
    FileExplorer1.Configuration.ViewPaths = new string[] {initialPath};
    FileExplorer1.Configuration.UploadPaths = new string[] { initialPath };
    FileExplorer1.Configuration.DeletePaths = new string[] { initialPath };
     
    FileExplorer1.Configuration.EnableAsyncUpload = true; 
}

Thanks,

Gavin
Dobromir
Telerik team
 answered on 11 Sep 2013
2 answers
192 views
Hi Telerik,
We have a site menu containing subitems in our master page so it displays on all pages.
One quite a few pages we also use a 1 level horizontal menu to perform actions.

Since upgrading to 2013.2.717.40 we have been experiencing z-index issues where the child items of the top menu sit below the root level items of the second menu (see screenshot).

I have tried to override the .css particularly of rmSlide but have not found a solution.

Below is some sample code used to create the issue shown in the screenshot.

Do you have any suggestions?

Thanks,
Matt
<telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true" EnableEmbeddedSkins="true" Skin="Default">
 
    <Items>
 
        <telerik:RadMenuItem Text="File" AccessKey="F">
 
            <Items>
 
                <telerik:RadMenuItem Text="New" AccessKey="w" />
 
                <telerik:RadMenuItem Text="Open" AccessKey="O" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Save" AccessKey="S" />
 
                <telerik:RadMenuItem Text="Save As" AccessKey="A" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Print Preview"
                    AccessKey="V" />
 
                <telerik:RadMenuItem Text="Print" AccessKey="P" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Close" AccessKey="C" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Edit" AccessKey="E">
 
            <Items>
 
                <telerik:RadMenuItem Text="Undo" AccessKey="U" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Cut" AccessKey="T" />
 
                <telerik:RadMenuItem Text="Copy" AccessKey="C" />
 
                <telerik:RadMenuItem Text="Paste" AccessKey="P" />
 
                <telerik:RadMenuItem Text="Clipboard..."
                    AccessKey="b" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Insert" AccessKey="I">
 
            <Items>
 
                <telerik:RadMenuItem Text="Break..." AccessKey="B" />
 
                <telerik:RadMenuItem Text="Page Numbers..." AccessKey="U" />
 
                <telerik:RadMenuItem Text="Date and Time..." AccessKey="T" />
 
                <telerik:RadMenuItem Text="Field..." AccessKey="F" />
 
                <telerik:RadMenuItem Text="Symbol..." AccessKey="S" />
 
                <telerik:RadMenuItem Text="Comment" AccessKey="M" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Picture" AccessKey="P" />
 
                <telerik:RadMenuItem Text="Diagram" AccessKey="G" />
 
                <telerik:RadMenuItem Text="Text Box" AccessKey="X" />
 
                <telerik:RadMenuItem Text="Hyperlink" AccessKey="I" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Format" AccessKey="O">
 
            <Items>
 
                <telerik:RadMenuItem Text="Font" GroupSettings-Height="200">
 
                    <Items>
 
                        <telerik:RadMenuItem Text="Arial" />
 
                        <telerik:RadMenuItem Text="Verdana" />
 
                        <telerik:RadMenuItem Text="Tahoma" />
 
                        <telerik:RadMenuItem Text="Sans-serif" />
 
                        <telerik:RadMenuItem IsSeparator="true" />
 
                        <telerik:RadMenuItem Text="Arial" />
 
                        <telerik:RadMenuItem Text="Arial Black" />
 
                        <telerik:RadMenuItem Text="Arial Narrow" />
 
                        <telerik:RadMenuItem Text="Arial Unicode MS" />
 
                        <telerik:RadMenuItem Text="Bookman Old Style" />
 
                        <telerik:RadMenuItem Text="Bookshelf Symbol 7" />
 
                        <telerik:RadMenuItem Text="Century" />
 
                        <telerik:RadMenuItem Text="Century Gothic" />
 
                        <telerik:RadMenuItem Text="Comic Sans MS" />
 
                        <telerik:RadMenuItem Text="Courier New" />
 
                        <telerik:RadMenuItem Text="Garamond" />
 
                        <telerik:RadMenuItem Text="Georgia" />
 
                        <telerik:RadMenuItem Text="Goudy Old Style" />
 
                        <telerik:RadMenuItem Text="Goudy Stout" />
 
                        <telerik:RadMenuItem Text="Haettenschweiler" />
 
                        <telerik:RadMenuItem Text="Helvetica" />
 
                        <telerik:RadMenuItem Text="Impact" />
 
                        <telerik:RadMenuItem Text="Imprint MT Shadow" />
 
                        <telerik:RadMenuItem Text="Latha" />
 
                        <telerik:RadMenuItem Text="Lucida Console" />
 
                        <telerik:RadMenuItem Text="Lucida Sans" />
 
                        <telerik:RadMenuItem Text="Lucida Sans Typewriter" />
 
                        <telerik:RadMenuItem Text="Lucida Sans Unicode" />
 
                    </Items>
 
                </telerik:RadMenuItem>
 
                <telerik:RadMenuItem Text="Paragraph..." AccessKey="P" />
 
                <telerik:RadMenuItem Text="Bullets and Numbering..." AccessKey="N" />
 
                <telerik:RadMenuItem Text="Borders and Shading..." AccessKey="B" />
 
                <telerik:RadMenuItem IsSeparator="true" />
 
                <telerik:RadMenuItem Text="Columns" AccessKey="C" />
 
                <telerik:RadMenuItem Text="Tabs" AccessKey="T" />
 
                <telerik:RadMenuItem Text="Change Case" AccessKey="E" />
 
                <telerik:RadMenuItem IsSeparator="true" />
 
                <telerik:RadMenuItem Text="Background" AccessKey="g">
 
                    <Items>
 
                        <telerik:RadMenuItem>
 
                            <ItemTemplate>
 
                                <div style="padding: 20px 0 20px 20px;">
 
                                    <telerik:RadColorPicker runat="server" ID="RadColorPicker1" Preset="Metro" ShowEmptyColor="false"
                                        Width="200px" SelectedColor="#000000" />
 
                                </div>
 
                            </ItemTemplate>
 
                        </telerik:RadMenuItem>
 
                        <telerik:RadMenuItem IsSeparator="True" />
 
                        <telerik:RadMenuItem Text="More Colors..." AccessKey="M" />
 
                        <telerik:RadMenuItem Text="Fill Efects..." AccessKey="F" />
 
                        <telerik:RadMenuItem Text="Printed Watermark..."
                            AccessKey="W" />
 
                    </Items>
 
                </telerik:RadMenuItem>
 
                <telerik:RadMenuItem Text="Theme" AccessKey="H" />
 
                <telerik:RadMenuItem Text="Frames" AccessKey="R" />
 
                <telerik:RadMenuItem Text="Autoformat" AccessKey="A" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="View" AccessKey="V">
 
            <Items>
 
                <telerik:RadMenuItem Text="Normal" AccessKey="N" />
 
                <telerik:RadMenuItem Text="Web Layout" AccessKey="W" />
 
                <telerik:RadMenuItem Text="Print Layout" AccessKey="P" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Task Pane" AccessKey="p" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Tools" AccessKey="T">
 
            <Items>
 
                <telerik:RadMenuItem Text="Spelling And Grammar..." AccessKey="S" />
 
                <telerik:RadMenuItem Text="Research..." AccessKey="R" />
 
                <telerik:RadMenuItem Text="Language" AccessKey="L" />
 
                <telerik:RadMenuItem Text="Word Count..." AccessKey="W" />
 
                <telerik:RadMenuItem IsSeparator="True" />
 
                <telerik:RadMenuItem Text="Track Changes" AccessKey="T" />
 
                <telerik:RadMenuItem Text="Compare And Merge Documents.." AccessKey="D" />
 
            </Items>
 
        </telerik:RadMenuItem>
 
    </Items>
 
</telerik:RadMenu>
 
<br />
<br />
<br />
<telerik:RadMenu ID="RadMenu2" runat="server" EnableRoundedCorners="true" EnableShadows="true" EnableEmbeddedSkins="true" Skin="Default">
 
    <Items>
 
        <telerik:RadMenuItem Text="Item1" AccessKey="1">
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Item2" AccessKey="2">
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Item3" AccessKey="3">
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Item4" AccessKey="4">
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Item5" AccessKey="5">
        </telerik:RadMenuItem>
 
        <telerik:RadMenuItem Text="Item6" AccessKey="6">
        </telerik:RadMenuItem>
 
    </Items>
 
</telerik:RadMenu>
Matthew Botting
Top achievements
Rank 1
 answered on 11 Sep 2013
1 answer
100 views
I cannot find the AutoCompleteBox control in our dll. I'm guessing this control was added in a later version. Could someone help me find out the first version where autocompletebox was introduced?
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2013
1 answer
97 views
Hi.
Im trying to open a radwindow on the OnRowDbClick event,but the window is not appearing.
Any idea, why it doesn't show.

Thanks,
Dawson
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Sep 2013
1 answer
90 views
Hi,
 I'm looking to add a javascript function to the "onkeyup" event of a textbox when it's in InsertMode.

In the Code Behind I have:
protected void rgItems_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode && rgItems.MasterTableView.IsItemInserted)
            {
                GridEditableItem item = (GridEditableItem)e.Item;
                CheckBox isActive = (CheckBox)item["IsActive"].Controls[0]; //no literal control
                isActive.Checked = true;
 
                TextBox name = item.FindControl("NameTextBox") as TextBox;
                name.Attributes.Add("onkeyup", "filterGrid('"+ name.ClientID + "')");
            }
        }

And in my javascript function I have:
function filterGrid(textBoxID) {
    var grid = $find('<%= rgItems.ClientID %>');
    var textBox = $find(textBoxID);
    var textBox2 = $("#" + textBoxID);
 
 
    createMatchingGrid(grid, textBox.get_textBoxValue());
}


The issue is that "textBox" is null but textBox2 is not.
So the JQuery find works as expected by Telerik's $find does not.
Any ideas?

In the mean time i'll just use JQuery's method.

Thanks,
~Patrick
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?