Skip to main content

PositionConfigBuilder.Collision(PositionResolveCollision, PositionResolveCollision) Method

Mirrors the client-side collision option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public PositionConfigBuilder Collision(
    PositionResolveCollision h,
    PositionResolveCollision v
)

Parameters

Name Type Description
h PositionResolveCollision

How to resolve horizontal collisions.

v PositionResolveCollision

How to resolve vertical collisions.

Returns

Type Description
PositionConfigBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().Popover()
    .Position(position => position
        .At(PositionResolveCollision.Fit, PositionResolveCollision.Fit)
    )
)
See Also