首页
\
问答
\
在GWT ScrollPanel中使用MouseWheel进行水平滚动?(Horizontal Scroll with MouseWheel in GWT ScrollPanel?)
在GWT ScrollPanel中使用MouseWheel进行水平滚动?(Horizontal Scroll with MouseWheel in GWT ScrollPanel?)
我有一个带有水平滚动条的GWT ScrollPanel,即
overflow-y: scroll;
如何在滚动条上绑定MouseWheel事件以在移动鼠标滚轮时执行水平滚动?
I have a GWT ScrollPanel with a horizontal scrollbar, i.e.
overflow-y: scroll;
How can I bind a MouseWheel event on the scroll bar to perform a horizontal scrolling when the mouse wheel is moved?
原文:https://stackoverflow.com/questions/21286650
更新时间:2024-04-11 22:04
最满意答案
你可以使用这段代码:
var query = from d in datacontext.sample where (TBoxFName.Text=="" || d.FirstName.Contains(TBoxFName.Text.Trim())) &&(TBoxLName.Text == "" || d.LastName.Contains(TBoxLName.Text.Trim())) &&(TBoxFatherName.Text == "" || d.FatherName.Contains(TBoxFatherName.Text.Trim())) && (TBoxPriceDebt.Text == "" || d.DebtPrice.ToString().Contains(TBoxPriceDebt.Text.Trim())) && (CBoxBranch.Text == "" || d.BranchName.Contains(CBoxBranch.Text.Trim())) &&(TBoxDebt.Text == "" || d.DebtId.Contains(TBoxDebt.Text.Trim())) &&(TBoxMeliCode.Text == "" || d.MeliCode.Contains(TBoxMeliCode.Text.Trim())) select d;
you can use this code :
var query = from d in datacontext.sample where (TBoxFName.Text=="" || d.FirstName.Contains(TBoxFName.Text.Trim())) &&(TBoxLName.Text == "" || d.LastName.Contains(TBoxLName.Text.Trim())) &&(TBoxFatherName.Text == "" || d.FatherName.Contains(TBoxFatherName.Text.Trim())) && (TBoxPriceDebt.Text == "" || d.DebtPrice.ToString().Contains(TBoxPriceDebt.Text.Trim())) && (CBoxBranch.Text == "" || d.BranchName.Contains(CBoxBranch.Text.Trim())) &&(TBoxDebt.Text == "" || d.DebtId.Contains(TBoxDebt.Text.Trim())) &&(TBoxMeliCode.Text == "" || d.MeliCode.Contains(TBoxMeliCode.Text.Trim())) select d;
相关问答
更多-
你可以使用这段代码: var query = from d in datacontext.sample where (TBoxFName.Text=="" || d.FirstName.Contains(TBoxFName.Text.Trim())) &&(TBoxLName.Text == "" || d.LastName.Contains(TBoxLName.Text.Trim())) ...
-
LINQ查询字段
动态?(LINQ Query Field [2023-02-05]Dynamic?) 使用通用方法。 就像是: public void QueryOrderBy(T myValue) { var query = table.AsEnumerable() .OrderBy(x => x.Field (myValue)) .CopyToDataTable(); } Use a generic method. Something like: public void QueryOrderBy ... -
LINQ按文本搜索(LINQ search by text)[2023-09-26]
var search = from a in Context.data where string.IsNullOrWhitespace(txtKeyword.Text) || a.Name.Contains(txtKeyword.Text.Trim()) select a; var search = from a in Context.data wher ... -
DefaultIfEmpty具有带“默认”值的重载。 然后通过在DefaultIfEmpty之前添加Select ,您不需要检查null或创建s “空”实例 Dim avg = MyList.Where(Function(s) Month(s.Histo_Date) = Month(Date_Reference) - 1 AndAlso Year(s.Histo_Date) = Year(Date_Reference)). Select(Function(s) s.Nb_D ...
-
Linq查询,如果搜索项为null或为空,则返回所有记录(Linq query that returns all records if the search item is null or empty)[2022-04-22]
LINQ是可组合的,因此您可以非常简单地执行此操作: IQueryableresults = _entities.Schedules; // Only filter on description if a search term has been given if (!string.IsNullOrEmpty(description)) { results = results.Where(s => s.Description.ToLowe ... -
var results = db.KS.Where(x => listOfSearch.Any(item => x.Title.Contains(item))); 更新 : 对于LinqToSql: var titles = db.KS.Select(item => item.Title) .AsEnumerable() .Where(title => listOfSearch.Any(word => title.Contains(word))); var results = db.KS ...
-
正如您的评论中所述,您想要查找是否至少有一个表的结果,您可以使用Any() : var radif = "0011395000505000821"; var found = (from a in bas.ChekedList where a.Radifkolsal == radif || bas.PrioritedList.Any(p => p.Radifkolsal == radif) || bas.IssuedBills.An ...
-
问题是&& ; 您要求SearchKeyByName始终不为空/ null。 如果SearchKeybyName为null或缺失,您的过滤器应保留所有记录,否则在搜索中使用它: SearchKeyByName.IsNullOrEmpty() || (rest of it) SearchKeyByName.IsNullOrEmpty() || (rest of it) 。 但在这种情况下,您甚至可以通过使用空合并来简化它,因为每个字符串都以空字符串开头: var ItemsList2 = from e ...
-
如何在嵌套的linq查询字段中搜索一组单词(how to do search of a group of words in a nested linq query fields)[2021-12-26]
如果要SubGroups字段执行相同的搜索,则必须使用“ All或“ Any具体取决于您是否希望子组中的所有项目匹配或至少一个。 query = query.Where( x => searchArray.All( y => x.GroupName.Contains(y) || x.Description.Contains(y) || x.SubGroups.Any(sg => sg.GroupName.Co ... -
动态LINQ在哪里查询(Dynamic LINQ where query)[2024-02-13]
您可以尝试使用.StartsWith || .EndsWith || .Contains .StartsWith || .EndsWith || .Contains 这可能会解决问题。 You can try using .StartsWith || .EndsWith || .Contains That might solve the problem.