<?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>If I selected one row in editable grid then it should deselect all other rows except selected row</title><link>https://community.appian.com/discussions/f/user-interface/37261/if-i-selected-one-row-in-editable-grid-then-it-should-deselect-all-other-rows-except-selected-row</link><description>Expected behaviour: If i selected one row in editable grid then it should deselect all other rows except selected row , 
 Actual behaviour: It is deselecting all remaining row whenever Iam selecting any row in editable grid,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: If I selected one row in editable grid then it should deselect all other rows except selected row</title><link>https://community.appian.com/thread/139402?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2024 04:25:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:652022d4-a2cd-498d-9255-0e073cfad1cf</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;&amp;nbsp;already provided a solution for the Editable grid.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, If you are not doing inline editing in the grid, go with the Read-Only Grid. It has a configuration parameter to control max selection (maxSelections).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="text"&gt;    selectable: true,
    maxSelections: 1,
    selectionValue: local!selection,
    selectionSaveInto: local!selection&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I selected one row in editable grid then it should deselect all other rows except selected row</title><link>https://community.appian.com/thread/139378?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2024 14:36:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:978ad938-e6f7-4ab5-99e4-999b87dc3f9c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!items: {
    {item: &amp;quot;Item 1&amp;quot;, qty: 1, unitPrice: 10},
    {item: &amp;quot;Item 2&amp;quot;, qty: 2, unitPrice: 20}
  },
  local!selected: tointeger({}),
  a!gridLayout(
    label: &amp;quot;Products&amp;quot;,
    instructions: &amp;quot;Selected: &amp;quot; &amp;amp; local!selected,
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Item&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Qty&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Unit Price&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Total&amp;quot;, align: &amp;quot;RIGHT&amp;quot;)
    },
    rows: a!forEach(
      items: local!items,
      expression: a!gridRowLayout(
        id: fv!index,
        contents: {
          a!textField(
            value: fv!item.item,
            saveInto: fv!item.item
          ),
          a!integerField(
            value: fv!item.qty,
            saveInto: fv!item.qty
          ),
          a!floatingPointField(
            value: fv!item.unitPrice,
            saveInto: fv!item.unitPrice
          ),
          a!textField(
            value: a!currency(
              isoCode: &amp;quot;USD&amp;quot;,
              value: tointeger(fv!item.qty) * todecimal(fv!item.unitPrice)
            ),
            readOnly: true,
            align: &amp;quot;RIGHT&amp;quot;
          )
        }
      )  
    ),
    selectable: true,
    selectionValue: local!selected,
    /* Flatten the selected values so the result is easier to work with */
    /* when the select/deselect all option is used in an editable grid  */
    selectionSaveInto: {
      a!save(
        target: local!selected,
        value: a!flatten(save!value)
      ),
      a!save(
        target: local!selected,
        value: index(local!selected, count(local!selected), null)
      ),
    },
    rowHeader: 1
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I selected one row in editable grid then it should deselect all other rows except selected row</title><link>https://community.appian.com/thread/139377?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2024 14:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1165d1c-484b-4151-b3a7-734225ce8c2b</guid><dc:creator>laxmipavanik0001</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;You previously provided a link about limiting the number of rows in a grid field. However, my requirement is different: I have a large amount of data in an editable grid, but I want the grid to behave so that when one row is selected, all other rows are automatically deselected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: If I selected one row in editable grid then it should deselect all other rows except selected row</title><link>https://community.appian.com/thread/139376?ContentTypeID=1</link><pubDate>Sat, 10 Aug 2024 13:53:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c3c67d8-3c66-4c2d-b560-e49f73520574</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.2/recipe-limit-the-number-of-rows-in-a-grid-that-can-be-selected.html"&gt;https://docs.appian.com/suite/help/24.2/recipe-limit-the-number-of-rows-in-a-grid-that-can-be-selected.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>