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.
nkhurmi
Member
6 Points
16 Posts
Remove duplicate records in search dropdown list on list page
Nov 08, 2012 05:35 AM|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.
nkhurmi
Member
6 Points
16 Posts
Re: Remove duplicate records in search dropdown list on list page
Nov 08, 2012 07:00 AM|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.
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: Remove duplicate records in search dropdown list on list page
Nov 08, 2012 10:05 PM|LINK
I should really add a trim to that after splitting.
Always seeking an elegant solution.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Remove duplicate records in search dropdown list on list page
Nov 09, 2012 12:27 AM|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!