To make a long story short (too late), we have a dropdownlist that is populated through a list of items. We want to use this dropdownlist to filter the list in a data view web part.
This works great, except on initial page load. Initially on page load, the filtering doesn't happen unless we set the default value of our parameterbindering to something. Right now the binding is:
<ParameterBinding Name="name" Location="Control(DropDownList)" DefaultValue="" />
Once you click on another item on the dropdownlist the filtering occurs and it posts back with the correct values. But if you don't feed it a hardcoded default, then it won't filter initially on pageload.
This would be pretty simple if I was able to do server side code (call the postback initially and let it filter itself), but I'm not. The only access I have is client side code or anything I can do in Designer that doesn't involve Server Side Code (ASP, C# is out). Also I'm using Sharepoint 2007.
Is there some way to force the filter to happen on page load? Or can I set the DefaultValue through a javascript function (would be simple enough to place the value of what I want in a hidden input and access it through there)?
I'm also up for any additional ideas! Thanks.