Data Form Value Provider Questions

5 posts, 0 answers
  1. jon
    jon avatar
    24 posts
    Member since:
    Jun 2009

    Posted 08 Jan Link to this post

    Is there there a way to do a drill down into multiple levels in a values provider? For example, the values provider would show a cell with the value 'Colors' and if they selected 'Colors' it would push to another values provider with color names (red, blue, etc.)?

    Also, is there a way to dynamically hide/show properties in the data form based on the values selected in a values provider and when they change? 

  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 11 Jan Link to this post

    Hi, Jon,

    Thank you for writing.

    1. Currently TKDataForm does not support editing properties that are complex objects. Implementing such functionality is in our future plans. This is logged in our feedback portal. You can follow the status of the feature there.

    2. You can achieve such scenario by implementing DidEditProperty method of TKDataFormDelegate and set the Hidden property of TKEntityProperty. Then you should call reloadData on TKDataForm to hide the editors. Please refer to the code below:
    public override void DidEditProperty (TKDataForm dataForm, TKEntityProperty property)
    {
        if (property.Name == "Hide" && ((NSNumber)property.ValueCandidate).BoolValue == true) {
            foreach (TKEntityProperty prop in this.owner.dataSource.Properties) {
                if (prop.Name != "Hide") {
                    prop.Hidden = true;
                }
            }
            dataForm.ReloadData();
        }
    }

     I hope this helps. Should you need further assistance, I will be glad to help.

    Regards,
    Adrian
    Telerik
    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 banner
  4. jon
    jon avatar
    24 posts
    Member since:
    Jun 2009

    Posted 11 Jan in reply to Adrian Link to this post

    Can a values provider be separated into groups? like the data forms can be?
  5. jon
    jon avatar
    24 posts
    Member since:
    Jun 2009

    Posted 11 Jan in reply to Adrian Link to this post

    And can more than one selection be done with it?
  6. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 13 Jan Link to this post

    Hi, Jon,

    Currently TKDataForm does not support multiple selection and grouping of values. These features are reasonable and I logged them in our feedback portal. You can follow their status here and here. I also updated your Telerik points accordingly.

    If you have further questions, do not hesitate to contact us.

    Regards,
    Adrian
    Telerik
    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
DevCraft banner