I've found an issue with this recursive call. This only works if the grid property exists on the parent document type and not the child. If the child has the same grid property, then the recursive call will not work even if the child's grid is empty, which is exactly when I would want to defer to a parent's grid.
GetGridHtml Recursive Call?
I want to use the current or parent's DocType grid property in a view.
Is there a way to make a call to GetGridHtml recursively, similar to GetPropertyValue's ability to pass a boolean as the second paramater?
Hi Matthew,
In case that you donĀ“t have got it to work yet, or perhaps it can helps others :)
Then you can do something like this.
Hope this helps,
/Dennis
Thanks, Dennis.
That worked! I was also able to drop the 'recurse:' text as Resharper informed me it was redundant. Here's the call I went with:
I've found an issue with this recursive call. This only works if the grid property exists on the parent document type and not the child. If the child has the same grid property, then the recursive call will not work even if the child's grid is empty, which is exactly when I would want to defer to a parent's grid.
is working on a reply...