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

Dataform custom editor doesn't support dynamic source #724

Open wanpeng2008 opened 6 years ago

wanpeng2008 commented 6 years ago

Copy from https://discourse.nativescript.org/t/binding-tap-event-to-raddataform-controls/4317

The custom editor works well if the dataform source is configured staticly.

    person: any = {
        "name": "John",
        "age": 23,
        "email": "john@company.com",
        "city": "New York",
        "street": "5th Avenue",
        "streetNumber": 11
    };

    constructor(private page: Page) {
        page.on("loaded", this.onPageLoaded, this);
    }

https://play.nativescript.org/?template=play-ng&id=HmW2JH&v=4

But it can't work in following dynamic source scenario

    person: any;
    constructor(private page: Page) {
        page.on("loaded", this.onPageLoaded, this);
        setTimeout(() => {
            this.person = {
                "name": "John",
                "age": 23,
                "email": "john@company.com",
                "city": "New York",
                "street": "5th Avenue",
                "streetNumber": 11
            };
        }, 5000)
    }

https://play.nativescript.org/?template=play-ng&id=7oIa0P&v=2

OskrLrba commented 5 years ago

I'm testing nativescript and in my scenario, I get the model at run time. I send a request to the server and it returns the list of fields and their values; I don't know the name of the fields, types and values until the response of a http get. Is dataform ready for this?

wkjesus commented 4 years ago

Any solution for this issue ?