Dec 23, 2008, 12:06 PM
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):
Thanks.
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.