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

 After upgrading to Q2 2013 (version 2013.2.611.45) experiencing very strange behavior of the radgrid. After AJAX grid rebind all columns are moved to left side (please see attached picture).

How to fix? Q1 2013 SP2 was working without any problems.

Maria Ilieva
Telerik team
 answered on 26 Jun 2013
4 answers
161 views
Hi,

With the new version Q2 I found a problem. I had code with Q1 that "creates items" in the entries collection and aftre the user clicks save the collection is read again and differences are saved to the db (via oa).

Now, with Q2 however, the collection is not changed after deleting an entry.

Example:

ASPX:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default3.aspx.vb" Inherits="WebApplication14.Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <link href="style/css/site.css" rel="stylesheet" type="text/css" />
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager_App" runat="server">
    </telerik:RadStyleSheetManager>
    <title></title>
    <style type="text/css">
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <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>
            <telerik:RadWindowManager ID="RadWindowManager_App" EnableShadow="true" runat="server" />
            <telerik:RadFormDecorator ID="RadFormDecorator_App" runat="server" />
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel_App" runat="server" />
            <asp:Panel ID="pnl_RadAjaxPanel_App_Holder" Style="width: 100%; height: 100%;" runat="server">
                <telerik:RadAjaxPanel ID="RadAjaxPanel_App" runat="server" LoadingPanelID="RadAjaxLoadingPanel_App" Style="width: 100%; height: 100%;" class="FullScreen">
                    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" DataTextField="Name" DataValueField="ContactId" TokensSettings-AllowTokenEditing="False" AllowCustomEntry="False" InputType="Token" Filter="Contains" runat="server" >
                    </telerik:RadAutoCompleteBox>
                    <asp:Button ID="Button1" runat="server" />
                    <asp:Button ID="Button2" runat="server" />
                </telerik:RadAjaxPanel>
            </asp:Panel>
        </div>
    </form>
</body>
</html>


VB test code:

Imports Telerik.Web.UI
 
Public Class Default3
    Inherits System.Web.UI.Page
 
    Private Sub Page_Init(sender As Object, e As EventArgs) Handles Me.Init
        Dim lst_DataSource = TestItem.GetTestData
 
        RadAutoCompleteBox1.DataSource = lst_DataSource
 
    End Sub
 
    Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
 
        If Not HadInit Then
            RadAutoCompleteBox1.Entries.Add(New AutoCompleteBoxEntry("Kees #02.1", "3"))
            RadAutoCompleteBox1.Entries.Add(New AutoCompleteBoxEntry("Miquel #02", "8"))
            HadInit = True
        End If
 
    End Sub
 
 
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim i As Long = RadAutoCompleteBox1.Entries.Count
    End Sub
 
    Private Sub RadAutoCompleteBox1_EntryAdded(sender As Object, e As AutoCompleteEntryEventArgs) Handles RadAutoCompleteBox1.EntryAdded
 
    End Sub
 
    Private Sub RadAutoCompleteBox1_EntryRemoved(sender As Object, e As AutoCompleteEntryEventArgs) Handles RadAutoCompleteBox1.EntryRemoved
 
    End Sub
 
    Public Property HadInit As Boolean
        Get
            Return If((ViewState("HadInit") & "").ToString.Trim.Length = 0, False, CBool(ViewState("HadInit")))
        End Get
        Set(value As Boolean)
            ViewState("HadInit") = value
        End Set
    End Property
 
 
    Private Class TestItem
        Private mlng_ContactId As Long
        Private mstr_Name As String
        Private mstr_FirstName As String
        Private mstr_City As String
        Private mstr_Country As String
        Private mobj_ParentContactId As Long? = Nothing
 
        Public Sub New()
        End Sub
        Public Sub New(ByVal alng_ContactId As Long, ByVal astr_Name As String, ByVal astr_FirstName As String, ByVal astr_City As String, ByVal astr_Country As String, Optional ByVal alng_ParentContactId As Long? = Nothing)
            ContactId = alng_ContactId
            Name = astr_Name
            FirstName = astr_FirstName
            City = astr_City
            Country = astr_Country
            ParentContactId = alng_ParentContactId
        End Sub
 
        Public Shared Function GetTestData() As List(Of TestItem)
            Dim lst As New List(Of TestItem)
 
            lst.Add(New TestItem(1, "Piet #01", "Firstname #01", "City #01", "Country #01"))
            lst.Add(New TestItem(2, "Jan #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(3, "Kees #02.1", "Firstname #02.1", "City #02.1", "Country #02.1", 2))
            lst.Add(New TestItem(4, "Karel #02.2", "Firstname #02.2", "City #02.2", "Country #02.2", 2))
            lst.Add(New TestItem(5, "Hans #02.2.1", "Firstname #02.2.1", "City #02.2.1", "Country #02.2.1", 4))
            lst.Add(New TestItem(6, "Rene #02.2.2", "Firstname #02.2.2", "City #02.2.2", "Country #02.2.2", 4))
            lst.Add(New TestItem(7, "Erik #02.3", "Firstname #02.3", "City #02.3", "Country #02.3", 2))
            lst.Add(New TestItem(8, "Miquel #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(9, "Eric #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(10, "Peter #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(11, "Zorov #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(12, "Name #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(13, "Name #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(14, "Name #02", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(15, "Name #01", "Firstname #01", "City #01", "Country #01"))
            lst.Add(New TestItem(16, "Name #16", "Firstname #02", "City #02", "Country #02"))
            lst.Add(New TestItem(17, "Name #16.1", "Firstname #16.1", "City #02.1", "Country #02.1", 16))
            lst.Add(New TestItem(18, "Name #16.2", "Firstname #16.2", "City #02.2", "Country #02.2", 16))
            lst.Add(New TestItem(19, "Name #16.2.1", "Firstname #16.2.1", "City #02.2.1", "Country #02.2.1", 18))
            lst.Add(New TestItem(20, "Name #16.2.2", "Firstname #16.2.2", "City #02.2.2", "Country #02.2.2", 18))
            lst.Add(New TestItem(21, "Name #16.3", "Firstname #16.3", "City #02.3", "Country #02.3", 16))
            lst.Add(New TestItem(22, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(23, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(24, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(25, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(26, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(27, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(28, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(29, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(30, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(31, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(32, "Name #22", "Firstname #22", "City #22", "Country #22"))
            lst.Add(New TestItem(33, "Name #22", "Firstname #22", "City #22", "Country #22"))
 
            Return lst
        End Function
 
        Public Property ContactId As Long
            Get
                Return mlng_ContactId
            End Get
            Set(ByVal value As Long)
                mlng_ContactId = value
            End Set
        End Property
 
        Public Property Name As String
            Get
                Return mstr_Name
            End Get
            Set(ByVal value As String)
                mstr_Name = value
            End Set
        End Property
 
        Public Property FirstName As String
            Get
                Return mstr_FirstName
            End Get
            Set(ByVal value As String)
                mstr_FirstName = value
            End Set
        End Property
 
        Public Property City As String
            Get
                Return mstr_City
            End Get
            Set(ByVal value As String)
                mstr_City = value
            End Set
        End Property
 
        Public Property Country As String
            Get
                Return mstr_Country
            End Get
            Set(ByVal value As String)
                mstr_Country = value
            End Set
        End Property
 
        Public Property ParentContactId As Long?
            Get
                Return mobj_ParentContactId
            End Get
            Set(ByVal value As Long?)
                mobj_ParentContactId = value
            End Set
        End Property
 
    End Class
 
 
End Class

In the example 2 items are added on loading-first-time. When you delete an entry in the box and click the first button (left side) you can see that the count is still 2 and not 1. When you go back to Q1, you will find that the count = 1.

Is this a bug or a feature? ;-)

Erik

Bozhidar
Telerik team
 answered on 26 Jun 2013
1 answer
286 views
Hi,
I'm trying to achieve what's already provided in Microsoft Charting control, if the label text is large then it will automatically rotate it. How can I achieve it in Telerik?

I know we can set Rotation Angle of labels but chart shows different labels based on user selection, I don't want to always rotate them. As I don't know which user selection will cause large labels so I can't manually set the rotation angles.

Please see attached images ...if I browse chart on weeks, the labels are automatically rotated 

Thanks,
Safeer
Rosko
Telerik team
 answered on 26 Jun 2013
1 answer
147 views
Hi all

so i have to Radmenus the diference between theme, the fisrt RADMENU1 has NavigateURL and the second RADMENU2 has only VAlue, the problem is that when i delete the first, or i turn it visible=false, its crashes like hell, on internet explorer, i have a huge maigrain from reading all the code tryuing to find a diference or a bug but nothing.

Error:
JavaScript critical error at line 5, column 1 in http://localhost:62127/Main.aspx?ReturnUrl=/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a8a277cf4-155d-4ba9-b3c0-d6f62646e5f2%3a16e4e7cd%3af7645509%3a22a6274a&_TSM_HiddenField_=ScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:8a277cf4-155d-4ba9-b3c0-d6f62646e5f2:16e4e7cd:f7645509:22a6274a

SCRIPT1002: Syntax error
Boyan Dimitrov
Telerik team
 answered on 26 Jun 2013
5 answers
413 views
Hello,
I have created an aspx page, the image was attached to this post. I put a table in html and I put the label radcombobox two and a radtextbox. The theme I use is the "silk". Now as you can see from the attached, the combobox not only aligned to radtextbox. I set the values ​​for padding and margin to zero but nothing. Also sending the html code.
How can I align everything correctly?

<table style="width: 662px;padding:0px;margin:0px">
           <tr>
               <td style="width: 102px;padding:0px;margin:0px;">
                   <asp:Label ID="Label3" runat="server" Text="Tipo alloggiato:" Width="102px"></asp:Label>
               </td>
               <td style="width: 150px;padding:0px;margin:0px;">
                   <telerik:RadComboBox ID="tipoalloggiato" Runat="server" Culture="it-IT" Skin="Silk" Width="130px">
                       <Items>
                           <telerik:RadComboBoxItem runat="server" Text="Ospite singolo" Value="16" />
                           <telerik:RadComboBoxItem runat="server" Text="Capo famiglia" Value="17" />
                           <telerik:RadComboBoxItem runat="server" Text="Capo gruppo" Value="18" />
                       </Items>
                   </telerik:RadComboBox>
               </td>
               <td style="width: 105px;padding:0px;margin:0px">
                   <asp:Label ID="Label4" runat="server" Text="nr. componenti:" Width="105px"></asp:Label>
               </td>
               <td style="width: 70px;padding:0px;margin:0px">
                   <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" Culture="it-IT" DbValueFactor="1" LabelWidth="0px" Skin="Silk" Value="1" Width="50px" DataType="System.Int32" MaxLength="4">
                       <NumberFormat ZeroPattern="n" DecimalDigits="0" DecimalSeparator="."></NumberFormat>
                       <DisabledStyle Font-Underline="False" HorizontalAlign="Right" />
                   </telerik:RadNumericTextBox>
               </td>
               <td style="width: 85px;padding:0px;margin:0px">
                   <asp:Label ID="Label5" runat="server" Text="Tipo gruppo:" Width="85px"></asp:Label>
               </td>
               <td style="width: 160px;padding:0px;margin:0px">
                   <telerik:RadComboBox ID="tipogruppo" Runat="server" Skin="Silk">
                   </telerik:RadComboBox>
               </td>
           </tr>
           </table>
Magdalena
Telerik team
 answered on 26 Jun 2013
3 answers
1.1K+ views
Okay, I've a List<String> object and RadCombobox.Items collection. I want to check all items whose values fall in that List.

Above all, this does not actually check those items, even if the condition in the "if statement" seems to be satisfied and it does execute the if block w/o any errors.

I'd love to get this doing by LINQ in a bit more efficient manner than that of below (100s of items folks, that's why I'm thinking of this as a reasonable thing to do)

I tried the Intersect but evidently, I can not compare RadComboBoxItem with a string even if I do so
 
IEnumerable<string> AdditionalCategoryTypes = LoadAdditionalCategoryTypes(thisObj.ProductID);
foreach (string val in AdditionalCategoryTypes)
{
    if (ddAdditionalCategoryTypes.Items.FindItemByValue(val) != null)
        ddAdditionalCategoryTypes.Items.FindItemByValue(val).Checked = true;
}



Thanks you much,
-Aarsh
Nencho
Telerik team
 answered on 26 Jun 2013
5 answers
262 views
hi community,

I have been looking for a solution to swap docks between two zones.

The moment I drop dock from zone 2 to zone 1 i need dock from zone 1 should come to dock 2 . (Similar  to radgrid column swapping)


Thanks Guys,
SJ



Slav
Telerik team
 answered on 26 Jun 2013
1 answer
524 views
hello friends,

  I want to get value of bound column in itemcommand event in rad grid how can i do this?
Shinu
Top achievements
Rank 2
 answered on 26 Jun 2013
1 answer
74 views
Hello!

Ive come across a weird problem, Everytime I try to edit my form, the textboxes are in various width. Ive tried sorting this out by iterating thorugh Render.Columns and set the item.Width, with no result.

Eg something like this: 
 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
                {
                    foreach (GridEditFormItem EdItem in rgRadGrid1.Columns)
                    {
                        EdItem.Width = System.Web.UI.WebControls.Unit.Pixel(300);
                    }
}

Ofc this piece of code with yield errors due to the difference of GridEditFormItem and the columns from my rgRadGrid1.

Any idea how to solve this? I ve been stuck for the last hour:) Appreciate any help! (I've tried searching for a solution, but couldn't find anything.)
Princy
Top achievements
Rank 2
 answered on 26 Jun 2013
5 answers
144 views
I cannot find the API reference for the Telerik.Web.UI.RadAsyncUpload (I mean the one under RadControls/API Reference/Telerik.Web.UI Namespace).
Neither in online help, nor in the downloaded offline version.
Yesterday I updated to last version, but still can't find API documentation.
Is it missing?

For example I see in the online demo (Ajaxified grid) that there's a server side event ValidatingFile, but no documentation on it and the VS properties panel does not show it among available events.

Thanks
Kate
Telerik team
 answered on 26 Jun 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?