Posted 10 October 2017, 4:12 pm EST
hello,
Pinned column allows to drop columns before.Please find the image attachment.
Forums Home / Spread / DataViewsJS
Posted by: arulventhan.palanimuthu on 10 October 2017, 4:12 pm EST
Posted 10 October 2017, 4:12 pm EST
hello,
Pinned column allows to drop columns before.Please find the image attachment.
Posted 11 October 2017, 1:22 am EST
Hi Arul,
As per the definition given in the documentation, pinned columns are used to make the columns frozen to right or left. Pinned columns work much like frozen columns in spreadsheets. When a column is pinned to the left, the pinned column and those that come before it do not scroll. When a column is pinned to the right, the pinned column and those that come after it do not scroll. In this example, the Company Name column is pinned right and the Phone column is pinned left.
It does allow the columns to drag and drop in pinned area.
Thanks,
Deepak Sharma
Posted 11 October 2017, 9:58 pm EST
how to block allowing, the columns to drag and drop in pinned area.
Thanks,
Arulventhan.
Posted 13 October 2017, 2:27 am EST
Hello,
You can handle the ColumnReorder event and check for status .If it is “endColumnReorder” you can set the Cancel property to true to cancel the column reorder. Here is the code to do that:
function columnReorderFun(sender, args) {
if (args.status === “endColumnReorder” && cancelFlag) {
args.cancel = true;
}
Thanks,
Deepak Sharma
Posted 19 October 2017, 11:44 pm EST
hi Deepak ,
I am getting args.status = “endColumnReorder” for every columns at the drop end.please give me an solution to block allowing column before pinned column or how to use customized row header (time column should be inside the row header column and other column as same as normal ).ref. Image on first post
Thanks,
Arul
Posted 25 October 2017, 2:56 am EST
Hello,
Please have a look at the attached sample page which shows how you can restrict the user to drop a column on pinned column. In my example first column is pinned column.
Thanks,
Deepak SharmaDisablePinnedColumnReorder.zip