Hi, I have a datagrid, inside the grid I placed a combobox with value and displayvalue. How can I sort the grid base on the displayvalue ? regards Dirk

asked 14 Feb, 13:33

Dirk's gravatar image

Dirk
137
accept rate: 0%


Hi Dirk,

There is an attribute called sortBy on the column tag. If you enter a column name as the value of the sortBy attribute, and try to sort on the screen, Formspider will use the coloumn you entered to the sortBy attribute instead of the actual column.

For example:

<column sortby="DISPLAY_CD"> <combobox column="VALUE_CD" ...=""/> </column>

In the case above, Formspider will sort the grid by DISPLAY_CD if you try to sort by the VALUE_CD column. The DISPLAY_CD column does not need to be in the grid but it has to be in the datasource.

Hope this helps.

Kind Regards, Yalim

link

answered 15 Feb, 09:34

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 20%

edited 15 Feb, 09:35

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×86
×31
×3

Asked: 14 Feb, 13:33

Seen: 25 times

Last updated: 15 Feb, 09:35


© Copyright Gerger 2017