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

Hi,

When using ClickToOpen and ItemTemplates, the menu cannot be closed by touching the root item on mobile Safari (iPad)!

Works if not using ItemTemplates, it also works on desktop browsers!

Sample:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="menu.aspx.vb" Inherits="TestaTredjepartWeb.menu" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadMenu ID="menu" runat="server" RenderMode="Lightweight" ClickToOpen="true">
                <Items>
                    <telerik:RadMenuItem Value="item1" Text="Test1">
                        <Items>
                            <telerik:RadMenuItem Text="1"></telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="2"></telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="3"></telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="4"></telerik:RadMenuItem>
                        </Items>
                        <ItemTemplate>
                            Click Here
                        </ItemTemplate>
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadMenu>
        </div>
    </form>
</body>
</html>

 

On an iPad, click the menu to open it, then it cannot be closed by clicking the menu item again...

Regards
Andreas

Dimitar
Telerik team
 answered on 24 Jan 2017
5 answers
374 views
Hi

   I have a application in VS2010 in which I am using RadPersistenceManager but getting error when trying to save state of  RadGrid. I have attached Error and posting the code. Please help me....

here is the asp code



<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication3.WebForm1" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>
    <style type="text/css">
        .qsf-demo-canvas
        {
            background: url(bg_img.jpg) no-repeat;
            height: 441px;
            width: 476px;
        }
        .demo-canvas-inner
        {
            height: 100%;
            margin-left: -11px;
            padding-top: 26px;
        }
        
        .controls-container
        {
            clear: both;
            padding-top: 40px;
            zoom: 1;
        }
        .controls-container:after
        {
            content: "";
            clear: both;
            display: block;
        }
        .controls-container .rlbItem
        {
            height: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadPersistenceManager runat="server" ID="RadPersistenceManager1">
            <PersistenceSettings>
                <telerik:PersistenceSetting ControlID="rgdemo" />
            </PersistenceSettings>
        </telerik:RadPersistenceManager>
        <asp:Label ID="Label1" runat="server" />
        <br />
        <div style="margin-left: 40px" class="qsf-ib">
            <telerik:RadButton ID="SaveButton" runat="server" Text="Save state" OnClick="SaveButton_Click"
                Skin="Office2007" />
            <telerik:RadButton ID="ResetButton" runat="server" Text="Reset state" OnClick="ResetButton_Click"
                Skin="Office2007" />
            <telerik:RadButton ID="LoadButton" runat="server" Text="Load state" OnClick="LoadButton_Click"
                Enabled="false" Skin="Office2007" />
        </div>
        <div>
            <telerik:RadGrid runat="server" ID="rgdemo" EnableHeaderContextMenu="true" EnableHeaderContextAggregatesMenu="true"
                Skin="Office2007" EnableHeaderContextFilterMenu="true">
            </telerik:RadGrid>
        </div>
        <asp:HiddenField runat="server" ID="SessionID" />
    </div>
    </form>
</body>
</html>
---------------------------------------------------Here is the codbehind-------------------




Imports System.IO
Imports Telerik.Web.UI

Public Class WebForm1
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        
    End Sub
    Public Function GetData() As DataTable
        Dim table As New DataTable()
        table.Columns.Add("ID")
        table.Columns.Add("ParentID")
        table.Columns.Add("Value")
        table.Columns.Add("Text")

        table.Rows.Add(New [String]() {"1", Nothing, "World_Continents", "World Continents"})
        table.Rows.Add(New [String]() {"2", Nothing, "World_Oceans", "World Oceans"})

        table.Rows.Add(New [String]() {"3", "1", "Asia", "Asia"})
        table.Rows.Add(New [String]() {"4", "1", "Africa", "Africa"})
        table.Rows.Add(New [String]() {"5", "1", "Australia", "Australia"})
        table.Rows.Add(New [String]() {"6", "1", "Europe", "Europe"})
        table.Rows.Add(New [String]() {"7", "1", "North_America", "North America"})
        table.Rows.Add(New [String]() {"8", "1", "South_America", "South America"})

        table.Rows.Add(New [String]() {"9", "2", "Arctic_Ocean", "Arctic Ocean"})
        table.Rows.Add(New [String]() {"10", "2", "Atlantic_Ocean", "Atlantic Ocean"})
        table.Rows.Add(New [String]() {"11", "2", "Indian_Ocean", "Indian Ocean"})
        table.Rows.Add(New [String]() {"12", "2", "Pacific_Ocean", "Pacific Ocean"})
        table.Rows.Add(New [String]() {"13", "2", "South_Ocean", "SouthOcean"})

        Return table
    End Function

    Protected Sub SaveButton_Click(ByVal sender As Object, ByVal e As EventArgs)
        SessionID.Value = Guid.NewGuid().ToString()
        LoadButton.Enabled = True
        RadPersistenceManager1.StorageProviderKey = SessionID.Value
        RadPersistenceManager1.SaveState()
    End Sub

    Protected Sub LoadButton_Click(ByVal sender As Object, ByVal e As EventArgs)
        If File.Exists((Server.MapPath("~/App_Data") & "\") + SessionID.Value) Then
            RadPersistenceManager1.StorageProviderKey = SessionID.Value
            RadPersistenceManager1.LoadState()
        Else
            Label1.Text = "Please save some state before load it"
        End If
    End Sub
    Protected Sub ResetButton_Click(ByVal sender As Object, ByVal e As EventArgs)
     
    End Sub
    Protected Sub rgdemo_NeedDataSource(ByVal Sender As Object, ByVal e As GridNeedDataSourceEventArgs) Handles rgdemo.NeedDataSource
        rgdemo.DataSource = GetData()
    End Sub

End Class
Vessy
Telerik team
 answered on 23 Jan 2017
1 answer
92 views

Hello,

since 2017.1.118 there seems to be no default backgroundcolor of the tiles anymore.

Is that intention?

Regards
Frank

Marin Bratanov
Telerik team
 answered on 23 Jan 2017
18 answers
323 views

I updated my AWS SDK to their latest version (AWSSDK.Core v3.x) and now the Telerik CloudUpload component is not working.  I have a class that derives from AmazonS3Provider as shown in your docs, and when I set the AmazonS3Client property of this class, I get the error "The type 'AmazonS3Client' is defined in an assembly that is not referenced. You must add a reference to assembly 'AWSSDK, Version=2.0.5.0, Culture=neutral, PublicKeyToken=9f476d3089b52be3'"

 Can you guys release an update that supports the AWSSDK version 3+?

Veselin Tsvetanov
Telerik team
 answered on 23 Jan 2017
1 answer
65 views

I have a grid (version 2015.3.1111.45, no option to upgrade) that is bound to a List of custom objects.

Then I have a GridDropDownColumn that is bound to a field that is a decimal.

When I try to use the "HeaderContext" Filter Type and populate the checklist with a web service that returns both the text and the decimal value for that field, the grid will only try to filter on the text that comes from the checklist and not the "ID" value. 

The only place I am even able to see what is getting set for the filter is by checking inside the Need Data Source event for the prop [grid].MasterTableView.FilterExpression.

 

Does anyone have any thoughts?

Eyup
Telerik team
 answered on 23 Jan 2017
1 answer
103 views

Hi,

I have a dataform and I'm trying to use the 'Enter' key to save. On my page, I have 3 textboxes and a button (default) that are used to populate the dataform. When my dataform is in edit mode, I press the 'Enter' key and it will not save because my default button is the Search button. 

I'm using javascript on every single textbox inside my dataform to capture onkeypress and cancel the Search. But, if I click outside the textboxes inside my dataform, and I press 'Enter' it will search again.

I've tried to capture onkeypress in a <div> using JQuery but it doesn't work.

Any ideas?

Eyup
Telerik team
 answered on 23 Jan 2017
5 answers
338 views
<telerik:GridTemplateColumn DataField="Res6"   Groupable="False" HeaderText="Res6" SortExpression="Res6"  UniqueName="Res6_RadGridMP"  display="false">
                        <HeaderStyle Width="50px" />
                        <ItemTemplate >
                            <asp:ImageButton runat="server" ID="btnres6"   />
                            <asp:HiddenField ID="hdres6" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridTemplateColumn>
Viktor Tachev
Telerik team
 answered on 23 Jan 2017
0 answers
143 views

I have developed an application using site master page, where I set the MetroTouch skin which affects all content pages. What I need to do is to disable skin inheritance for ReportViewer control, as I want to set default skin type for ReportViewer. I have already tried to set EnableEmbeddedSkins="false".

Any ideas how can I achive that?

Gentiana
Top achievements
Rank 1
 asked on 23 Jan 2017
2 answers
88 views

Hello!

I have scrolling radmenu, with few elements inside. Now for some reason I have to change it to not scroll, but creating second line if conains more elements than one line can handle.

Is it possible, to disable scrolling ability and set this menu height css property to auto?

Thanks for helping!

Arkadiusz
Top achievements
Rank 1
 answered on 23 Jan 2017
4 answers
855 views

Hi guys,

i have a problem of master page is loading/refreshing when i,m changing the content page(child page) from tree view which is in master page. please find the enclosed attachment and suggest me the approach to resolved this issue.

Requirement: When click menu item which is in the master page.... corresponding content page should be load without refreshing/ loading whole master page & url of the page(child page.aspx) should be change.

Thanks
Ravi
Amarkant
Top achievements
Rank 1
 answered on 23 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?