Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
4 views

Hi,

We have been using the LoadSettings() and SaveSettings() functions to persist the expression in a database. 

We discovered that you have changed the internal format of this when we upgraded to Telerik UI for ASP.NET AJAX 2024 Q4 from Telerik UI for ASP.NET AJAX R1 2023. The old version used ViewState and the new one uses Json. The result of this is that the old expressions are not working anymore. This is a blocker for us. Do you have any solution to detect/convert the old persisted expressions in the new version? We have many expressions saved in the old format and it breaks the application.  

The main reason for upgrading is that we are using your PDF document library to detect if files contains javascript actions and you introduced support for this after the 2023 version. We are checking files for Javascript in compination with your RadAsyncUplad since we do not want users to upload PDF files with javascript due to security reasons. It would have been nice to have access to the Javascript collection that are private. We had to use reflection to get to it. The reason for this is that the javascript is connected to OnOpen action. That one is not supported by public access.

Regards

Ole Oscar

 

Attila Antal
Telerik team
 answered on 04 Jul 2025
0 answers
4 views

I'm encountering an issue in an ASP.NET WebForms application using RadGrid, and I’ve isolated it to one specific column. The grid is configured to use EnableHeaderContextMenu="true". In all columns except one, clicking the ellipsis icon properly displays the context menu just above the column header. However, in the affected column, the context menu opens at the top-left corner of the page (left: 75px; top: 20px;), regardless of scroll position or grid placement.

Details:

  • Right-clicking on the column header does show the menu in the correct location.

  • The issue is limited to a single column; the others function as expected.

  • This behavior is consistent across Chrome and Edge (latest versions).

  • Telerik AJAX controls are up to date (or close — please let me know if this was resolved in a recent release).

  • Attached is a side-by-side comparison, showing the missing Filter icon and Search text box, and inconsistent alignment.

 

Analysis So Far:

  1. Data Content Difference:

    • The affected column contains only NULLs or one repeated value (homogeneous data).

    • I suspect this may result in layout optimizations or missing render elements on Telerik’s end.

  2. HTML Inspection shows a difference:

    • In the affected column, this element is hidden:

    <span id="ctl00_Main_RadGrid1_rghcMenu_i9_filterCheckListSearch_wrapper"
          class="RadInput RadInput_Sunset"
          style="display: none;">

    • In the working column, the same element has no display: none; style:

    <span id="ctl00_Main_RadGrid1_rghcMenu_i9_filterCheckListSearch_wrapper"
          class="RadInput RadInput_Sunset"
          style="">
    3. Menu Container Differences:
  • Broken menu:

<div class="RadMenu RadMenu_Sunset ... GridContextMenu"
     style="left: 75px; top: 20px; height: 324px;">
  • Working menu:

<div class="RadMenu RadMenu_Sunset ... GridContextMenu"
     style="left: 366px; top: 180px; height: 667px;">
  • The significantly reduced height suggests missing or hidden menu elements.

 

Questions:

  • Is this a known issue tied to RadGrid's menu rendering when the filter controls (like checklist search) are hidden or omitted?

  • Could recent browser updates (Chrome/Edge) impact menu positioning logic in RadGrid?

  • Is there a client-side fallback when no visible anchor element is found for positioning?

  • Can this behavior be overridden or corrected without writing custom JS or modifying grid data?

 

What I’m Avoiding for Now:

I’m intentionally avoiding workarounds like injecting dummy values, overriding client-side menu positioning logic, or forcing the checklist visibility. I’m first trying to confirm if this is a recognized bug, regression, or browser compatibility issue.

I can provide a minimal repro project if needed.

Thanks in advance!

Jeff
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 03 Jul 2025
2 answers
34 views

I have created an application within Visual Studio 2019 and using c#.

The project has a page which uses a telerik RadGrid. It is populated on page load and I have filtering enabled on 3 of the columns. I have set the aspx for the columns to have AutoPostBackOnFilter="true" AllowFiltering="true"  ShowFilterIcon="true"

The runs perfectly when ran in development environment but when I publish my application to the web server the filter does not work at all. Nothing happens if I tab out of the filter text box or if I select anything from the filter icon.

Can anyone advise what the issue could be please? I am using Telerik.web.ui version 2024.1.131.45

Thanks

RR

Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 11 Jun 2025
1 answer
19 views

I've set

<telerik:GridTemplateColumn ... ShowFilterIcon="True">

but no icon appears when I apply a filter. Conversely, a sort icon does appear when I apply a sort.

Sorting is achieved by clicking on the column header, but for filtering, I am using a header context menu. Is that the source of the problem?

  • If so, how can I have the filter icon show in the column header when filtering is applied via a header context menu?
  • If not, why else might the filter icon now display when filtering is applied?
Vasko
Telerik team
 answered on 23 Apr 2025
1 answer
26 views

I am using Visual Studio 2019 c#

I have a telerik radgrid which has a column named StageStDate which is in string format but shows a date in format dd-mmm-yy. This column has filtering enabled with a date picker.

I have a hidden column named StageStartDate which is a replicate of StageStDate but is a date column and in format DD/MM/YYYY.

As StageStDate wont filter correctly as its a string format, when user select a date for this column from filter I would like the filtering to apply to the StageStartDate column, how can I achieve this please?

On ItemCommand I have changed the Pair Second to StageStartDate instead of StageStDate

 

but for some reason this makes the filterExpression blank.

Rumen
Telerik team
 answered on 31 Mar 2025
1 answer
56 views

Hi, I have a RadGrid with AllowFilteringByColumn="True" and multiple columns with with the properties set up for filtering, like so:
AutoPostBackOnFilter="false" FilterControlWidth="100%" CurrentFilterFunction="StartsWith" ShowFilterIcon="false" FilterDelay="4000"

When I filter by 1 column, it works fine. Then I filter by an additional column, it works fine.

The problem seems to be when I clear those 2 column filters at the same time.  The first column that is cleared, retains the filter value.

Another option would be to only do the filter when the user hits <enter>.  After thinking about it, this may be the better choice, anyway, as it is more what the users are accustomed to.  I see a bunch of old answers on how to do this, but nothing very current.

Thanks!

Vasko
Telerik team
 answered on 19 Nov 2024
0 answers
55 views
I need to be able to add an "In Time Period" comparison operator option to the dropdown list.  Once the user has selected this option we would display a custom RadFilterDataFieldEditor with a dropdown list of options to choose from ("In Next 7 days", "In Next 30 days", etc).  This would be displayed in place of the built-in calendar control that would be displayed if they chose another comparison operator (such as "Greater than", etc).  How do I add a new comparison operator to the list?  The documentation shows how to remove menu items (Customizing the Menu), but not how to add menu items.  Please advise.  Thanks
Todd
Top achievements
Rank 1
 asked on 24 Apr 2024
0 answers
107 views
Hello,

When I tried to filter my other columns it seems working, but for the payment type column, im getting error: At least one object must implement IComparable

Client model:
public Guid Id { get; set; }

[Display(Name = "Client Code")]
public string Ref { get; set; }

[Display(Name = "Company Name")]
public string CompanyName { get; set; }

[Display(Name = "Payment Options")]
public List<PaymentTypeViewModel> PaymentTypes { get; set; }


payment type model:
using System;

namespace Act2.Certificate.Api.Models.Client
{
    public class PaymentTypeViewModel
    {
        public Guid Id { get; set; }

        public string Name { get; set; }

        public bool Selected { get; set; }
    }
}


Controller file:
    public async Task<IActionResult> GetClientList([DataSourceRequest] DataSourceRequest request
       )
    {
        try
        {
            var list = await _mediator.Send(new ClientsQuery());
            
            DataSourceResult result = list.ToDataSourceResult(request);
            return new JsonResult(result);
        }
        catch (Exception ex)
        {
            return BadRequest(new { message = ex.Message });
        }
    }
}

Do take note, that the payment type has multiple value per row, see below image:
Francis
Top achievements
Rank 1
 asked on 11 Apr 2024
1 answer
64 views

Is there a way to search for files in the directories when using the Document Manager/Image Manager.  I see some code samples that allow for filtering in the selected folder, however that only filters one level and not sub directories.  Looking for a way to search filenames through all sub folders.

 

Rumen
Telerik team
 answered on 21 Mar 2024
1 answer
105 views

Hi,

Could you, please help me find code examples for how to format filter dropdown items of decimal and datetime fields(columns) in telerik:RadGrid.
We need a comma separator for decimal fields.  Also, there is a chance of negative values, so in that case, we need to show its absolute value(within parentheses).
In the case of datetime fields, we need only the date without the time part (date format will be different for different agencies).

We changed the format of Invoice Date column in  ItemDataBound event as below.

dataItem["Date"].Text = rowItem.Date.ToString(AgencyDateFormat);

But it only changed the grid column values, not the filter dropdown.(image of mentioned issue is given below)

We changed the format of Amount column in  ItemDataBound event as below.

dataItem["Amt"].Text = string.Format("{0:0,0.00;(0.00)}", rowItem.Amt);

But it only changed the grid column values, not the filter dropdown.(image of mentioned issue is given below)

 

What we need is for the values shown in the filter will be in the same format of the corresponding column.

I solved this issue by using following code:

private void RadGrid_GridFilterCheckListItemsRequested(object sender, GridFilterCheckListItemsRequestedEventArgs e)
        {
            string filterKey = e.Column.UniqueName;
            List<string> listOfItems = GetList(filterKey);

            foreach (var item in listOfItems)
            {
                if (e.Column.DataType == typeof(DateTime))
                {
                    DateTime datimeObj;
                    if (DateTime.TryParse(item, out datimeObj))
                    {
                        e.ListBox.Items.Add(new RadListBoxItem
                        {
                            Text = datimeObj.ToString(AgencyDateFormat),
                            Value = item
                        });
                        e.ListBox.DataTextFormatString = AgencyDateFormat;
                    }
                }
                else if (e.Column.DataType == typeof(decimal))
                {
                    decimal moneyObj;
                    if (decimal.TryParse(item, out moneyObj))
                    {
                        e.ListBox.Items.Add(new RadListBoxItem
                        {
                            Text = string.Format("{0:0,0.00;(0.00)}", moneyObj),
                            Value = item
                        });
                    }
                }
                else
                {
                    e.ListBox.DataSource = listOfItems;
                }
            }
            e.ListBox.DataBind();
        }

There is one more issue I'm facing. If the column contains a null or empty string, then I need to show them as "(Empty)" in the filter drop-down. How to do this?

We will appreciate your help.

Thanks

            
Vasko
Telerik team
 answered on 19 Feb 2024
Narrow your results
Selected tags
Tags
+123 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?