or
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { int count = 0; if (RadGrid1.MasterTableView.SortExpressions.Count > 0) RadGrid1.DataSource = GetEntities(RadGrid1.PageSize, RadGrid1.MasterTableView.CurrentPageIndex * RadGrid1.PageSize, RadGrid1.MasterTableView.FilterExpression, RadGrid1.MasterTableView.SortExpressions[0].FieldName + " " + RadGrid1.MasterTableView.SortExpressions[0].SortOrderAsString(), out count); else RadGrid1.DataSource = GetEntities(RadGrid1.PageSize, RadGrid1.MasterTableView.CurrentPageIndex * RadGrid1.PageSize, RadGrid1.MasterTableView.FilterExpression, "", out count); RadGrid1.MasterTableView.VirtualItemCount = count; } private DataTable GetEntities(int maximumRows, int startRowIndex, string filterExpression, string sortExpression, out int count) { ClientDataContext db = new ClientDataContext(); var query = from g in db.GovtEntityLogs select new { g.GovtEntityLogID, g.ClientID, g.Client.ClientName, g.EntityName, g.StartDate, g.EndDate, g.InvestorTypeID, g.InvestorType.InvestorType1, }; //Set filter expresion if (!String.IsNullOrEmpty(filterExpression)) { query = query.Where(String.Format(@"{0}", filterExpression)); } if (!String.IsNullOrEmpty(sortExpression)) { query = query.OrderBy(sortExpression); } else { query = query.OrderBy("ClientName"); } //Set the total row count count = query.Count(); var pagedData = query.Skip(startRowIndex).Take(maximumRows); DataTable dt = new DataTable(); dt = pagedData.ToADOTable(); return dt; }<%@ Page Title="" EnableViewState="false""(Convert.ToString(it[\"ClientName\"]).ToUpper() = \"Capital Investment Advisory Services, LLC (CIAS)\".ToUpper())"
Am I missing something?
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" ShowPopupOnFocus="true"> <Calendar MultiViewColumns="2"> </Calendar> </telerik:RadDatePicker><script> function ClearSelection() { var combo = <%=RadComboBox1.ClientID %>; combo.ClearSelection(); }</script>var combo = $find("<%#radCustomSearchDropdown.ClientID %>");<telerik:RadComboBox ID="radCustomSearchDropdown" runat="server" Height="200px" Width="200px" DropDownWidth="350px" EmptyMessage="Custom Search" HighlightTemplatedItems="true" EnableLoadOnDemand="true" Filter="StartsWith" OnSelectedIndexChanged="radCustomSearchDropdown_SelectedIndexChanged" AutoPostBack="true"> <ItemTemplate> <table style="width: 275px" cellspacing="0" cellpadding="0"> <tr> <td style="width: 260px;"> <strong><%# DataBinder.Eval(Container, "Attributes['Title']")%></strong> </td> </tr> <tr> <td style="width: 260px;"> <i><%# DataBinder.Eval(Container, "Attributes['Description']")%></i> </td> </tr> </table> </ItemTemplate></telerik:RadComboBox>