Foreign key with the "values" property of the column

3 posts, 0 answers
  1. Todd
    Todd avatar
    26 posts
    Member since:
    Sep 2012

    Posted 18 Oct 2012 Link to this post

    I see the grid demo has a "foreign key" option where the "values" property of the grid column can point to a data-source, and will automatically build a drop-down widget for that column.  I also saw in a forum post where Telerik says the values object must have 2 properties (value and text).

    The grid documentation page mentions nothing about the values property.  Is it documented anywhere???
  2. leniency
    leniency avatar
    10 posts
    Member since:
    Jan 2012

    Posted 23 Oct 2012 Link to this post

    It doesn't seem to be documented anywhere yet, unfortunetly.

    I have a simple example here demonstrating foreign key columns, as well as a separate issue with group headers and foreign key columns.  Namely, the text part isn't used in the group header.  Also, sorting runs by the value part, not text, which can lead to unexpected results.

    However, the example does show how filtering will automatically populate the available options from the column's values list.
  3. Kendo UI is VS 2017 Ready
  4. Todd
    Todd avatar
    26 posts
    Member since:
    Sep 2012

    Posted 23 Oct 2012 Link to this post

    Ahh, you're right...I see that grouping problem.  With Telerik, the squeaky wheel usually gets the grease, so this will likely stay broken unless you push for it to be fixed.

    Not documenting the foreign key feature is bad enough, but now that I think about it, even if they had documented it, it would have been a tiny one-liner about the feature....it would have said nothing about sort order or any detail.
Back to Top