Hello Everyone,
I have encountered this issue recently:
By default SearchToolbar performs “contains” search which is good but when LoadOnce is set to True the SearchToolbar switches to “BeginsWith” which is an issue for the users. I tried to set the SearchToolbarOperation:”contains” manually for that particular column but it doesn't works.
Trirand team can you please look at this problem.
Thanks in advance.
Regards,
Piyush
Edit:
Forgot to add additional information:
ASP.NET Webforms Version 4.5.2
Visual Studio 2010
asp code
page behind
protected void Page_Load(object sender, EventArgs e)
{
//ClientScript.RegisterClientScriptBlock(GetType(), “script”, “returnVal();”, true);
DataTable dt = new DataTable();
DataColumn name = new DataColumn(“Name”, typeof(string));
DataColumn age = new DataColumn(“Age”, typeof(Int32));
dt.Columns.Add(name);
dt.Columns.Add(age);
Random rnd = new Random();
string[] names = new string[13] { “aaron”, “abdul”, “abe”, “abel”, “abraham”, “adam”, “adan”, “adolfo”, “adolph”, “adrian”,”abby”, “abigail”, “adele”};
int index;
for (int i = 0; i < 20; i++)
{
var row = dt.NewRow();
index = rnd.Next(0,13);
row[name] = names[index];
row[age] = rnd.Next(20, 28);
dt.Rows.Add(row);
}
JQGrid1.DataSource = dt;
JQGrid1.DataBind();
}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top