October 23, 2020, 08:37:49 AM

See more Support incidents in our old archived forum.

Author Topic: Gantt table columns editable on single click  (Read 3762 times)

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Gantt table columns editable on single click
« on: August 11, 2014, 11:42:41 AM »
Hi Team
I want to perform single click edit operation in place of double click, but not able to find any solution from given example at your site.

Please let me know how it is possible? when single click on any column of gantt table, table column should be
editable.


Thanks

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: Gantt table columns editable on single click
« Reply #1 on: August 12, 2014, 02:56:08 PM »
Shyam,

Current behavior is rows will get selected on single click, and single click on the selected row will start editing. Is this what you required?


Regards,
-Raja.

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: Gantt table columns editable on single click
« Reply #2 on: August 14, 2014, 10:40:54 AM »
Raja

I want when click on any row's columns that row will be selected and only these columns  Description/ Start Time/ End Time/ Duration/ % complete/ Predecessor will be editable on single click.

Thanks
Shyam
« Last Edit: August 14, 2014, 10:56:40 AM by ssunder »

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: Gantt table columns editable on single click
« Reply #3 on: August 14, 2014, 12:56:50 PM »
Shyam,

Looks like you want to keep some columns as read-only, have you already set this up or not yet?


Regards,
-Raja.

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: Gantt table columns editable on single click
« Reply #4 on: August 19, 2014, 06:03:13 AM »
Hi Raja
I am able to keep some columns as read-only but I want some other columns should become editable and selected only on single click.

Regards,
Shyam

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: Gantt table columns editable on single click
« Reply #5 on: August 19, 2014, 04:11:08 PM »
Shyam,

We have sent the latest source js to you that gives you an option to enable editing on single click. Here is the code usage,

Code: [Select]
$table.gridEditor({
    canBeginEdit: function (actview) {
        // To use single click edit.
        if (condition)
            return true;

        // To use the Default behavior.
        return actview.IsSelected();
    },
    start: function (event, ui) {
        //return false;  /*To prevent default action, default action, set the value to the textbox base on column name*/
    },
    submit: function (event, ui) {
        // return false; to discard changes.
    }
});

Regards,
-Raja.

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: Gantt table columns editable on single click
« Reply #6 on: August 22, 2014, 01:32:02 PM »
Hello Team,

Thanks for you valuable response.

But after implementing given example with new js “RadiantQ-jQuery.Gantt.4.5.min.js” we are getting an issue.

Issue Detail for single click edit functionality:

First time when we click on row it will select the row not create column as editable.
First select the row then click on column it will create column as editable than press enter, now focus will move to next column and create it editable, hit multiple time enter, some how it will loose the focus and leave some of column as editable.




Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: Gantt table columns editable on single click
« Reply #7 on: August 25, 2014, 03:56:23 PM »
Shyam,

We are looking on, we will update you soon.


Regards,
-Raja.

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: Gantt table columns editable on single click
« Reply #8 on: August 26, 2014, 06:18:20 PM »
Shyam,

1) We found that, There is no reference to our latest src js in the given reference sample. Could you make sure, you have referenced to our latest src js and use the "canBeginEdit" code as we said in this forum for single click edit.

2) We aren't able to reproduce this editing is not getting closed issue after enter key is pressed. We have sent the video what we have tried.

Could you please make sure that you are referring to our latest src js and css files? Is there any error message in browser console?


Regards,
-Raja.