<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged datagrid</title>
<link>https://overflow.efficy.io/?qa=tag/datagrid</link>
<description>Powered by Question2Answer</description>
<item>
<title>Datagrid with the new headers options HOW?</title>
<link>https://overflow.efficy.io/?qa=2525/datagrid-with-the-new-headers-options-how</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;I would like to create a datagrid in a page that will allow me to use the fancy filters and order columns features as on below : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=16077587511586723602&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;How can I do that? the getDataGrid macro I use just allow me to force certain parameters as a filter or an order but I would like to make my datagrid as interactive as possible.&lt;/p&gt;

&lt;p&gt;thank you&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2525/datagrid-with-the-new-headers-options-how</guid>
<pubDate>Wed, 07 Jun 2017 09:14:07 +0000</pubDate>
</item>
<item>
<title>How to add a &quot;datePicker&quot;  edit field in a DataGrid ?</title>
<link>https://overflow.efficy.io/?qa=2068/how-to-add-a-datepicker-edit-field-in-a-datagrid</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to set an edit field as a datePicker in a DataGrid. This post was first a question, but, finally, I give the solution i found...&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=647493181767215123&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;I use a macro in the GridColumnsCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;td.F_MYDATE {[
  &amp;lt;td width=&quot;150px&quot;&amp;gt;
    &amp;lt;input type=&quot;text&quot; class=&quot;pickDateEditor&quot;   id=&quot;F_MYDATE_&amp;lt;#F=$KEY$&amp;gt;&quot; title=&quot;&quot; value=&quot;&amp;lt;#F=$FIELD$;nospace=true&amp;gt;&quot;  data-msg=&quot;pickDate;$this;$event&quot;  placeholder=&quot;&amp;lt;%GetLocaleSetting('ShortDateFormat', moment=T)%&amp;gt;&quot; autocomplete=&quot;off&quot; &amp;gt;
  &amp;lt;/td&amp;gt;
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I also add this JS inside MacroConsultCustom.txt:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ConsultScriptsCustom.Comp {[

 &amp;lt;script&amp;gt;
// pour gérer les datetimepicker dans les listes
requirejs(['jquery', 'datetimepicker' ], function($, Datetimepicker) {

    $('.pickDateEditor').each(function( i ) {
        $(this).datetimepicker({
            format:   &quot;&amp;lt;%GetLocaleSetting('ShortDateFormat', moment=T)%&amp;gt;&quot;,
            language: &quot;&amp;lt;%GetLanguage(lowercase=T)%&amp;gt;&quot;
        });
    });

}); //  End of requirejs
  &amp;lt;/script&amp;gt;

 ...
]}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The resultat is below :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=2093120410724087210&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;The next step is, for me now, to save the changed values by an Ajax call...&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2068/how-to-add-a-datepicker-edit-field-in-a-datagrid</guid>
<pubDate>Fri, 02 Dec 2016 17:54:50 +0000</pubDate>
</item>
</channel>
</rss>