still torn apart but getting there at server, no client work done yet at all
This commit is contained in:
@@ -30,7 +30,7 @@ namespace AyaNova.DataList
|
||||
public long CurrentUserId { get; set; }
|
||||
|
||||
public List<string> DefaultColumns { get; set; }
|
||||
public List<string> DefaultSortBy { get; set; }
|
||||
public Dictionary<string, string> DefaultSortBy { get; set; }
|
||||
|
||||
//set defaults if not provided in listOptions
|
||||
public void SetListOptionDefaultsIfNecessary(DataListOptions listOptions)
|
||||
@@ -42,18 +42,18 @@ namespace AyaNova.DataList
|
||||
}
|
||||
|
||||
|
||||
//return array of field keys in list view
|
||||
public List<string> GetFieldListFromListView(JArray listViewArray)
|
||||
{
|
||||
// [{key:"COLUMN UNIQUE KEY ID",sort:"-" or "+",filter:{any:true/false,items:[{FILTER OBJECT SEE BELOW}]} }, {key:"second column unique key"},{...etc...}]
|
||||
List<string> ret = new List<string>();
|
||||
for (int i = 0; i < listViewArray.Count; i++)
|
||||
{
|
||||
var cm = listViewArray[i];
|
||||
ret.Add(cm["fld"].Value<string>());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
// //return array of field keys in list view
|
||||
// public List<string> GetFieldListFromListView(JArray listViewArray)
|
||||
// {
|
||||
// // [{key:"COLUMN UNIQUE KEY ID",sort:"-" or "+",filter:{any:true/false,items:[{FILTER OBJECT SEE BELOW}]} }, {key:"second column unique key"},{...etc...}]
|
||||
// List<string> ret = new List<string>();
|
||||
// for (int i = 0; i < listViewArray.Count; i++)
|
||||
// {
|
||||
// var cm = listViewArray[i];
|
||||
// ret.Add(cm["fld"].Value<string>());
|
||||
// }
|
||||
// return ret;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user