Thank you for writing. Indeed having UILabels to display the property value when in read only mode is a nice suggestion. I have logged it in our feedback portal
. Currently, as we don't have such editor, you can use the TKDataFormCustomEditor
, which allows you to choose the type of UIView that is used as editor:
].editorClass = [TKDataFormCustomEditor
Then in the setupEditor method of the TKDataFormDelegate
you can assign a delegate to the editor:
)dataForm:(TKDataForm *)dataForm setupEditor:(TKDataFormEditor *)editor forProperty:(TKEntityProperty *)property
TKDataFormCustomEditor* customEditor = (TKDataFormCustomEditor*)editor;
And provide an UILabel as UIView in the proper TKDataFormCustomEditorDelegate
-(UIView *)editorWillCreateView:(TKDataFormCustomEditor *)editor
UILabel* label = [[UILabel alloc] init];
-(NSObject *)editorWillReturnValue:(TKDataFormCustomEditor *)editor editorView:(UIView *)view
)editor:(TKDataFormCustomEditor *)editor shouldApplyValue:(NSObject *)value editorView:(UIView *)view
((UILabel*)view).text = (NSString*)value;
Let us know if you need further assistance.
P.S. I have updated your Telerik points for the given suggestion. Thank you!
Telerik by Progress
Want to build beautiful Android apps as well? Check out UI for Android
which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.