Segment in DataForm

Thread is closed for posting
2 posts, 0 answers
  1. Jeff
    Jeff avatar
    12 posts
    Member since:
    Apr 2014

    Posted 24 Jul 2016 Link to this post

    IN iOS, segment can be set by segment1.selectedSegmentIndex = 0; 

    How set the segment in DataForm 

  2. Adrian
    Adrian avatar
    174 posts

    Posted 27 Jul 2016 Link to this post

    Hi, Jeff,

    Thank you for contacting us.

    Currently there is an issue with changing the selectedIndex property of the segmented editor. It will be addressed in a future release. I also updated your Telerik points for reporting this. Currently to achieve what you need to call updateControlValue of the editor after you change the selectedIndex. Consider the code below:
    - (void)dataForm:(TKDataForm *)dataForm updateEditor:(TKDataFormEditor *)editor forProperty:(TKEntityProperty *)property
        if ([ isEqualToString:@"protocol"]) {
            ((TKDataFormSegmentedEditor*)editor).selectedIndex = 2;
            [editor updateControlValue];

    I hope this helps.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top