Author Topic: Enable save changes button after check the checkbox without changing any rowdata  (Read 1484 times)

pattarsuresh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi Team

I want to enable save changes button without changing any row data I mean after check the checbox in the grid then the save changes button should enable. please help me needful.

Thanks
Srinivasarao p

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6407
    • View Profile
Though it doesn't make sense why would you do that.

you can enable save button by getting DOM reference to it and calling disabled false.

Code: [Select]
$( selector of save button ).button("option", "disabled", false );

pattarsuresh

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 2
    • View Profile
@paramvir, its my client requirement, when we check the checkbox then savechanges button should enable, is there any way to enable savechanges button please suggest.

Thanks
Srinivasarao p

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6407
    • View Profile
If the checkbox is embedded within a grid cell, toggling its state should update the underlying data model—this, in turn, should enable the Save Changes button.

You can see this behavior in action in the following example: https://paramquery.com/pro/demos/editing_batch

It’s possible that in your implementation, the checkbox isn’t properly data-bound, which would prevent the grid from detecting the change.