<legend id='dcJZS'><style id='dcJZS'><dir id='dcJZS'><q id='dcJZS'></q></dir></style></legend>
      <bdo id='dcJZS'></bdo><ul id='dcJZS'></ul>

    <i id='dcJZS'><tr id='dcJZS'><dt id='dcJZS'><q id='dcJZS'><span id='dcJZS'><b id='dcJZS'><form id='dcJZS'><ins id='dcJZS'></ins><ul id='dcJZS'></ul><sub id='dcJZS'></sub></form><legend id='dcJZS'></legend><bdo id='dcJZS'><pre id='dcJZS'><center id='dcJZS'></center></pre></bdo></b><th id='dcJZS'></th></span></q></dt></tr></i><div id='dcJZS'><tfoot id='dcJZS'></tfoot><dl id='dcJZS'><fieldset id='dcJZS'></fieldset></dl></div>
    <tfoot id='dcJZS'></tfoot>
  • <small id='dcJZS'></small><noframes id='dcJZS'>

      1. 单选按钮列在使用 JqGrid 的此单选列的所有网格行中互斥?

        radio button column mutually exclusive within all grid rows for this radio column using JqGrid?(单选按钮列在使用 JqGrid 的此单选列的所有网格行中互斥?)

        1. <legend id='YBi7s'><style id='YBi7s'><dir id='YBi7s'><q id='YBi7s'></q></dir></style></legend>
            <tbody id='YBi7s'></tbody>
        2. <small id='YBi7s'></small><noframes id='YBi7s'>

          <i id='YBi7s'><tr id='YBi7s'><dt id='YBi7s'><q id='YBi7s'><span id='YBi7s'><b id='YBi7s'><form id='YBi7s'><ins id='YBi7s'></ins><ul id='YBi7s'></ul><sub id='YBi7s'></sub></form><legend id='YBi7s'></legend><bdo id='YBi7s'><pre id='YBi7s'><center id='YBi7s'></center></pre></bdo></b><th id='YBi7s'></th></span></q></dt></tr></i><div id='YBi7s'><tfoot id='YBi7s'></tfoot><dl id='YBi7s'><fieldset id='YBi7s'></fieldset></dl></div>
            <bdo id='YBi7s'></bdo><ul id='YBi7s'></ul>
              <tfoot id='YBi7s'></tfoot>

                  本文介绍了单选按钮列在使用 JqGrid 的此单选列的所有网格行中互斥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果用户单击特定行的这一列,那么如何创建一个带有特殊单选按钮列的网格,然后只有这个单选按钮被选中,就像有一个单选组垂直分布在这一列网格中一样??

                  How to create a grid with one special column of radio buttons in such a way if user click on this column of a particular row then only this radio button gets selected like if there is a radio group spread across this column of grid vertically ??

                  我正在专门在 JqGrid (jquery) 中寻找这个解决方案.

                  I am looking for this solution in JqGrid (jquery) specifically .

                  谢谢.

                  推荐答案

                  如果我理解你是正确的,你可以使用自定义格式化程序.如果您包含的所有按钮都具有相同的 name 属性,您将拥有您需要的行为

                  If I understand you correct you can just use custom formatter. If all the buttons which you included has the same name attribute you will have the behavior which you need

                  formatter: function (cellValue, option) {
                      return '<input type="radio" name="radio_' + option.gid + '" />';
                  }
                  

                  使用单选按钮创建列后,您将收到许多其他问题,如何将 jqGrid 的其他功能与单选按钮同步.在以下示例中,我将向您展示如何在选择行时检查单选按钮:

                  After creating the column with radio buttons you will receive many other questions how to synchronize other functionality of jqGrid with the radio buttons. In the following example I show you how you can check the radio button on selecting the row:

                  beforeSelectRow: function (rowid, e) {
                      var radio = $(e.target).closest('tr').find('input[type="radio"]');
                      radio.attr('checked', 'checked');
                      return true; // allow row selection
                  }
                  

                  查看演示这里.

                  这篇关于单选按钮列在使用 JqGrid 的此单选列的所有网格行中互斥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                  Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                  Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)

                        <small id='ySgUV'></small><noframes id='ySgUV'>

                          <tbody id='ySgUV'></tbody>
                      1. <tfoot id='ySgUV'></tfoot><legend id='ySgUV'><style id='ySgUV'><dir id='ySgUV'><q id='ySgUV'></q></dir></style></legend>
                          <bdo id='ySgUV'></bdo><ul id='ySgUV'></ul>
                        • <i id='ySgUV'><tr id='ySgUV'><dt id='ySgUV'><q id='ySgUV'><span id='ySgUV'><b id='ySgUV'><form id='ySgUV'><ins id='ySgUV'></ins><ul id='ySgUV'></ul><sub id='ySgUV'></sub></form><legend id='ySgUV'></legend><bdo id='ySgUV'><pre id='ySgUV'><center id='ySgUV'></center></pre></bdo></b><th id='ySgUV'></th></span></q></dt></tr></i><div id='ySgUV'><tfoot id='ySgUV'></tfoot><dl id='ySgUV'><fieldset id='ySgUV'></fieldset></dl></div>