On one of the columns say "Brand", i have implemented below code:-
[UIHint("ValuesList", null, "ValueList", "A, B, C, D")] // used to display the columns as dropdown during insertion of new record [FilterUIHint("WhereDropdownList")] // used to display the column as dropdown for search public Object Brand { get; set; }
and in tables, for brand we have record like B, C
My issue is that because of two attributes, for search the brand dropdown list displaying the values twice like "B, C, A, B , C, D"
WhereDropdownlist filter displays the record from table only. How can i remove the values which are coming from UiHint Attribute.
Member
2 Points
15 Posts
Remove duplicate records in search dropdown list on list page
Nov 08, 2012 01:35 AM|nkhurmi|LINK
Hi,
On one of the columns say "Brand", i have implemented below code:-
[UIHint("ValuesList", null, "ValueList", "A, B, C, D")] // used to display the columns as dropdown during insertion of new record
[FilterUIHint("WhereDropdownList")] // used to display the column as dropdown for search
public Object Brand { get; set; }
and in tables, for brand we have record like B, C
My issue is that because of two attributes, for search the brand dropdown list displaying the values twice like "B, C, A, B , C, D"
WhereDropdownlist filter displays the record from table only. How can i remove the values which are coming from UiHint Attribute.
Member
2 Points
15 Posts
Re: Remove duplicate records in search dropdown list on list page
Nov 08, 2012 03:00 AM|nkhurmi|LINK
I got the issue. In UIHint attribute when i was specifying the values it was taking space. That's why two times the values were coming.
All-Star
17916 Points
5681 Posts
MVP
Re: Remove duplicate records in search dropdown list on list page
Nov 08, 2012 06:05 PM|sjnaughton|LINK
I should really add a trim to that after splitting.
Always seeking an elegant solution.
All-Star
94130 Points
18109 Posts
Re: Remove duplicate records in search dropdown list on list page
Nov 08, 2012 08:27 PM|Decker Dong - MSFT|LINK
Hello,
I come here to close the issuse. If you have futher information, I think you can just tell us by creating another new thread.
Reguards!