Binding Tap event to Label in RadDataForm


I am trying to bind a tap event to Label control of RadDataForm but no luck as I am not aware of Objective C. need help urgently.


I guess we discussed same in another thread. You can’t bind events with DataForm components like you do with NativeScript core components. You can add listeners natively once a editor is created or the easiest way is to inject a custom control.


Thanks, yeah that is what I mean, I was successful in adding Tap listener to RadDataFrom’s Label element using native android code (see example below), want same functioanlity on ios platform. Custom control will be an over kill and out of question.

    const that = this;
        editor.getEditorView().setOnClickListener(new android.view.View.OnClickListener({
          onClick(view: android.view.View) {
            that.handleTap(view, args.object);


Make sure you run this set of code in iOS only.

class TapHandler extends NSObject {

    private callback: Function;

    static initWithCallback(callback) {
        const tapHandler = as TapHandler;
        tapHandler.callback = callback;
        return tapHandler;

    public tap( @ObjCParam(UITapGestureRecognizer) sender: UITapGestureRecognizer) {
   const tapHandler = TapHandler.initWithCallback(() => {
    editor.addGestureRecognizer(UITapGestureRecognizer.alloc().initWithTargetAction(tapHandler, "tap"));
    (<any>editor)._tapHandler = tapHandler;

RadDataForm put tap event to label of a field

how to use this in nativescript angular project?