ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.JsonNet Namespace / JsonSetting Class / IsJavascriptFormat Property

In This Topic
    IsJavascriptFormat Property
    In This Topic
    Gets or sets a value indicates whether to serialize to javascript format.
    Syntax
    'Declaration
     
    Public Property IsJavascriptFormat As Boolean
    public bool IsJavascriptFormat {get; set;}
    Remarks
    If some property type is string in server side, but its type is Function in client side, when IsJavascriptFormat is set to true, it will be serialzed to a string without quote. For example, the value of property A is "btnClick", it will be serialized to "{a: btnClick}". Otherwise, it will be serialized to "{a: 'btnClick'}". Normally when the page is loaded in the first time and the properties are transfered to the client side, this property should be set to True. For callback, it will be set to false.
    See Also