Request: Add generics support to wijmo typings files

Posted by: russell-champoux on 14 September 2017, 12:04 pm EST

  • Posted 14 September 2017, 12:04 pm EST

    I would find it extremely helpful if wijmo added optional support for generics when using wijmo TypeScript types.

    For example, I would like to be able to say

    var grid: wijmo.grid.FlexGrid<Employee>;


    or

    var row: wijmo.grid.Row<Fruit>;

    and access the strongly-typed members (instead of a generic

    any
    ) when accessing the underlying
    dataItem
    , etc values

    eg https://www.typescriptlang.org/docs/handbook/generics.html

  • Posted 14 September 2017, 12:05 pm EST

    Hi,

    Thank you for the suggestion.

    We have created an enhancement request for this feature with tracking id 264700. If it is found feasible, this will be included in the future releases build.

    Thanks,

    Manish Kumar Gupta

  • Posted 14 September 2017, 12:05 pm EST

    Thank you for your response, Manish. Keep in mind that the two examples I gave above are not exhaustive. There are a number of other places in the Wijmo typings with underlying ‘dataItems’ values marked as ‘any’ that I believe could be improved with generics support.

    How do I track the enhancement request with the id you provided?

  • Posted 14 September 2017, 12:05 pm EST

    Hi,

    We have been created the request for adding support for Wijmo Controls not for FlexGrid only.

    We are sorry, you cannot track this issue. The tracking id is shared since it is easy to find issue id to us for getting updated information in the future.

    Thanks,

    Manish Kumar Gupta

  • Posted 27 February 2018, 7:39 am EST

    Hi,

    The grid is not an array or a collecition, you actually don’t deal much with the data items in it at all. It’s mostly cells, rows, and columns.

    However, if you would like, you may derive a class from FlexGrid and implement Generic Support. (Cross Fingered)

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels