TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mutlu Duman
NA
180
5.5k
Advanced Filter
Dec 19 2019 3:01 AM
if
(colFilter.Contains(
" IN "
) ==
true
)
{
var temp1 = colFilter.Trim().Split(
new
string
[] {
"IN"
}, StringSplitOptions.None);
colName = GetStringBetweenChars(temp1[0],
'['
,
']'
);
var filterValsList = temp1[1].Split(
','
);
newColFilter +=
string
.Format(
"({0} != null && ("
, colName);
string
orOperator =
""
;
foreach
(var filterVal
in
filterValsList)
{
double
tempNum = 0;
if
(Double.TryParse(filterVal,
out
tempNum))
newColFilter +=
string
.Format(
"{0} {1} = {2}"
, orOperator, colName, filterVal.Trim());
else
newColFilter +=
string
.Format(
"{0} {1}.Contains({2})"
, orOperator, colName, filterVal.Trim());
orOperator =
" OR "
;
}
newColFilter +=
"))"
;
}
My Friends, When I Enter As Male Female I Have A Problem With Filtering Sex
Reply
Answers (
1
)
Web api and Ajax.
Breaking of video into Multiple parts