Author Topic: Non-editable Cells - Required ? - Need this -IMportant  (Read 3197 times)

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Non-editable Cells - Required ? - Need this -IMportant
« on: October 15, 2014, 06:49:31 pm »
Hi,

Resolved all other issues i was having before - only 1 requirement -

If i change funding value to SI - admin fees columns become editable - I am trying to write a validation call back to make basic admin fee and total admin fee as required when the cell is editable ... I am not able to accomplish this ... Can you help me with an example on how to do this please?


Also, if you can tell me if there is any way to add tootltip like we add class

Ex:  $grid.pqGrid("addClass", { rowIndx: rowIndx, dataIndx: dataIndx, cls: 'yellow' });

Thanks much !
« Last Edit: October 16, 2014, 06:55:52 pm by rgorantla »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Non-editable Cells - Required ? - Need this -IMportant
« Reply #1 on: October 16, 2014, 07:58:24 pm »
[ Only Pro members may read this post. ]
« Last Edit: October 16, 2014, 08:02:00 pm by paramquery »

rgorantla

  • Pro Deluxe
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
Re: Non-editable Cells - Required ? - Need this -IMportant
« Reply #2 on: October 16, 2014, 11:37:14 pm »
Hi,

i wrote the same thing - but the issues is - when you click save though this cell is non-editable - focus will be on this cell until you enter soemthing

validations:[ { type:function(ui)
             {
                 var grid = $(this).pqGrid('getInstance').grid;
                 if (grid.isEditableCell({ rowIndx: rowIndx, dataIndx: ui.column.dataIndx }) == true)
                 {
                     if (ui.value == null || ui.value == "")
                     {
                         ui.icon == 'ui-icon-info';
                         ui.msg = "Required";
                         return false;
                     }
                     else
                     {
                         return true;
                     }
                 }
                 else
                 {
                     return true;
                 }
             }
             }],

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Non-editable Cells - Required ? - Need this -IMportant
« Reply #3 on: October 17, 2014, 12:25:32 am »
[ Only Pro members may read this post. ]

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5791
    • View Profile
Re: Non-editable Cells - Required ? - Need this -IMportant
« Reply #4 on: October 22, 2014, 11:08:14 pm »
[ Only Pro members may read this post. ]