Jump to content
Software FX Community

Sort Template Column


Recommended Posts

  • 3 weeks later...

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...