Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
807 views

Hi,

 

I can't get the buttons to work with toggletype Radio when I generate them in a repeater list.

Buttons are the same as from your demo,

Please see for example here: http://eschpla.ontwikkelruimte.nl/nl/schoenen/ballerinas/blauw/lolo-capri-ballerina-donkerblauw-suede-3341

Upper list is from repeater, second from your demo.

Any clue why the first set isn't working properly?

 

Thanks,

Marc

Peter Milchev
Telerik team
 answered on 16 Jun 2020
1 answer
239 views

When I take a Radmenu on master page and a Radgrid on .aspx page my Radgrid's headercontext filter opens from the top of the page otherwise it goes inside the Radmenu. How I resolve it?

Following is the Screen Shot of my problem's output:-

Doncho
Telerik team
 answered on 16 Jun 2020
6 answers
425 views
Hi,
I have some problem with the radgrid's header context menu. when i put my cursor over the Column option ,the submenu list displays not very well at some time. When the grid header is near the Brower's top border ,when I right  click on the header of the grid the context menu popup,and then I move my mouse to the Columns option the submenu display.But ,the submenu displays too high ,and some items are hidden in the topframe(page navigation menu), also it can not see the top small triangle which is use to slide .Can you understand my issue? It only happens when the two condition are satisfied:1、 grid header displays near the boundary of the frame or Brower 2、right click the top part of the header (top means the position higher than the header text ).

My wonder is Can I fix the position that the submenu displays ? Ex. make the top of the submenu align at the Columns options ,make their's top inline.

Thank you very much~
Eyup
Telerik team
 answered on 16 Jun 2020
8 answers
1.2K+ views
I'm using the radgrid and have it as a databound columns.  How can i insert a tooltip on a specific column where each row passes its unique id to web service for the text?

I'm having trouble figuring out how to procede and can't find an example similar to this.  Thanks.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 15 Jun 2020
6 answers
378 views
When first loading the demo page (http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx), strictly using a keyboard with no mouse, we have no issue using the <Tab> key to tab through every element on the web page to get to the Editor.  Once you get to the Editor's toolbars and start tabbing all the way into the content area, you cannot <Tab> to the "Design", "HTML", "Preview" tabs below the content area.  You can <Shift> + <Tab> to go back up, but you cannot <Tab> past the content area.  Is there a special key combination I am not aware of to be able to escape the content area?
Rumen
Telerik team
 answered on 15 Jun 2020
8 answers
196 views

Hello,

I have a weird problem. I want to start using the multicolumncombobox. But when I have multicolumncombobox and kendogrid on one page, calling data("kendoGrid") on the grid DIV will return undefined. If i remove the multicombo, it returns object of the kendogrid. This is a simplified situation, in our project I get errors from kendo JS library, when I need to open a dialog with kendogrid or when I use maskedtextbox. Because both need to reference some object using jQuery data() function. Am I doing something wrong?

This is my test code, button returns kendogrid object, but only with multicombo commented out:

using System;
using System.Configuration;
using System.Web;
using Telerik.Web.UI;
 
public partial class TEST1 : System.Web.UI.Page
{
    protected void Page_Init(object sender, EventArgs e)
    {
        System.Web.UI.Page currentPage = (System.Web.UI.Page)HttpContext.Current.CurrentHandler;
        RadScriptManager RadScriptManager = (RadScriptManager)currentPage.FindControl("RadScriptManagerMain");
        RadScriptManager.Scripts.Add(new System.Web.UI.ScriptReference((String.Format("~/js/jquery.min.js?{0}", ConfigurationManager.AppSettings["Application_Version"]))));
        RadScriptManager.Scripts.Add(new System.Web.UI.ScriptReference((String.Format("~/js/jszip.min.js?{0}", ConfigurationManager.AppSettings["Application_Version"]))));
        RadScriptManager.Scripts.Add(new System.Web.UI.ScriptReference((String.Format("~/js/kendo.all.min.js?{0}", ConfigurationManager.AppSettings["Application_Version"]))));
    }
}
<%@ Page Title="TEST1" Language="C#" AutoEventWireup="true"
    CodeFile="TEST1.aspx.cs" Inherits="TEST1" %>
<!DOCTYPE html>
<html>
    <head runat="server">
        <title>TEST1</title>
    </head>
    <body>
        <telerik:RadScriptManager runat="server" EnableScriptCombine="false" ID="RadScriptManagerMain"
            LoadScriptsBeforeUI="true" OutputCompression="AutoDetect" AsyncPostBackTimeout="36000" ScriptMode="Release">
        </telerik:RadScriptManager>
        <div id="multicombo">
            <telerik:RadMultiColumnComboBox ID="RadMultiColumnComboBox1" runat="server"
                GroupByField="Country" Filter="Contains"
                DropDownWidth="500" Height="400" Width="100%" Placeholder="select from the dropdown or type"
                DataTextField="ContactName" DataValueField="CustomerID" MinLength="3" EnforceMinLength="false">
                <WebServiceSettings Select-ContentType="JSON" ServiceType="OData"
                    Select-Url="https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers">
                </WebServiceSettings>
                <ColumnsCollection>
                    <telerik:MultiColumnComboBoxColumn Field="CustomerID" Title="ID" />
                    <telerik:MultiColumnComboBoxColumn Field="ContactName" Title="Name" />
                </ColumnsCollection>
            </telerik:RadMultiColumnComboBox>
        </div>
        <br />
        <div id="kendogrid"></div>
        <br />
        <button onclick="getdata()">Call data("kendoGrid) on grid</button>
        <script>
            $(document).ready(function () {
                $("#kendogrid").kendoGrid({
                    columns: [{
                        field: "FirstName",
                        title: "First Name"
                    },
                    {
                        field: "LastName",
                        title: "Last Name"
                    }],
                    dataSource: {
                        data: [{
                            FirstName: "Joe",
                            LastName: "Smith"
                        },
                        {
                            FirstName: "Jane",
                            LastName: "Smith"
                        }]
                    }
                });
            });
 
            function getdata() {
                alert($("#kendogrid").data("kendoGrid"));
            }
        </script>
    </body>
</html>
Miroslav
Top achievements
Rank 1
 answered on 15 Jun 2020
5 answers
296 views

Hi,

if I close RadWindow and then reopen it using .setVisible(true) on client side - close button in window title not working anymore. Is it possible to fix this?

here a sample page, press open, close window, press reopen, try to close - nothing happens.

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function TestCloseDates() {
            var manager = GetRadWindowManager();
            var oWnd = manager.getWindowById('wndDates');
            oWnd.setVisible(true);
            //oWnd.restore();
            oWnd.setActive(true);
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <input type="button" value="Open" onclick="window.radopen('', 'wndDates');"  />
        <input type="button" value="Reopen" onclick="TestCloseDates();"  />
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
        <telerik:RadWindowManager ID="wnd1" runat="server">
            <Windows>
                <telerik:RadWindow Height="365px" Width="375px" ID="wndDates" runat="server" ReloadOnShow="True" >
                    <ContentTemplate>
                        Hi There!
                    </ContentTemplate>
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </form>
</body>
</html>

Thanks,

Alex

 

Vessy
Telerik team
 answered on 12 Jun 2020
1 answer
221 views

I have a RadDataform, which has DropDownLists added to the Edit and Insert Item Templates :

<telerik:RadDataForm RenderMode="Lightweight" ID="FormCN" runat="server" 
                    OnNeedDataSource="FormCN_NeedDataSource" 
                    OnItemInserting="FormCN_ItemInserting"
                    OnItemUpdating="FormCN_ItemUpdating"
                    OnItemDeleting="FormCN_ItemDeleting"  
                    OnPreRender="FormCN_PreRender"                     
                    DataKeyNames="CN_SEQ"    
                    Skin="MetroTouch" >
         ...
                <ItemTemplate>
                  ...
                </ItemTemplate>
                    
                <EditItemTemplate>
                  ...
                        <div class="rdfRow">
                            <div class="rdfRight" >                               
                                <telerik:RadComboBox ID="cmbPrep" OnPreRender="cmbPrep_PreRender" OnSelectedIndexChanged="cmbPrep_SelectedIndexChanged" AutoPostBack="true" AllowCustomText="true" runat="server" Skin="MetroTouch" EmptyMessage="Prep" style="float:right;"></telerik:RadComboBox>                                               
                            </div>
                            <telerik:RadTextBox ClientEvents-OnLoad="setHeight" RenderMode="Lightweight" TextMode="MultiLine" ID="PREP" runat="server" Text='<%# Bind("PREP") %>' WrapperCssClass="rdfInput" />                            
                        </div>
                       ...
                </EditItemTemplate>

                <InsertItemTemplate>
                  ...
                        <div class="rdfRow">
                            <div class="rdfRight" >                               
                                <telerik:RadComboBox ID="cmbPrep2" OnPreRender="cmbPrep2_PreRender" OnSelectedIndexChanged="cmbPrep2_SelectedIndexChanged" AutoPostBack="true" AllowCustomText="true" runat="server" Skin="MetroTouch" EmptyMessage="Prep" style="float:right;"></telerik:RadComboBox>                                               
                            </div>
                            <telerik:RadTextBox ClientEvents-OnLoad="setHeight" RenderMode="Lightweight" TextMode="MultiLine" ID="PREP2" runat="server" Text='<%# Bind("PREP") %>' WrapperCssClass="rdfInput" />                            
                        </div>
                      ...
                </InsertItemTemplate>

 

Using NeedDataSource:

 Protected Sub FormCN_NeedDataSource(sender As Object, e As RadDataFormNeedDataSourceEventArgs)
        TryCast(sender, RadDataForm).DataSource = SourceDataTable
    End Sub

Public ReadOnly Property SourceDataTable() As DataTable
        Get
            Dim obj As [Object] = ViewState("SourceDataTable")
            If obj IsNot Nothing Then
                Return DirectCast(obj, DataTable)
            Else
                Dim strConnString As String = ConfigurationManager.ConnectionStrings(Session("mYear")).ConnectionString
                Dim con As OracleConnection = New OracleConnection(strConnString)

                cmdQuery = "SELECT QUEUE, BATCH_NUMBER, " &
                               "CN_SEQ, CN_YEAR, METHOD, " &
                               "PREPMETHOD, PREP, RECEIPT, " &
                               "SAMPPREP, SAMPANAL, CALIBRATION, " &
                               "BLANKS, SURROGATES, SPIKES, " &
                               "INTERNSTANDARD, SAMPLES, OTHER, " &
                               "DUPLICATES, SERIALDILUTION " &
                               "FROM CN_DETAILS " &
                               "WHERE QUEUE = '" & cmbQueue.SelectedValue & "' AND BATCH_NUMBER = " & cmbBatchNumber.SelectedValue & " "

                Dim cmd As OracleCommand = New OracleCommand(cmdQuery)

                cmd.Connection = con
                cmd.CommandType = CommandType.Text
                Dim da As OracleDataAdapter = New OracleDataAdapter(cmd)

                Dim dt As New DataTable()
                da.Fill(dt)
                ViewState("SourceDataTable") = dt
                Return dt

                cmd.Dispose()
                con.Close()
                con.Dispose()
            End If
        End Get

    End Property

On DropDownList Selected Item Changed, I need to populate it's associated textbox with the ddl value. This works well for the EditItem:

 Protected Sub cmbPrep_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
        Dim cmbItem As RadComboBox = TryCast(sender, RadComboBox)
        Dim radTextBox As RadTextBox = cmbItem.Parent.FindControl("PREP")
        radTextBox.Text = e.Value.ToString
    End Sub

How do I replicate this functionalit for the InsertItem? I tried this:

Protected Sub cmbPrep2_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs)
        Dim cmbItem As RadComboBox = TryCast(sender, RadComboBox)
        Dim radTextBox As RadDataFormInsertItem = cmbItem.Parent

        'radTextBox.Text = e.Value.ToString

        Dim insertedItem As RadDataFormInsertItem = TryCast(radTextBox, RadDataFormInsertItem)

        Dim newValues As New Hashtable()
        insertedItem.ExtractValues(newValues)
        newValues("PREP") = e.Value.ToString
        newValues("CN_SEQ") = 9999999
        newValues("CN_YEAR") = "2020"
        newValues("QUEUE") = cmbQueue.SelectedValue
        newValues("BATCH_NUMBER") = cmbBatchNumber.SelectedValue

        Dim dt As DataTable = ViewState("SourceDataTable")

        Dim newRow As DataRow = dt.NewRow()

        For Each entry As DictionaryEntry In newValues
            newRow(DirectCast(entry.Key, String)) = entry.Value
        Next

        dt.Rows.Add(newRow)
        ViewState("SourceDataTable") = dt
    End Sub

The corresponding InsertItem textbox is not updated, however, if you click cancel and return to View, the item text is there. What am I missing please?

Attila Antal
Telerik team
 answered on 12 Jun 2020
1 answer
613 views

Hello,

When I validate the RadComboBox for the WCAG 2.0 and Section 508 Accessibility Compliance with WAVE, I can see there are some warning/errors.

For instance, the RadComboBox has a tooltip property, which bring the title attribute on the input, but WAVE would prefer to have a label linked to the input instead.
I know there is a Label property that I can set, which generate a label beside the RadComboBox, but I want to link my own label to the ComboBox. 
I could simply do this myLabel.AssociatedControlID(comboBoxId + "_Input");, but I'd rather not do this, in case the combobox change in a future update and the input id is not "comboBoxId + "_Input".

Is it any other way to do it? The best way would have been to access the ClientId of the input within the RadComboBox object.

Thank you.

Peter Milchev
Telerik team
 answered on 12 Jun 2020
2 answers
2.1K+ views

I get the following build warnings on Telerik DLLs.

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml, Version=2018.3.904.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Telerik.Windows.Documents.Spreadsheet, Version=2018.3.904.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Telerik.Windows.Documents.Flow, Version=2018.3.904.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Telerik.Windows.Documents.Core, Version=2018.3.904.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\Telerik.Web.UI.dll' depends on 'Telerik.Web.Spreadsheet, Version=2018.3.910.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\Telerik.Web.UI.dll' depends on 'Telerik.Everlive.Sdk.Net35, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Microsoft.WindowsAzure.Storage, Version=3.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on 'AWSSDK.S3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Severity Code Description Project File Line Suppression State
Warning IDE1003 Analyzer assembly 'C:\Users\George\Project\bin\Telerik.Web.UI.dll' depends on '.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well. SignupList 1 Active

Several of the DLLs not found exist in the bin and others do not. 

I do not completely understand the referencing system. It complains about Microsoft.WindowsAzure.Storage which does not have a bin DLL with that name but does have the NuGet package installed.  I do not know what AWS SDK is about since I deploy to Azure, not to AWS.  In this regard, I assume that the Telerik ASP.Net AJAX upgrades should configure everything correctly.  I know that the upgrade changes my .webconfig file on every upgrade since I always fix it.

The project build and runs, I do not understand if the warnings matter (since everything links) but I would like to get rid of them.

Rumen
Telerik team
 answered on 12 Jun 2020
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?