ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadDataForm - need some event to fire on user text input #1359

Open Whip opened 4 years ago

Whip commented 4 years ago

Tell us about the problem

I have a AutoCompleteInline field to show suggestions to the user as the user types but the suggestions are loaded through an API and can't be preloaded. Problem is when I type in the field no event is fired upon which I could call the API and load the results.

The propertyValidate and propertyCommitted events fire when I select an item from the list. On all other types of editors these events fire when the user types in.

Which platform(s) does your issue occur on?

_Android

Please provide the following version numbers that your issue occurs with:

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<df:RadDataForm id="orderForm" source="{{ formData }}" validationMode="Immediate" propertyValidate="dfPropertyValidate" propertyCommitted="dfPropertyCommitted">
      <df:RadDataForm.properties>
        <df:EntityProperty name="name" displayName="Name" autoCompleteDisplayMode="Plain" valuesProvider="{{ distributorNames }}" required="true" hintText="Search by Distributor/Firm Name">
          <df:EntityProperty.editor>
            <df:PropertyEditor type="AutoCompleteInline" />
          </df:EntityProperty.editor>
        </df:EntityProperty>

        <df:EntityProperty name="email" displayName="Email">
          <df:EntityProperty.editor>
            <df:PropertyEditor type="Email" />
          </df:EntityProperty.editor>
        </df:EntityProperty>
      </df:RadDataForm.properties>
    </df:RadDataForm>
exports.dfPropertyValidate = function(args){
    console.log('Validate: '+args.propertyName); //for email,fires on character input; for autocompleteinline, fires on selecting an item from the list
}

exports.dfPropertyCommitted = function(args){
    console.log('Commit: '+args.propertyName);
}