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
$(document).delegate(".selector", "iggridcolumnmovingcolumnmoving", function (evt, args) { if(args.targetIndex === 0){ return false; }})
and also for this is there a way for me to change the targetIndex value cause I tried
$(document).delegate(".selector", "iggridcolumnmovingcolumnmoving", function (evt, args) { if(args.targetIndex === 0){
args.targetIndex = 1; return true; }})
doesn't seem to work ;)
What I mean is remove Columns in the box below: