<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Disable default Selection of all rows in a grid field</title><link>https://community.appian.com/discussions/f/user-interface/21362/disable-default-selection-of-all-rows-in-a-grid-field</link><description>Hello, 
 We have a requirement to display certain statements in the form of checklist, so the user would read one by one and check it. The statement also contains links. Our initially idea was to have checkbox field in an array to display the items as</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Disable default Selection of all rows in a grid field</title><link>https://community.appian.com/thread/83378?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 05:24:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0c3380c-ea01-4f0d-b423-9cd370bfb77f</guid><dc:creator>nandinis0001</dc:creator><description>&lt;p&gt;Thanks for your response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable default Selection of all rows in a grid field</title><link>https://community.appian.com/thread/83377?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 03:23:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f9a825b-7494-42ee-8d88-a3e1dc437059</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Hi Nandini,&lt;/p&gt;
&lt;p&gt;We cannot hide the &amp;#39;select all&amp;#39; checkbox if we go with the read-only grid&amp;#39;s default selection style(&lt;strong&gt;CHECKBOX&lt;/strong&gt;). Some workarounds are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We can use the&amp;nbsp;&amp;#39;&lt;strong&gt;ROW_HIGHLIGHT&amp;#39;&amp;nbsp;&lt;/strong&gt;selection style if it is suitable for your use case.&lt;/li&gt;
&lt;li&gt;If not, you can hide the default selection pattern of the read-only grid &amp;amp; can include a custom checkbox column using a rich text field.&amp;nbsp;Provided a sample code here for reference(Note: The icon can be further customized as per your need).&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
    /* This variable would be used to pass the full rows of data on the selected items out of this interface, such as to a process model. */
    local!selectedEmployees: a!map(),
    {
      a!richTextDisplayField(
        label: &amp;quot;&amp;quot;,
        labelPosition: &amp;quot;COLLAPSED&amp;quot;,
        value: {
          a!richTextHeader(text: &amp;quot;Performance Review Portal&amp;quot;)
        }
      ),
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!gridField(
                label: &amp;quot;Employee Directory&amp;quot;,
                /* Replace the dummy data with a query, rule, or function that returns a datasubset and uses fv!pagingInfo as the paging configuration. */
                data: todatasubset(
                  {
                    a!map(
                      id: 11,
                      name: &amp;quot;Elizabeth Ward&amp;quot;,
                      dept: &amp;quot;Engineering&amp;quot;,
                      role: &amp;quot;Senior Engineer&amp;quot;,
                      team: &amp;quot;Front-End Components&amp;quot;,
                      pto: 15,
                      startDate: today() - 500
                    ),
                    a!map(
                      id: 22,
                      name: &amp;quot;Michael Johnson&amp;quot;,
                      dept: &amp;quot;Finance&amp;quot;,
                      role: &amp;quot;Payroll Manager&amp;quot;,
                      team: &amp;quot;Accounts Payable&amp;quot;,
                      pto: 2,
                      startDate: today() - 100
                    ),
                    a!map(
                      id: 33,
                      name: &amp;quot;John Smith&amp;quot;,
                      dept: &amp;quot;Engineering&amp;quot;,
                      role: &amp;quot;Quality Engineer&amp;quot;,
                      team: &amp;quot;User Acceptance Testing&amp;quot;,
                      pto: 5,
                      startDate: today() - 1000
                    ),
                    a!map(
                      id: 44,
                      name: &amp;quot;Diana Hellstrom&amp;quot;,
                      dept: &amp;quot;Engineering&amp;quot;,
                      role: &amp;quot;UX Designer&amp;quot;,
                      team: &amp;quot;User Experience&amp;quot;,
                      pto: 49,
                      startDate: today() - 1200
                    ),
                    a!map(
                      id: 55,
                      name: &amp;quot;Francois Morin&amp;quot;,
                      dept: &amp;quot;Sales&amp;quot;,
                      role: &amp;quot;Account Executive&amp;quot;,
                      team: &amp;quot;Commercial North America&amp;quot;,
                      pto: 15,
                      startDate: today() - 700
                    ),
                    a!map(
                      id: 66,
                      name: &amp;quot;Maya Kapoor&amp;quot;,
                      dept: &amp;quot;Sales&amp;quot;,
                      role: &amp;quot;Regional Director&amp;quot;,
                      team: &amp;quot;Front-End Components&amp;quot;,
                      pto: 15,
                      startDate: today() - 1400
                    ),
                    a!map(
                      id: 77,
                      name: &amp;quot;Anthony Wu&amp;quot;,
                      dept: &amp;quot;Human Resources&amp;quot;,
                      role: &amp;quot;Benefits Coordinator&amp;quot;,
                      team: &amp;quot;Accounts Payable&amp;quot;,
                      pto: 2,
                      startDate: today() - 300
                    )
                  },
                  fv!pagingInfo
                ),
                columns: {
                  a!gridColumn(
                    label: &amp;quot;&amp;quot;,
                    sortField: &amp;quot;&amp;quot;,
                    value: a!richTextDisplayField(
                      value: if(
                        contains(local!selectedEmployees, fv!row),
                        a!richTextIcon(
                          icon: &amp;quot;check-square-o&amp;quot;,
                          link: a!dynamicLink(
                            saveInto: a!save(
                              local!selectedEmployees,
                              difference(local!selectedEmployees, fv!row)
                            )
                          )
                        ),
                        a!richTextIcon(
                          icon: &amp;quot;square-o&amp;quot;,
                          link: a!dynamicLink(
                            saveInto: a!save(
                              local!selectedEmployees,
                              { local!selectedEmployees, fv!row }
                            )
                          )
                        )
                      )
                    ),
                    width: &amp;quot;ICON&amp;quot;
                  ),
                  a!gridColumn(
                    label: &amp;quot;Name&amp;quot;,
                    sortField: &amp;quot;name&amp;quot;,
                    value: fv!row.name
                  ),
                  a!gridColumn(
                    label: &amp;quot;Department&amp;quot;,
                    sortField: &amp;quot;dept&amp;quot;,
                    value: fv!row.dept
                  ),
                  a!gridColumn(
                    label: &amp;quot;Start Date&amp;quot;,
                    sortField: &amp;quot;startDate&amp;quot;,
                    value: fv!row.startDate,
                    align: &amp;quot;END&amp;quot;
                  )
                },
                pageSize: 3,
                selectable: false()
              )
            }
          )
        },
        stackWhen: { &amp;quot;PHONE&amp;quot;, &amp;quot;TABLET_PORTRAIT&amp;quot; }
      )
    }
  )&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Selva&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>