protected void Page_Load(object sender, EventArgs e) { if (Session["GridData"] == null) { DataTable table = GetTable(); Session.Add("GridData", table); } DefineGridStructure(); } private void DefineGridStructure() { RadGrid grid = new RadGrid(); grid.ID = "RadGrid1"; grid.NeedDataSource += new GridNeedDataSourceEventHandler(grid_NeedDataSource); grid.AutoGenerateEditColumn = true; grid.AutoGenerateDeleteColumn = true; grid.AllowAutomaticInserts = true; grid.Width = Unit.Percentage(100); grid.PageSize = 15; grid.AllowPaging = true; grid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric; grid.AutoGenerateColumns = false; grid.MasterTableView.Width = Unit.Percentage(100); grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.TopAndBottom; grid.AllowAutomaticDeletes = true; grid.AllowAutomaticUpdates = true; grid.InsertCommand +=grid_InsertCommand; grid.MasterTableView.DataKeyNames = new string[] { "RowNumber" }; GridBoundColumn boundColumn = new GridBoundColumn(); boundColumn.DataField = "RowNumber"; boundColumn.HeaderText = "RowNumber"; boundColumn.ReadOnly = true; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "Size"; boundColumn.HeaderText = "Size"; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "Description"; boundColumn.HeaderText = "Description"; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "Quantity"; boundColumn.HeaderText = "Quantity"; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "Duration"; boundColumn.HeaderText = "Duration"; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "DurationType"; boundColumn.HeaderText = "DurationType"; grid.MasterTableView.Columns.Add(boundColumn); boundColumn = new GridBoundColumn(); boundColumn.DataField = "Amount"; boundColumn.HeaderText = "Amount"; grid.MasterTableView.Columns.Add(boundColumn); PlaceHolder1.Controls.Add(grid); } private void grid_InsertCommand(object sender, GridCommandEventArgs e) { // Looking to loop through the form so i can insert the values into the datatable } void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { DataTable current = (DataTable)Session["GridData"]; RadGrid grid = (RadGrid)sender; grid.DataSource = current; } static DataTable GetTable() { // // Here we create a DataTable with a few columns. // // Create Datatable to store all colums DataTable dt = new DataTable(); DataRow dr = null; dt.Columns.Add(new DataColumn("RowNumber", typeof(string))); dt.Columns.Add(new DataColumn("Size", typeof(string))); dt.Columns.Add(new DataColumn("Description", typeof(string))); dt.Columns.Add(new DataColumn("Quantity", typeof(string))); dt.Columns.Add(new DataColumn("Unit", typeof(string))); dt.Columns.Add(new DataColumn("Duration", typeof(string))); dt.Columns.Add(new DataColumn("DurationType", typeof(string))); dt.Columns.Add(new DataColumn("Amount", typeof(string))); dr = dt.NewRow(); dr["RowNumber"] = 1; dr["Size"] = string.Empty; dr["Description"] = string.Empty; dr["Quantity"] = string.Empty; dr["Unit"] = string.Empty; dr["Duration"] = string.Empty; dr["DurationType"] = string.Empty; dr["Amount"] = string.Empty; dt.Rows.Add(dr); return dt; }public class filterSimpleCtrl : WebControl { private RadFilter _rf = new RadFilter(); private Label _label = new Label(); private RadScriptManager sm = new RadScriptManager(); protected override void OnInit(EventArgs e) { base.OnInit(e); this.Page.Form.Controls.Add(sm); this._label.ID = "_label"; this._rf.ID = "_rf"; this._rf.FilterContainerID = "RadGrid1"; this._rf.ExpressionPreviewPosition = RadFilterExpressionPreviewPosition.Bottom; this._rf.ApplyExpressions += _rf_ApplyExpressions; this._rf.ExpressionItemCreated += _rf_ExpressionItemCreated; RadFilterTextFieldEditor rfe2 = new RadFilterTextFieldEditor(); rfe2.FieldName = "City"; rfe2.DisplayName = "City"; rfe2.DefaultFilterFunction = RadFilterFunction.Contains; _rf.FieldEditors.Add(rfe2); RadFilterDropDownEditor rfe = new RadFilterDropDownEditor(); rfe.FieldName = "CountryCode"; rfe.DisplayName = "Country Code"; rfe.DataTextField = "CountryCode"; rfe.DefaultFilterFunction = RadFilterFunction.EqualTo; _rf.FieldEditors.Add(rfe); this.Page.Form.Controls.Add(_rf); this.Page.Form.Controls.Add(new LiteralControl("<br />")); this.Page.Form.Controls.Add(_label); } protected void _rf_ExpressionItemCreated(object sender, RadFilterExpressionItemCreatedEventArgs e) { // Populate the RadDropDownList control for every ShipCountry field editor RadFilterSingleExpressionItem singleItem = e.Item as RadFilterSingleExpressionItem; if (singleItem != null && singleItem.FieldName == "CountryCode" && singleItem.IsSingleValue) { RadDropDownList dropDownList = singleItem.InputControl as RadDropDownList; dropDownList.DataSource = GetListData("country"); dropDownList.DataBind(); } // Removes the AddGroupExpressionButton for group expression other than the root group RadFilterGroupExpressionItem groupItem = e.Item as RadFilterGroupExpressionItem; if (groupItem != null) { if (groupItem.IsRootGroup) groupItem.RemoveButton.Visible = false; else groupItem.AddGroupExpressionButton.Visible = false; } } void _rf_ApplyExpressions(object sender, RadFilterApplyExpressionsEventArgs e) { RadFilterSqlQueryProvider queryProvider = new RadFilterSqlQueryProvider(); queryProvider.OnExpressionEvaluated = this.ExpressionEvaluated; queryProvider.ProcessGroup(e.ExpressionRoot); this._label.Text = queryProvider.Result; } private void ExpressionEvaluated(RadFilterEvaluationData evaluationData) { RadFilterFunction filterFunction = evaluationData.Expression.FilterFunction; if (evaluationData.Expression.FieldName == "CountryCode" && filterFunction == RadFilterFunction.EqualTo || filterFunction == RadFilterFunction.NotEqualTo) { //NONE OF THESE WORK //string value = (evaluationData.Expression as RadFilterContainsFilterExpression).Value; //string value = (((IRadFilterValueExpression)evaluationData.Expression).Values[0] as RadFilterDropDownEditor).ExtractValues()[0].ToString(); //string value = (((IRadFilterValueExpression)evaluationData.Expression).Values[0] as RadDropDownList).SelectedValue; RadFilterNonGroupExpression expression = null; RadFilterSqlExpressionEvaluator evaluator = RadFilterSqlExpressionEvaluator.GetEvaluator(evaluationData.Expression.FilterFunction); expression = new RadFilterEqualToFilterExpression<string>("CountryCode") { Value = value }; evaluator.GetEvaluationData(expression).CopyTo(evaluationData); } } private DataTable GetListData(string list) { string query = ""; switch (list) { case "country": query = "SELECT CountryCode FROM Country"; break; default: break; } string conString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString; SqlCommand cmd = new SqlCommand(query); using (SqlConnection con = new SqlConnection(conString)) { using (SqlDataAdapter sda = new SqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = cmd; using (DataTable dt = new DataTable()) { sda.Fill(dt); return dt; } } } } }<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InstrumentSetupContainer.aspx.cs" Inherits="BusinessSettingsSetup_InstrumentSetupContainer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="../Styles/Form.css" rel="stylesheet" type="text/css" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" ></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" >
<ContentTemplate>
<fieldset>
<asp:UpdateProgress ID="progress1" runat="server">
<ProgressTemplate>
<img alt="" src="../Images/loader.gif" />
Please Wait...
</ProgressTemplate>
</asp:UpdateProgress>
<div>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black"
MultiPageID="RadMultiPage1" SelectedIndex="0" >
<Tabs>
<telerik:RadTab Text="Instrument"></telerik:RadTab>
<telerik:RadTab Text="Instrument Catagories"></telerik:RadTab>
<telerik:RadTab Text="Instrument Exchange Listing"></telerik:RadTab>
<telerik:RadTab Text="Instrument Margin"></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="RadPageView1" runat="server" Height="600px" ContentUrl="InstrumentSetup.aspx">
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView2" runat="server" Height="600px" ContentUrl="InstrumentCategoryDatewiseSetup.aspx">
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView3" runat="server" Height="600px" ContentUrl="InstrumentExchangeListingSetup.aspx">
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView4" runat="server" Height="600px" ContentUrl="InstrumentMarginDatewiseSetup.aspx">
</telerik:RadPageView>
</telerik:RadMultiPage>
</div>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>

As i have updated Telerik dll's but after updating i am getting below Errors and i am not using any types of triggers and asp update panels so please tell me asap and i am also attaching screen shot of below error(image_xi) and Telerik Ajax settings screen shot.