Lookup Field with Picker V2.56 Sort

Jan 26, 2011 at 8:44 AM

Hi Thanks a lot for this great tool

I have one issue regarding the sort (by default sorted by ID)

My client requirements need the list sorted alphabetically

So can u update the code in the Query?

query.ViewAttributes =

 

"Scope=\"Recursive\"";

query.Query =

string.Format("<Where><{0}><FieldRef ID=\"{1}\"/><Value Type=\"{2}\">{3}</Value></{0}></Where><OrderBy Override=\"TRUE\"><FieldRef Name=\"{5}\"/></OrderBy>"

, searchOperator ??

"Eq"

, searchField.Id.ToString()

, valueType

, search

, searchField.Id.ToString());

 

Thanks