开发者

How to determine if a column in a datagrid is sorted or not.

I would like to click on the header of a dojo data grid and retrieve information such as if it is sorted and what direction is it sorted in开发者_Go百科, the column index, and the column name. Has anyone done this.


Look at the getSortProps function in dojox.grid.Datagrid. Calling this function will return a JSON with the field that is being currently sorted and what direction. You can get the index by calling the getSortIndex function. Don't know how to get the name off the top of my head

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜