volitan Posted June 24, 2008 Report Share Posted June 24, 2008 Is there any way to sort a TemplateColumn? Quote Link to comment Share on other sites More sharing options...
StephenP Posted July 10, 2008 Report Share Posted July 10, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.