jQuery UI Widgets Forums TreeGrid lockrow by dataField's value

This topic contains 2 replies, has 2 voices, and was last updated by  xqyi 9 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • lockrow by dataField's value #64687

    xqyi
    Participant

    json data bind to treegrid like below:
    [{"Name":"流程实例","Code":"545276c3-49e9-410c-b988-183cd5004bda","Icon":"","Sort":1,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"10415d6f-adae-4b16-8e24-fb5657e1bae2"},{"Name":"菜单维护","Code":"95f1699d-f141-434d-966f-6b87f0142f3c","Icon":"","Sort":1,"Symbol":"/resource/menuresource","Desc":"","ActiveFlag":true,"ParentCode":"177ec218-56ec-4bc0-bd26-958fb268bf1b"},{"Name":"流程实例","Code":"202abe2f-8cc3-4726-9ae8-7b03dd8cf8db","Icon":"","Sort":1,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"d43d500a-c6bf-4a31-ab9f-406056197b12"},{"Name":"资源维护","Code":"177ec218-56ec-4bc0-bd26-958fb268bf1b","Icon":"","Sort":1,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"0db26f25-21ba-4b32-8076-e73cfb7c32a6"},{"Name":"系统管理","Code":"0db26f25-21ba-4b32-8076-e73cfb7c32a6","Icon":"","Sort":1,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"00000000-0000-0000-0000-000000000000"},{"Name":"流程异常","Code":"2fed4ecb-7a06-4c0b-91b5-d2e4cc335cbb","Icon":"","Sort":2,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"d43d500a-c6bf-4a31-ab9f-406056197b12"},{"Name":"系统日志","Code":"b6c0ba42-b46c-4e09-8223-db0090f6fd63","Icon":"","Sort":2,"Symbol":"","Desc":"","ActiveFlag":false,"ParentCode":"0db26f25-21ba-4b32-8076-e73cfb7c32a6"},{"Name":"流程异常","Code":"f9326efa-831b-4484-bf36-ef55b29ff89b","Icon":"","Sort":2,"Symbol":"","Desc":"","ActiveFlag":true,"ParentCode":"10415d6f-adae-4b16-8e24-fb5657e1bae2"},{"Name":"流程管理","Code":"10415d6f-adae-4b16-8e24-fb5657e1bae2","Icon":"","Sort":2,"Symbol":"","Desc":"","ActiveFlag":false,"ParentCode":"00000000-0000-0000-0000-000000000000"},{"Name":"运维平台","Code":"d43d500a-c6bf-4a31-ab9f-406056197b12","Icon":"","Sort":3,"Symbol":"","Desc":"","ActiveFlag":false,"ParentCode":"00000000-0000-0000-0000-000000000000"}]

    I want to lock the row when ActiveFlag=false, how to do this?

    lockrow by dataField's value #64692

    Peter Stoev
    Keymaster

    Hi xqyi,

    The TreeGrid lockRow method expects rowKey parameter. I think that you can check some row’s value and then pass the row’s key if you want to lock particular row.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    lockrow by dataField's value #64700

    xqyi
    Participant

    so I have to check each row’s value? is there any api like databing event of asp.net gridview, when the data bind to grid I can lock specified row?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.