SchedulerResourceBuilder.FieldExpr(JS) Method
In This Article
The name of the appointment object field that specifies a resource of this kind. Mirrors the client-side fieldExpr option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public SchedulerResourceBuilder FieldExpr(
JS value
)
#Parameters
Name | Type | Description |
---|---|---|
value | JS | A Java |
#Returns
Type | Description |
---|---|
Scheduler |
A reference to this instance after the method is called. |
#Remarks
Use the new JS() expression to set the option’s value.
<script>
var myValue = ...;
</script>
@(Html.DevExtreme().Scheduler()
.Resources(resources => {
resources.Add().FieldExpr(new JS("myValue"));
})
)
See Also