PDA

View Full Version : [CLOSED] disabling rowexpander collapsible from code behind



redi
Oct 03, 2014, 8:40 AM
Hi,
How to disable rowexpander collapsible from code behind?

Daniil
Oct 03, 2014, 10:04 AM
Hi @redi,

If "collapsing" is disabled, then the expander rows cannot be collapsed - is that what you mean?

redi
Oct 10, 2014, 8:27 AM
Yes, because I want to add a condition when a parent row doesn't have any child, the collapsible button won't show.

Daniil
Oct 10, 2014, 2:01 PM
There is no way to disable it from code behind, but you can set up a RowExpander's Renderer and return false from there for rows that you don't want to appear with a "+/- thing. Parameters passed to a Renderer should be good enough to determine you should false or not.