Jump to content
Software FX Community

Sort Template Column


volitan

Recommended Posts

  • 3 weeks later...
Posted

Yes, you can.  This is supported through the CommandButton control.  You can do it through our "Edit Layout" wizard by choosing "Add New" -> Command Button.  You can also do it in the property grid/markup.

<GridFX:TemplateColumn>

<HeaderTemplate><GridFX:CommandButton runat="server" ID="commandButton1" Command="AddSortField"

Parameters=""transaction_id",0" />

</HeaderTemplate>

In this case, I set the command to sort by the "transaction_id" field.  If you edit the column's template (click on the column and choose Edit Template), the property grid for the CommandButton will give you a better way to set the properties. The Parameters is a string that's a JSON object, but the property grid presents it in a much nicer way.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...