jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC jqGrid: Button Column Type

This topic contains 1 reply, has 2 voices, and was last updated by  Admir Hodžić 8 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqGrid: Button Column Type #91061

    sktocco
    Participant

    To my jqGrid I added a column of “column-type=’button'” that I want to be a delete button. My assumption was the “button-click” tag helper was a way to tell the button what MVC action to execute when the button is clicked but it does not appear to be doing what I was expecting it to. I searched your documentation to find out what that tag helper is for and how to set it. What should be going into that button-click helper?

    <jqx-grid id="jqGrid" theme="custom" showeverpresentrow="true" ever-present-row-position="top" ever-present-row-actions="add update reset"
                          enable-tool-tips="false" alt-rows="true" width="100%" auto-height="true" editable="false" 
                          create="@Url.Action("create", "mylinks")" edit="@Url.Action("edit","mylinks")" source-id-for="@mylink.Id"
                          source="Model.MyLinks" sortable="false" selection-mode="singlerow" delete="@Url.Action("delete", "mylinks")">
                    <jqx-grid-columns>
                        <jqx-grid-column datafield="Id" width="5%" text="Id" hidden="true"></jqx-grid-column>
                        <jqx-grid-column datafield="LinkTitle" width="40%" text="Link Title"></jqx-grid-column>
                        <jqx-grid-column datafield="LinkUrl" width="45%" text="URL"></jqx-grid-column>
                        <jqx-grid-column datafield="LinkOrder" width="10%" text="Sort Order" cells-format="n" cells-align="HorizontalAlignment.Center" validate-ever-present-row-widget-value="valNumberField()"></jqx-grid-column>
                        <jqx-grid-column datafield="Delete" width="5%" column-type="button" cells-renderer="deleteFieldLabel()"  <strong>button-click="@Url.Action("delete", "mylinks")"</strong>></jqx-grid-column>
                    </jqx-grid-columns>
                </jqx-grid>
    jqGrid: Button Column Type #91171

    Admir Hodžić
    Participant

    I have similar issue whit buton colum.
    http://www.jqwidgets.com/community/topic/how-to-bind-button-inside-column-of-gird-generated-by-tag-helper/

    At end I do subscribing buttons on entire grid.

    You cluod also do that and then do JS deletenig of row.

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

You must be logged in to reply to this topic.