You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a lookup editor and it is connected to a view that has criteria and the mode is not search. The criteria is not applied.
So in the class XafBootstrapLookupPropertyEditor I have replaced the following code
in my test this works fine I have NOT added this to the code on Github, that is something for you to do.
Old Code :
if (!IsSelector)
{
cs = Helper.CreateCollectionSource(Helper.ObjectSpace.GetObject(CurrentObject));
if (Helper.EditorMode == LookupEditorMode.Auto || Helper.EditorMode == LookupEditorMode.AllItemsWithSearch)
IsSelector = cs != null && cs.List.Count > 20;
}
New code:
if (!IsSelector)
{
cs = Helper.CreateCollectionSource(Helper.ObjectSpace.GetObject(CurrentObject));
if (cs != null && Model.View is IModelListView && !string.IsNullOrEmpty(((IModelListView)Model.View).Criteria))
cs.Criteria.Add("ViewCriteria",CriteriaOperator.Parse(((IModelListView)Model.View).Criteria));
if (Helper.EditorMode == LookupEditorMode.Auto || Helper.EditorMode == LookupEditorMode.AllItemsWithSearch)
IsSelector = cs != null && cs.List != null && cs.List.Count > 20 ;
}
The text was updated successfully, but these errors were encountered:
Fixed issues: #9, #10 (implemented focus logic), #18, #19, #15, #21
New features:
- New kind of menu
- Support for awesome-icons set
- Improve stability and functionality
- Support for DevExpress 15.2 lib.
Known issues:
- With new style DevExpress included jQuery by default. So, in
XAFBootstrap it has been disabled. But if you use old templates - you
need to include it (put off commented rows in XAFBootstrap with jQuery).
Or you can enable html5 support in web.config of your web project -
devExpress/settings section (it has to be doctypeMode="Html5")
If you have a lookup editor and it is connected to a view that has criteria and the mode is not search. The criteria is not applied.
So in the class XafBootstrapLookupPropertyEditor I have replaced the following code
in my test this works fine I have NOT added this to the code on Github, that is something for you to do.
Old Code :
if (!IsSelector)
{
cs = Helper.CreateCollectionSource(Helper.ObjectSpace.GetObject(CurrentObject));
if (Helper.EditorMode == LookupEditorMode.Auto || Helper.EditorMode == LookupEditorMode.AllItemsWithSearch)
IsSelector = cs != null && cs.List.Count > 20;
}
New code:
if (!IsSelector)
{
cs = Helper.CreateCollectionSource(Helper.ObjectSpace.GetObject(CurrentObject));
if (cs != null && Model.View is IModelListView && !string.IsNullOrEmpty(((IModelListView)Model.View).Criteria))
cs.Criteria.Add("ViewCriteria",CriteriaOperator.Parse(((IModelListView)Model.View).Criteria));
if (Helper.EditorMode == LookupEditorMode.Auto || Helper.EditorMode == LookupEditorMode.AllItemsWithSearch)
IsSelector = cs != null && cs.List != null && cs.List.Count > 20 ;
}
The text was updated successfully, but these errors were encountered: