Telerik Forums
UI for ASP.NET AJAX Forum
30 answers
2.0K+ views

This sticky thread lists known issues and breaking changes introduced in the UI for ASP.NET AJAX releases.


Q3 2011 (Version number: 2011.3.1115)

Problem: When adding items to OData enabled controls (RadMenu, RadTreeView, RadListBox, RadComboBox) through design time erroneous markup is applied to the control:

<telerik:RadListBox runat="server" ID="RadListBox1">
        <Items>
        </Items>
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </telerik:RadListBox>

Please note the added ODataSettings section. It will cause JavaScript errors on the page.

Solution: Remove the ODataSetting section and the issue will vanish. The problem is also fixed in the Q3 SP1 release, version number 2011.3.1305
Doncho
Telerik team
 answered on 01 Mar 2021
0 answers
3 views

When a button in a RadListView is clicked, I want to change the text of the button on the client side.  I can find the listview and the index of the row, but can't set the button text of the clicked button.  The code below always changes the text of the button in the first record.

Also, is there an easier way to find the button without adding an attribute in radlistview1_ItemDataBound?

function updateBtn(sender, args) {
   var listview = $find('<%=radlistview1.ClientID%>');
   var myindex = sender._element.getAttribute("rowindex");
   var btn = $telerik.findControl(document.documentElement, "radbutton1");
   //How to select the button that was clicked?
   btn.set_text("Clicked"); //works for first row only
   }

<telerik:RadListView runat="server" ID="radlistview1" DataSourceID="SqlDataSource1" DataKeyNames="myRecordid">
   <ItemTemplate>
   
   <telerik:RadButton runat="server" ID="radbutton1" Text='button'
       ButtonType="StandardButton" RenderMode="Auto"
       OnClientClicked = "updateBtn"
       AutoPostBack="false" UseSubmitBehavior="false">
   </telerik:RadButton>

   </ItemTemplate>
</telerik:RadListView>

Private Sub radlistview1_ItemDataBound(sender As Object, e As RadListViewItemEventArgs) Handles radlistview1.ItemDataBound
   ' Add an attribute to the button that can be passed to JS 
   If TypeOf e.Item Is RadListViewDataItem Then
      Dim item As RadListViewDataItem = TryCast(e.Item, RadListViewDataItem)
      Dim btn As RadButton = TryCast(item.FindControl("radbutton1"), RadButton)
      btn.Attributes.Add("rowindex", item.DataItemIndex.ToString())
   End If
End Sub


Tom
Top achievements
Rank 1
 updated question on 12 May 2021
1 answer
10 views

DateTimeOffset and RadGrid.  Column does not show when this datatype is in resultset.

 

I have a dataTable with this datatype (DateTimeOffset) and this is the only column not showing.

 

I autogenerate the columns in the grid.

 

A workaround for now is to cast that column to datetime, or some other type in my SQL statement that generates the results.  Just curious if this is something that is being worked on or known about?

 

 

Vessy
Telerik team
 answered on 11 May 2021
1 answer
8 views

I have a radgrid set to a datatable.  Columns of type DateTimeOffset are hidden.

Why is this?

 

Roger

Vessy
Telerik team
 answered on 11 May 2021
0 answers
3 views

Hello Developers!

I am using Telerik Radgrid with Excel-like filters for creating my data grids. One issue I face is I cannot filter with symbol '?' or any word starting with '?' like '?check'. It immediately redirects to 500 internal error. If the symbol comes after any other character, the filter works fine, like 'o?c'.

I use RadGrid with DB source and autopopulate columns according to datasource. My filters are Excel-like filters.

I can replicate the same issue in your demo webpage for Excel-like filters too.

Placed screenshots for reference.

URL used: Telerik Web UI Grid Excel-like Filtering Demo | Telerik UI for ASP.NET AJAX

Could you let me know what can be done for this? It is absolutely important for me to be able to filter with '?'

Thanks and Regards

Shivani
Top achievements
Rank 1
 asked on 11 May 2021
0 answers
3 views

Hi,

I have  a Gridhyprlink column with a DataNavigateUrlFormatString and 2    DataNavigateUrlFields

however I want one of those fileds to be conditional on another Column;

eg

DataNavigateUrlFormatString="https://main.aspx?etn={0}&pagetype=entityrecord&id={1}"

 DataNavigateUrlFields= ((if (entityid ==2) {a} else {b}) ,mainid )

Itamar
Top achievements
Rank 1
 asked on 11 May 2021
2 answers
13 views

While following this tutorial to make my RadGrid stack columns vertically on a mobile device, I'm experiencing table width issues. 

In these screenshots, you can see that when I disable the element.style "width: 100%", the table renders as expected.  When it's enabled, the cells are all crammed in a narrow width.

So far, I've been unable to determine how to mimic this disabling in my CSS. 

Any ideas how to resolve?

 

 

Jeff
Top achievements
Rank 1
Iron
 answered on 11 May 2021
4 answers
17 views

Hi Team,

I have an issue with RadCombobox.
Currently we are using Telerik Version - 2015.3.1111.35 and Upgraded .NetFramework 3.5 to .NetFramework 4.8.

Tested in IE,edge and chrome - Not working.

Radcombobox dropdown click events are not firing after apppool changed to 4.0 for the first postback and 

It works for other controls in further postbacks.

Can anyone please help on this?

 


Vessy
Telerik team
 answered on 10 May 2021
1 answer
11 views

I'm creating a RadGrid dynamically and inserting a RadGrid into it.

When I change the RadGrid page, it disappears. How to keep the RadPageView content through Postback?

Besides that, none of RadGrid events are fired when the page changes.

My code:


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageViewProblem.aspx.cs" Inherits="WebApp.PageViewProblem" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <telerik:RadTabStrip runat="server" ID="radTabStrip1" MultiPageID="radMultiViewSearchResult"></telerik:RadTabStrip>
            <telerik:RadMultiPage runat="server" ID="radMultiView1" SelectedIndex="0" EnableViewState="true"></telerik:RadMultiPage>
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        </div>
    </form>
</body>
</html>


using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace WebApp
{
    public partial class PageViewProblem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            RadTab tab1 = new Telerik.Web.UI.RadTab("Tab1");
            radTabStrip1.Tabs.Add(tab1);
            RadPageView resultPageView1 = new RadPageView();
            resultPageView1.ID = "radPageView1";
            radMultiView1.PageViews.Add(resultPageView1);

            RadGrid grid1 = new RadGrid();
            grid1.ID = "RadGrid1";
            grid1.PageSize = 5;
            grid1.AllowPaging = true;
            grid1.AllowCustomPaging = true;
            grid1.PagerStyle.AlwaysVisible = true;
            grid1.VirtualItemCount = 50;
            grid1.NeedDataSource += (sender, args) =>
            {
                grid1.DataSource = SimulateDataSource(grid1);
            };
            grid1.PageIndexChanged += (sender , args) =>
            {
                Debug.WriteLine("Please, load page number: {grid1.currentPage}");
            };
            resultPageView1.Controls.Add(grid1);
        }

        private object SimulateDataSource(RadGrid grid)
        {
            List<ItemData> result = new List<ItemData>();
            for (int i = grid.CurrentPageIndex + 1; i <= grid.CurrentPageIndex + 5; i++)
            {
                result.Add(new ItemData(i, $"Item Description {i}"));
            }
            return result;
        }
        private class ItemData
        {
            public int Value { get; set; }
            public string Description { get; set; }
            public ItemData(int value, string description)
            {
                this.Value = value;
                this.Description = description;
            }
        }
    }
}

Attila Antal
Telerik team
 answered on 07 May 2021
1 answer
11 views
Hello, I am having problems running RadClientDataSource (data is loaded into RadMultiColumnComboBox) and KendoGrid on the same page. I get strange Ajax and Kendo errors in console about stuff being undefined. Are there any known incompatibilities between some Telerik UI controls and Kendo UI widgets? Are there controls that prefer external jQuery over internal one bundled in Telerik UI?
Peter Milchev
Telerik team
 updated answer on 07 May 2021