jQWidgets Forums

jQuery UI Widgets Forums Angular problem: jqxInput Two Way Data Binding

This topic contains 4 replies, has 3 voices, and was last updated by  SiJayBe86 6 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • problem: jqxInput Two Way Data Binding #101873

    satthumazao
    Participant

    I have problems displaying data in jqxInput
    – The data is not displayed in the jqxInput tag–>FALSE;But the data is still displayed on the fieldset tag–>TRUE
    – When I change the value in the jqxInput tag, the tag value fieldset changes accordingly -> TRUE
    App.component.html
    <fieldset style=”width: 300px; margin-top:1em; margin-bottom: 1em; border: 1px solid lightgrey;”>
    The selected country is {{ country | json }}
    </fieldset>
    <jqxInput [(ngModel)]=”country”
    [width]=”200″ [height]=”25″
    [minLength]=”1″ [items]=”3″>
    </jqxInput>
    App.component.ts
    import { Component } from ‘@angular/core’;
    @Component({
    selector: ‘app-root’,
    templateUrl: ‘./app.component.html’
    })
    export class AppComponent {
    country = ‘testValue Country’;
    }

    problem: jqxInput Two Way Data Binding #101889

    Martin
    Participant

    Hello satthumazao,

    I have tested the example. Thank you for your feedback.
    If you need to have an initial value set you will have to do it in the ngAfterViewInit lifecycle.

    Please, look at the following Example.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    problem: jqxInput Two Way Data Binding #103065

    SiJayBe86
    Participant

    Hello!

    Are there plans to change this to the default behavior of Angular, so binding the initial value is possible without ngAfterViewInit?

    With kind regards,
    Christian

    problem: jqxInput Two Way Data Binding #103072

    Martin
    Participant

    Hello Christian,

    This issue is already fixed.
    You can check the Example. It is now updated.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    problem: jqxInput Two Way Data Binding #103155

    SiJayBe86
    Participant

    Hi Martin!

    Thanks for the info! You guys are awesome! 🙂 This was the only issue that kept me from placing an order for your components.

    With kind regards,
    Christian

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.