RTL support

This feature allows you to change the alignment of the AutoComplete textbox widget from left-to-right to right-to-left (RTL). The custom template AutoComplete textbox also supports RTL. 

Enabling RTL Support

The following steps explain how you can enable the right-to-left property for an AutoComplete textbox.

  1. In the View page, define the AutoComplete control and enable the RTL property.
  • cshtml
  • @*Refer to the DataSource defined in Local Data binding Step 1 *@
    
        <ej-autocomplete id="autocomplete" datasource="ViewBag.datasource" watermark-text="Select a car" enable-rtl="true">
                    <e-autocomplete-fields text="Text" key="UniqueKey" />
        </ej-autocomplete>

    The following image is the output for AutoComplete when EnableRTL is set to “true”.

    AutoComplete template with RTL support