GridPanel column renderer and AjaxMethods

  1. #1

    GridPanel column renderer and AjaxMethods

    Hi,

    Is there a way to configure the renderer of a column in a GridPanel in such way that the result will come from an ajax method?

    (In other words, something like the code below):

    <script runat="server">
    [AjaxMethod]
    public string BuildStatusHTML(string strStatus)
    {
        ... // some server code
        return "<table><tr><td>HTML to be rendered for ColumnID 'Status'</td></tr></table>";
    }
    </script>
    
    <ext:GridPanel ...>
        <ColumnModel ...>
            <Columns>
                <ext:Column ColumnID="Status" Header="<% $Resources:GRID_HEADER_STATUS %>">
                    <Renderer Handler="return Coolite.AjaxMethods.BuildStatusHTML(record.data.status);" />
                </ext:Column>
    ...

    Thanks.
  2. #2

    RE: GridPanel column renderer and AjaxMethods

    *Hi,

    It is impossible because calling of AjaxMethod it is async operation




Similar Threads

  1. [CLOSED] Column renderer does not work for treeGrid
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 14, 2012, 12:22 PM
  2. [CLOSED] GridPanel. Force renderer function of column
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2012, 5:45 PM
  3. Grid Column Renderer
    By karthik.arian03 in forum 1.x Help
    Replies: 8
    Last Post: Feb 11, 2011, 6:34 AM
  4. Replies: 0
    Last Post: May 07, 2010, 12:59 AM
  5. Checkbox Column with Renderer
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: Jan 13, 2009, 3:05 PM

Posting Permissions