﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How to call a javascript function after column sorting is done on selfrefrencing grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-call-a-javascript-function-after-column-sorting-is-done-on-selfrefrencing-grid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to call a javascript function after column sorting is done on selfrefrencing grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-call-a-javascript-function-after-column-sorting-is-done-on-selfrefrencing-grid/</link><pubDate>Thu, 15 Apr 2010 02:23:14 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gaurav Desai,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Yes, currently we do not have a client side on that scenario. However, we do have a client side event that will triggered after the process is done. You can use AfterResponseProcess client side event, then we can make a validation if the last action is a column sort.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Here is the snippet to do so:&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;        function WebGrid1_AfterResponseProcess(controlId) {
            var WebGrid1 = ISGetObject(controlId);

            if (WebGrid1.LastAction == "ColumnSort")
                alert("Sorting has been done");

            return true;
        }&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>How to call a javascript function after column sorting is done on selfrefrencing grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-call-a-javascript-function-after-column-sorting-is-done-on-selfrefrencing-grid/</link><pubDate>Wed, 14 Apr 2010 09:34:28 GMT</pubDate><dc:creator>desaigs81</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we are using WebGrid 7 in SharePoint webpart where we are rendering the webpart programatically.&lt;/p&gt;
&lt;p&gt;We have self refrencing grid where we have enabled sorting. &lt;/p&gt;
&lt;p&gt;We have written a javascript which maintains the expan collapsed state of the self refrenced nodes. &lt;/p&gt;
&lt;p&gt;Is it possible to call this javscripot after the sorting is peformed ?&lt;/p&gt;
&lt;p&gt;I know WebGrid providd OnColumnSort clientaction in layout setting but that is before the sorting is actually peformed. What i am looking for is an event fired after sorting is performed.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>