Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tickCross dosent work in version 6.2 like it did in version 5.5 and i see no changes in documentation for changes to it. #4455

Open
grjoseph74 opened this issue Apr 4, 2024 · 1 comment

Comments

@grjoseph74
Copy link

Website Page
A link to the page with the issue

Describe the issue
I have a table using version 5.5 and I have the tickCross in there which the user can check the box to one of the states. this worked great in 5.5. but when I upgraded to 6.2, this no longer worked and the table freezes at loading data. The code has not changed at all. so I think this functionality must have changed in the new version it it was not documented.

here are the columns

            columns:[{title:"<label id='role_name'></label>",field:"role_name", headerHozAlign :"center",columns:[
                {title:"Permission Parent Group", field:"permission_parent",hozAlign:"left",responsive:0, resizable:false,visible:false},
                {title:"User ID", field:"user_id",hozAlign:"center",responsive:0, resizable:false,visible:false},
                {title:"Permission Value", field:"value",hozAlign:"center",responsive:0, resizable:false,visible:false},
                {title:"Group", field:"permission_child",hozAlign:"left",responsive:0, resizable:false,visible:false},
                {title:"Permission", field:"description",hozAlign:"left",responsive:0, resizable:false,},
                {title:"Allowed", field:"active", hozAlign:"center", editor:true, formatter:"tickCross"},
            ]}],

        sms_permissions_tbl.on("tableBuilt", function(){
            load_table_data(<?=$_SESSION['UserID'] ?>)

            $('#role_name').text('<?=$_SESSION['RoleName'] ?>');
        });

    function load_table_data(user_id){
        sms_permissions_tbl.setData("ajax_load_table_data.php", {_action:"get_permissions_data",user_id:user_id });
    }

data loaded by ajax as per the documentation

            columns:[{title:"<label id='role_name'></label>",field:"role_name", headerHozAlign :"center",columns:[
                {title:"Permission Parent Group", field:"permission_parent",hozAlign:"left",responsive:0, resizable:false,visible:false},
                {title:"User ID", field:"user_id",hozAlign:"center",responsive:0, resizable:false,visible:false},
                {title:"Permission Value", field:"value",hozAlign:"center",responsive:0, resizable:false,visible:false},
                {title:"Group", field:"permission_child",hozAlign:"left",responsive:0, resizable:false,visible:false},
                {title:"Permission", field:"description",hozAlign:"left",responsive:0, resizable:false,},
                {title:"Allowed", field:"active", hozAlign:"center", editor:true, formatter:"tickCross"},
            ]}],
@olifolkerd
Copy link
Owner

Is there anything showing in your console? Could you please put together a JS fiddle that demonstrates the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants