Hww to change cell value of grid row

David

I have a grid in which one column have No value. I have a button I bbar. When I click on button I want that value to be changed to yes and complete grid to be strike. so far my code is :

{ 
xtype: 'button', 
text: 'Exclude',
handler : function(){
    var cohartgrid = Ext.getCmp('HART_GRID');
    var cohartstore = cohartgrid.getStore();
    var record = Ext.getCmp('HART_GRID').getSelectionModel().getSelected();
    var st = cohartstore.getRange();
    if(record.data.EXL == "No"){
        debugger;
       var abc = record.data.EXL
       abc.replace("Yes");
    }
}}

Here I want the value should replace yes to No fro UI and from Store.. (Also grid should be strike). I am trying for that.

Thanks in advance

UDID

Try this,

I made answer as per your code.

{ 
    xtype: 'button', 
    text: 'Exclude',
    handler : function(){
    var cohartgrid = Ext.getCmp('HART_GRID');
   var cohartstore = cohartgrid.getStore();
   Ext.getCmp('HART_GRID').getSelectionModel().getSelected();
   var st = cohartstore.getRange();
   if(record.data.EXL == "No"){
   record.set("EXL","YES")
     }
     } 

    }

You need to replace the value at record level.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get the first row corresponding cell value if i change the other rows cell value in kendo child grid

From Dev

Infragistics grid combo box value change should disable cell of that specific row

From Dev

Infragistics grid combo box value change should disable cell of that specific row

From Dev

extjs change grid cell background based on value

From Dev

extjs change grid cell background based on value

From Dev

AG-Grid cell template value change

From Dev

Change Row background color based on cell value

From Dev

jqQuery find cell value, if exists change cell, if not add new row

From Dev

change the color of cell when value changed in ng-grid

From Dev

how to check and change color of cell value in kendo ui grid

From Dev

Change Row background color based on cell value DataTable

From Dev

How to change the row color based value of Cell in list view

From Dev

How to Change the row Background color based on cell value

From Dev

Gridview: Change link button text base on value of cell in same row

From Dev

jquery datatable.net change row color based on value of cell

From Dev

How to add a row and change cell value in DataGridView from a different thread?

From Dev

How to Change the row Background color based on cell value

From Dev

How can I change a wpf Databound grid cell based on the cell value?

From Dev

If value in Row 2 appears in Row 1 then change the cell colour in Row 3

From Dev

Change color of cell in Grid (Vaadin)

From Dev

Excel Change value of each cell with a value in row to count+1 of cells with values in row

From Dev

How to change cell value down one column into another but change the row value?

From Dev

Get value of clicked cell on grid

From Dev

move Rows up and down or change row color if the row cell value are the same gridview devexpress winforms c#?

From Dev

Change Cell Value if There is Overflow

From Dev

Cell value change with Month

From Dev

Change value of cell in Javascript

From Dev

If no Image, change row cell height

From Dev

If no Image, change row cell height

Related Related

  1. 1

    How to get the first row corresponding cell value if i change the other rows cell value in kendo child grid

  2. 2

    Infragistics grid combo box value change should disable cell of that specific row

  3. 3

    Infragistics grid combo box value change should disable cell of that specific row

  4. 4

    extjs change grid cell background based on value

  5. 5

    extjs change grid cell background based on value

  6. 6

    AG-Grid cell template value change

  7. 7

    Change Row background color based on cell value

  8. 8

    jqQuery find cell value, if exists change cell, if not add new row

  9. 9

    change the color of cell when value changed in ng-grid

  10. 10

    how to check and change color of cell value in kendo ui grid

  11. 11

    Change Row background color based on cell value DataTable

  12. 12

    How to change the row color based value of Cell in list view

  13. 13

    How to Change the row Background color based on cell value

  14. 14

    Gridview: Change link button text base on value of cell in same row

  15. 15

    jquery datatable.net change row color based on value of cell

  16. 16

    How to add a row and change cell value in DataGridView from a different thread?

  17. 17

    How to Change the row Background color based on cell value

  18. 18

    How can I change a wpf Databound grid cell based on the cell value?

  19. 19

    If value in Row 2 appears in Row 1 then change the cell colour in Row 3

  20. 20

    Change color of cell in Grid (Vaadin)

  21. 21

    Excel Change value of each cell with a value in row to count+1 of cells with values in row

  22. 22

    How to change cell value down one column into another but change the row value?

  23. 23

    Get value of clicked cell on grid

  24. 24

    move Rows up and down or change row color if the row cell value are the same gridview devexpress winforms c#?

  25. 25

    Change Cell Value if There is Overflow

  26. 26

    Cell value change with Month

  27. 27

    Change value of cell in Javascript

  28. 28

    If no Image, change row cell height

  29. 29

    If no Image, change row cell height

HotTag

Archive