Segment in DataForm

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    7 posts
    Member since:
    Apr 2014

    Posted 24 Jul Link to this post

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

    How set the segment in DataForm 

  2. Adrian
    Adrian avatar
    159 posts

    Posted 27 Jul 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
  3. DevCraft R3 2016 release webinar banner
Back to Top