Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
119 views
Hi,

I am using RadMenu for my website. I want to make the menu entirely keyboard friendly. Using AccessKey I can Navigate to a specific menu item but pressing Enter key does not do any thing. I want to fire the same event with the enter key which fires when we click the menu item.
Following is my code snippet:

<radM:RadMenu ID="RadMenu1" runat="server" UseEmbeddedScripts="False" Skin="System"
                                            CausesValidation="False" OnClientItemFocus="OnClientItemFocus">
                                            <Items>
                                                <radM:RadMenuItem ID="RadMenuItem_Home" runat="server" Text="Home"   NavigateUrl="Default.aspx">
                                                </radM:RadMenuItem>
                                                <radM:RadMenuItem ID="RadMenuItem_Create" runat="server" Text="Create" AccessKey="C">
                                                    <Items>
                                                        <radM:RadMenuItem ID="abc" runat="server" Text="abc"
                                                            NavigateUrl="abc.aspx">
                                                        </radM:RadMenuItem>
                                                        <radM:RadMenuItem ID="xyz" runat="server" NavigateUrl="xyz.aspx"
                                                            Text="xyz">
                                                        </radM:RadMenuItem>                                                      
                                                    </Items>
                                                </radM:RadMenuItem>
<radM:RadMenu>

Here when the focus is on Menu Item "xyz", when I press enter, I want it to navigate to URL: xyz.aspx

Thanks,
Bhavik
Bhavik
Top achievements
Rank 1
 asked on 30 Dec 2011
1 answer
140 views
Good morning all.  I just installed Telerik.Web.UI.  During installaion of Telerik, VS2010 was closed.  After Telerik installed I opened VS2010 and clicked new telerik web project VB.  My tool box is loaded with Telerik controls and everything seems ok except that the default.aspx page html code has squiggly lines on anything that says RadScriptManager, ScriptReferance, RadStyleSheetManager with a message of  ":'*** is not a known element.  This can occur if there is a compilation error in the web site, or the web.config file is missing."  Did I miss a step in setting up the project?  Can someone please tell me what I need to do to get the error messages to go away?

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <title></title>
 <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  <Scripts>
   <%--Needed for JavaScript IntelliSense in VS2010--%>
   <%--For VS2008 replace RadScriptManager with ScriptManager--%>
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
  </Scripts>
 </telerik:RadScriptManager>
 <script type="text/javascript">
  //Put your JavaScript code here.
    </script>
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
 </telerik:RadAjaxManager>
 <div>

 </div>
 </form>
</body>
</html>

Juan
Top achievements
Rank 1
 answered on 30 Dec 2011
4 answers
85 views
Hi,

Recently, I upgraded to the 2011 Q3 Ajax ASP.NET Framework 3.5 release.  Every RadGrid in my project promptly gave a skin not found error since only the Default skin is now present in the Telerik.Web.UI.dll.  I have attempted to follow the documentation that has been placed on the web to get my Simple skin back, but have had no success including copying and referencing the Telerik.Web.UI.Skins.dll.

Please provide examples of how to get the RadGrid Simple skin under this upgrade.

Thanks,
Don
Top achievements
Rank 1
 answered on 29 Dec 2011
5 answers
169 views
Hi,

I have a radgrid in which I'm binding the data. For instance I have the column "SER" in the grid. The value of "SER" in the grid is
"NG  101101". The length is fixed i.e 10.

When i export the above data using export to excel, the radgrid exports the above data to "NG 101101".  It removes one space. I don't want the excel to remove the space. I need to maintain the data as such.

Could you please help me achieve what I want.

Thanks,
Raji

Raja Rajeswari Mohan Venkataraman
Top achievements
Rank 1
 answered on 29 Dec 2011
12 answers
237 views
Hi i have a problem! I have RadGrid and i have FormTemplate. In FormTemplate i have a html button (System.Web.UI.HtmlControls.HtmlInputSubmit) with runat = "server" and I can't find  this control(
System.Web.UI.HtmlControls.HtmlInputSubmit p = (System.Web.UI.HtmlControls.HtmlInputSubmit)item.FindControl("openWinbut") return null!!! If i find a aspnet Button then it doesn't return null! Help please)))
Elliott
Top achievements
Rank 2
 answered on 29 Dec 2011
3 answers
224 views
Hey I am having a problem with a rad grid.  i am adding columns programmatically and setting a datasource in the

 

NeedDataSource event.  The problem is that i can't seem to "unlock" the checkbox column so that the user can check/uncheck the field.  what am i missing?  i can't find anything in docs describing how to do this.  i have made grid item edtible on pre render - to no effect; i have made readonly property false - also to no effect.  please help.

it is embedded in a user control like below

 

<% @ Control Language="C#" AutoEventWireup="true" CodeFile="ActiveFileTable.ascx.cs" Inherits="ActiveFileTable" %>

 

<asp:Panel ID="Panel1" runat="server" Height="531px" Width="865px">

 

<telerik:RadGrid ID="RadGrid1" runat="server">

 </telerik:RadGrid>

 

</asp:Panel>

 

 c#

 dataLayerDataContext dataLayer = new dataLayerDataContext();

RadGrid1.AutoGenerateColumns = false;

GridCheckBoxColumn boundColumn4 = new GridCheckBoxColumn();

boundColumn4.UniqueName = "Is Active";

boundColumn4.DataField = "isactive";

boundColumn4.HeaderText = "Active";

boundColumn4.Visible = true;

boundColumn4.ReadOnly = false;

 

RadGrid1.MasterTableView.Columns.Add(boundColumn4);

RadGrid1.DataSource = dataLayer.getActiveInvFilePT();

Chris
Top achievements
Rank 1
 answered on 29 Dec 2011
1 answer
121 views
Is it possible to resize an appointment while in the month view?  I am using the scheduler to show what days an employee is on a job.  These span over multiple days.  Right now I can only move the appointment around, not resize it to a certain time frame.
Richard
Top achievements
Rank 1
 answered on 29 Dec 2011
1 answer
115 views
Hi,

I am using Rad Grid and have more then 50 cells in one row. I am able to move cell one by one using arrow key or tab key but not able to move page same time, so I am able to move cells but to see those cells I have to scroll horizontal manually. I want to move page as well with moving to cell.

Also when I try to click on last cell or trying to edit that cell, automatically I am coming back to first cell.

Thanks,
Mona
Andrey
Telerik team
 answered on 29 Dec 2011
2 answers
196 views
Hi,

I have aproblem in uploading *.mht files using the Document Manager of the RadEditor control. By selecting the required *.mht file and click Upload I get the "Internet Explorer cannot display the webpage" error.

Here is my Code:
string searchPatterns = "*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.xml,*.zip,*.rar,*.mht";
CntntRadEditor.DocumentManager.SearchPatterns = searchPatterns.Split(',');

By the way, I can upload all file types except to *.mht files, and there is no maximum upload size problem (File size is 4.5 MB and the MaxUploadFileSize is 30 MB).

Can you please explain to me how can I upload such files using the Document Manager.

Regards,
Bader
Rumen
Telerik team
 answered on 29 Dec 2011
1 answer
122 views
hi everyone, i am trying to learn more about .net and teleriks control i have an easy problem but for my inexperience in this i could not to resolve, i need to save all data of my radgrid in other table, but i dont know why only save one row when i have for example 3 rows, it save only the first one i print for example the name of the product and show me 3 products so is correct the problem is when i have to save... :( .... this is my code i hope u can help me :(


Dim Connstring As String = "something"
        Dim Conn As SqlConnection = New SqlConnection(Connstring)
        Dim cmd As New SqlCommand
        cmd.CommandType = CommandType.StoredProcedure
        cmd.CommandText = "auxiliar_compra"
        cmd.Connection = Conn
        For Each dataItem As GridDataItem In RadGrid1.Items

            Try
                MsgBox(dataItem("producto").Text)
                cmd.Parameters.Add("@param1", SqlDbType.Int).Value = dataItem("cod_provee").Text
                cmd.Parameters.Add("@param2", SqlDbType.Char).Value = dataItem("proveedor").Text
                cmd.Parameters.Add("@param3", SqlDbType.Char).Value = dataItem("codigo").Text
                cmd.Parameters.Add("@param4", SqlDbType.Char).Value = dataItem("producto").Text
                cmd.Parameters.Add("@param5", SqlDbType.Decimal).Value = dataItem("unidades").Text
                cmd.Parameters.Add("@param6", SqlDbType.Money).Value = dataItem("precio").Text
                cmd.Parameters.Add("@param7", SqlDbType.Decimal).Value = dataItem("porcomprar").Text       
                cmd.Connection.Open()
                cmd.ExecuteNonQuery()
               cmd.Parameters.Clear()
            Catch ex As Exception

            End Try

        Next
cmd.Connection.Close()
Robert
Top achievements
Rank 2
 answered on 29 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?