Frozen Record

QuestionsFrozen Record
Aamir asked 11 years ago

Abu Ghufran,

Grid is working great. I want to freeze some records so that user could not update / delete them. For example, I have 20 records to show. I have set a flag in the DB as locked = 1. 5 records has the flag as 1 so user must not be able to update or delete them.

Thanks,

2 Answers
Aamir answered 11 years ago

I have found this in column-access.php. I think it has a problem. Suppose, we have 10 records in our table. One of them is frozen and user should not be able to edit / delete it. Edit works fine but there is problem with delete. If we select the frozen record, system disables the delete icon in the toolbar but the problem comes if we select multiple records to delete including the frozen one. Like, we have

ID Status
1 Frozen
2 OK

now, if we select both records, system enables the delete icon in the toolbar and if we click it, system removes both records.

Aamir answered 11 years ago

I have disabled checkboxes with //$grid["multiselect"] = true; and now its working fine

Your Answer

6 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?