Need help with FlexGrid - hierarchical data with CellEdit template column not working

Posted by: jharte on 14 September 2017, 11:18 am EST

  • Posted 14 September 2017, 11:18 am EST

    Hello - I’m evaluating Wijmo 5 FlexGrid for a project I’m working on and ran into a problem getting the date input working in CellEdit template. It just never appears when editing a cell.

    Using AngularJS 1.3, here’s my markup for the grid:

    [html]frozen-columns=“2”

    id=“grid”

    wj-context-menu=“#gridMenu

    allow-sorting=“false”

    allow-dragging=“Both”

    child-items-path=“children”

    item-formatter=“itemFormatter”>

    required=“false”

    format=“M/d/yy”

    style=" width: 100%; height: 100%; box-sizing: border-box;">

     

    [/html]

    The dates are not required and are all initially null from the server.

    To allow editing in hierarchical mode, I have this in my controller (found workaround in another topic here):

    [js]function itemFormatter(gridPanel, row, col, cellElem) {

    // FlexGrid makes all rows group rows when using hierarchical data.

    // We’ll fix that here

    gridPanel.rows[row].isReadOnly = false;

    }[/js]

    Am I doing something wrong, or is there an issue with using edit templates in hierarchical mode?

    Thanks

     

    UPDATE I also tried adding a wj-input-number in a different column as cell-type=“CellEdit” and it doesn’t work either…

  • Posted 14 September 2017, 11:18 am EST

    Hello,

    Thanks for reporting this. I could observe the issue and have escalated it to the development team(118109) for review.

    Meanwhile, you can create custom editor manually through code and can refer to the attached sample implementing the same.

    Regards

    2015/05/FlexGrid_Hierarchical_Template_Code.html

  • Posted 14 September 2017, 11:18 am EST

    Hi,

    Is there a fix to this issue? I am also facing the same with grid having child items and editable cells for the top level rows.

    Cant apply the work around suggested above as we have lots of pages with wijmo grids. Would like to know if there is a fix or some generic solution.

    Thanks

  • Posted 14 September 2017, 11:18 am EST

    Hi Liju,

    This issue seems to be fixed with the latest build 5.20172.334. For your reference, please refer to the attached sample that implements the same.

    Thanks,

    Manish Kumar Gupta

    2017/08/FlexGrid_Hierarchical_Edit_template_334.zip

  • Posted 18 January 2018, 4:07 am EST

    Hi, i am also facing the same issue, i was trying to implement custom bento icons with column data, for that i was using cell templates, but its not working as the flexgrid is having child items, hierarchical data.

    @Manish Kumar Gupta

    if you can help me with this, it will be great.

    if needed i can provide you the plunker…

Need extra support?

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

Learn More

Forum Channels