miknight

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: autowidth bug when using tabs #87897
    miknight
    Participant

    As a forum search for 'autowidth' doesn't turn up anything in the forums or blogs, here are some relevant posts from the blog:

    jqGrid 3.5 beta

    jqGrid 3.5 beta

    jqGrid 3.5 beta

    My solution was to switch to (or 'select') the tab each grid was on before instantiating that grid.

    I also tried delaying the creation of the tabs with a setTimeout() call but this made the grids too wide as they weren't able to take into account the padding placed around them after the tabs were created.

    in reply to: Select Populated from DB #87775
    miknight
    Participant

    I have a similar requirement but I need the contents of the select box to be different depending on the record being edited.

    I tried calling

    jQuery(grid).setColProp('link_to', {editoptions: {value: new_opts}});

    before firing

    jQuery(grid).editGridRow(…)

    However, this only worked for the first call. Subsequent calls for other records would not change it.

    I tried editing the SetColProp() function to make the extend a deep copy:

    $.extend(true, this.p.colModel,obj);

    but this still didn't fix the problem.

    Edit: I was able to fix this by adding

    recreateForm: true

    to

    jQuery(grid).editGridRow(…)

Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!