<?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>Sort Editable Grid By Column Values</title><link>https://community.appian.com/discussions/f/general/19423/sort-editable-grid-by-column-values</link><description>Creating sortable columns in a read-only grid seems very straightforward, but I cannot figure out how to do this in an editable grid. I am trying to do this for a numeric decimal column, but would also like the grid to be sortable by multiple columns</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/92485?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 03:28:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e3bef51-02a2-413a-a565-87efea5d8f82</guid><dc:creator>sunnyh0001</dc:creator><description>&lt;p&gt;&lt;span&gt;I had the similar question for myself and am glad I came on this one. I hope this solves your question.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ffffff;font-size:75%;"&gt;&lt;a style="color:#ffffff;" href="https://ovogame.co/"&gt;ovo game&lt;/a&gt;&amp;nbsp;&lt;a style="color:#ffffff;" href="https://garticphone.onl/"&gt;gartic phone&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/92463?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 20:01:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc0865d1-8ad2-4cee-8532-086d91a3db91</guid><dc:creator>sn25</dc:creator><description>&lt;ul class="SelectableTreeNode---nonComponentConfigParam"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting" style="list-style-type:none;"&gt;
&lt;ul class="SelectableTreeNode---nonComponentConfigParam"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;supplierId&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;1&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;description&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;Lockheed Martin&amp;quot;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Text)&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;displayOrder&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;strong&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;5&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_non_value"&gt;Dictionary&lt;/span&gt;&lt;/span&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;ul class="SelectableTreeNode---nonComponentConfigParam"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;supplierId&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;3&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;description&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;Office Mart&amp;quot;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Text)&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;displayOrder&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;strong&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;8&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_non_value"&gt;Dictionary&lt;/span&gt;&lt;/span&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;ul class="SelectableTreeNode---nonComponentConfigParam"&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;supplierId&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;2&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;description&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;&amp;quot;Dell&amp;quot;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Text)&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class="SelectableTreeNode---selectableTreeNode SelectableTreeNode---leaf SelectableTreeNode---open SelectableTreeNode---allow_text_highlighting"&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_key"&gt;displayOrder&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;strong&gt;&lt;span class="CollapsibleOutputNode---print_value"&gt;15&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;(Number (Integer))&lt;/span&gt;&lt;/span&gt;&lt;i class="SelectableTreeNode---icon SelectableTreeNode---openCloseLink"&gt;&lt;/i&gt;&lt;br /&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;&lt;/span&gt;&lt;/span&gt;
&lt;ul class="SelectableTreeNode---componentConfigParam"&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;It&amp;#39;s working.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="CollapsibleOutputNode---print_element_type"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/92462?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 19:51:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60d01d0b-5648-4571-9972-d17008612e7f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You should be able to just run that query by itself and verify whether it comes out ordered the way you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/92460?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2022 19:40:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:417b136d-927b-471b-a5f9-9f502fb6d2e8</guid><dc:creator>sn25</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to sort the display order column in the editable grid and is this the way it should be done?&lt;/p&gt;
&lt;p&gt;How do I know if its working?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!QRSuppliers: a!queryEntity(
    entity: cons!BC_SUPPLIER_DSE,
    query: a!query(
      selection: a!querySelection(
        columns: {
          a!queryColumn(field: &amp;quot;supplierId&amp;quot;),
          a!queryColumn(field: &amp;quot;description&amp;quot;),
          a!queryColumn(field: &amp;quot;displayOrder&amp;quot;),
          a!queryColumn(field: &amp;quot;createdDate&amp;quot;),
          a!queryColumn(field: &amp;quot;createdBy&amp;quot;),
          a!queryColumn(field: &amp;quot;modifiedDate&amp;quot;),
          a!queryColumn(field: &amp;quot;modifiedBy&amp;quot;),
          
        }
      ),
      pagingInfo: a!pagingInfo(
        startIndex: 1, 
        batchSize: - 1,
        sort: a!sortInfo(field: &amp;quot;displayOrder&amp;quot;, ascending: true)
      )
    ),
    fetchTotalCount: true
  ).data,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1647632433175v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/75973?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 13:33:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a58ddea-04c2-4cea-a27e-3e7a23120052</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is possible to do via workarounds like Drew mentions, but there&amp;#39;s a reason the editable grid isn&amp;#39;t inherently sortable by column - when the data within is actually editable, then trying to change the sort (while pending edits are in place, etc) is just a nightmare.&amp;nbsp; Therefore I strongly recommend against this.&amp;nbsp; If you need sorting, use read-only.&amp;nbsp; If you need editable, then sort the data at the start in a manner that will be suitable until editing is completed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sort Editable Grid By Column Values</title><link>https://community.appian.com/thread/75972?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 23:32:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dfaa5c6-0502-4d35-aa2f-97c9cdec6306</guid><dc:creator>Drew Johnson</dc:creator><description>&lt;p&gt;The sorting configuration for editable grid rows is not configured as a parameter from within a!gridLayout() itself. Sort the data outside of the grid component and then loop over the sorted items&amp;nbsp;in the &amp;quot;rows&amp;quot; parameter of the editable grid. For example, if the data you want to sort is coming from a query, use the pagingInfo parameter of the query to sort the data appropriately before it is passed into the grid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>