Is there a way for me to customize Column Moving where when I click the Move First it goes to a specific index?
cause I want my Fixed Column untouched.
And also is there a way for me to remove a column in the AddMovingDropdown Component of Column Moving?
Thank you for posting in our forum.
You can't change the behavior when clicking the "Move First" option.Alternatively, you can prevent a specific column to be moved via the allowMoving option via the column settings:However, that will only prevent the specific column to be moved, while all other columns can be rearranged in any order.If you’d like to prevent any other columns from taking the first position I suggest you use the columnMoving event and cancel it in all cases when the args.targetIndex is 0. This will ensure that moving any other column to index 0 will be canceled.
Example:
$(document).delegate(".selector", "iggridcolumnmovingcolumnmoving", function (evt, args) { if(args.targetIndex === 0){ return false; } });
Karen Michelle Tecson said:And also is there a way for me to remove a column in the AddMovingDropdown Component of Column Moving?
Do you mean you want to remove the option(e.g. "Move First" option) from columnMovingDialog?
Sincerely,Motoki
The information on the sharing site is really important and necessary for everyone
baldi's basics
Martin Russell said:
@1551 angel numberThanks a lot! The information on the sharing site is really important and necessary for everyone
Glad the info helped you! Here's one more thing (or rather my tip) that may help you. To ensure that the first position is reserved for a specific column, you can employ the columnMoving event and terminate it when the args.targetIndex equals 0. This will prevent any other column from being moved to index 0.