I have a webpart which I extend and i would like to programmatically add extra fetched properties to those that already exist, but I cannot succeed in that, maybe you could be of help to me.
So here it the piece of code i have:
public MyCustomWebpart()
{
this.SelectColumns = AddExtraFetchedProperties(this.SelectColumns);
}
Note: AddExtraFetchedProperties this method add few extra columns to the xml.
But the problem is that on the time I'm in constructor the SelectColumns or PropertiesToRetrieve properties are empty, and I'm not sure what is the difference between those 2. If in constructor i pass just a correct xml with the properties it is ok, it works fine, BUT i want to ADD extra properties to existing one, and not override everything.
Any idea how to do that?
PS: i tried to set it in onInit or onprerender method but no real success in it, it is still being overwritten by some default values ...
