locked
Remove duplicate records in search dropdown list on list page RRS feed

  • Question

  • User-1556920591 posted

    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.

    Thursday, November 8, 2012 1:35 AM

Answers

  • User-1556920591 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2012 3:00 AM
  • User-330204900 posted

    I should really add a trim to that after splitting.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2012 6:05 PM

All replies

  • User-1556920591 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2012 3:00 AM
  • User-330204900 posted

    I should really add a trim to that after splitting.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2012 6:05 PM
  • User3866881 posted

    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.

    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!

    Thursday, November 8, 2012 8:27 PM