After setting up the RadGrid
with filtering options on my web page, everything was working perfectly fine. However, upon returning to the system the next day, I encountered an issue where clicking on the filter icon would cause the page to refresh without opening the dropdown. Despite spending two full days trying to troubleshoot this error, I have been unable to find a solution. Additionally, there seems to be an error related to Telerik.Web.UI.WebResource
, displaying "Uncaught SyntaxError: missing
) after argument list."
I am unsure if this error is directly impacting the functionality of the filters. What actions are required for the filters to open the dropdown properly?
Web Page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="estimate_view.aspx.cs" Inherits="ePrint.Printcenter.Views.Estimate.estimate_view" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadGrid
ID="GridView1"
runat="server"
AutoGenerateColumns="false"
AllowPaging="true"
AllowFilteringByColumn="true"
OnSortCommand="GridView1_SortCommand"
OnItemCommand="GridView1_ItemCommand"
OnColumnCreated="GridView1_ColumnCreated"
OnNeedDataSource="GridView1_NeedDataSource"
PagerStyle-AlwaysVisible="true"
PageSize="50"
HeaderStyle-Font-Bold="true">
<MasterTableView>
</MasterTableView>
</telerik:RadGrid>
</form>
CS Code
protected void GridView1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
this.GridBind(this.CompanyID, this.UserID, this.GridView1.PageSize, this.GridView1.CurrentPageIndex + 1, Convert.ToInt32(this.ddl_View.SelectedValue), estimate_view.SortedBy, estimate_view.sortdirection, estimate_view.WhereCondition);
}
public void GridBind(int CompanyID, int UserID, int PageSize, int PageNumber, int ViewID, string SortedBy, string SortDirection, string para)
{
// Inserted code removed for brevity and clarity
}