iT邦幫忙

0

jqGrid 搜尋與 LINQ 自訂擴充的問題

上週把問題發在MS討論區
但是沒人回答
不知在iThelp是否有相關高手?

關於LinqExtensions自訂搜尋條件的問題
http://social.msdn.microsoft.com/Forums/zh-TW/238/thread/09ae80d2-c189-41e6-94d8-8bafc9d3ce1c

在codeproject那邊的範例只有實作, 等於/不等於/包含, 這3種
我再加上了 小於/小於等於/大於/大於等於, 這4種
但是還有幾個不知道怎麼實作它們? 有人知道怎麼寫嗎?
開始於/不開始於/在其中/不在其中/結束於/不結束於/Null/不Null

因為你關了,解答... XD
所以我把 Sample Code 回在 MSDN
http://social.msdn.microsoft.com/Forums/zh-TW/238/thread/09ae80d2-c189-41e6-94d8-8bafc9d3ce1c
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

4
最佳解答

不開始於?
不結束於?
@@

player iT邦大師 1 級 ‧ 2013-05-28 19:00:30 檢舉

odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'],

http://stackoverflow.com/questions/5500805/asp-net-mvc-2-0-implementation-of-searching-in-jqgrid
I Find the ref-page by stackoverflow.com
I think it can give some help...

player iT邦大師 1 級 ‧ 2013-05-30 16:14:54 檢舉

雖然寫法與我想要的方式有點不同
不過還是先謝了你的回答
我再努力看看, 能不能改寫過去

我要發表回答

立即登入回答