Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Unassigned: Inconsistency between Simple and Complex in SPFilterDropdown [10157]

$
0
0
This is in both SPFilterDropdown and SPCascadeDropdowns. The behavior between a simple and complex dropdown if different for picking the selected option.

For a simple dropdown it uses $(this).attr("ows_ID") to decide the selected option.
```
var selected = ($(this).attr("ows_ID") === columnSelectSelected[0]) ? " selected='selected'" : "";
```

For a complex (and Multi) it uses the variable "thisOptionId" to decide the selected option.
```
if(thisOptionId === columnSelectSelected[0]) {
.Obj.attr("value", thisOptionValue);
}
```

In the case where thisOptionId != $(this).attr("ows_ID") you get different behavior. For my purposes it would be great if the simple case also used "thisOptionId".

thanks
Ben
Comments: Ben: Can you explain a bit more about this? M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>