Gridpanel Cell Updating from CodeBehind (Ext.net 2.x)

  1. #1

    [SOLVED] Gridpanel Cell Updating from CodeBehind (Ext.net 2.x)

    Hi,
    in my 1.x version of the code I used the following method (working well) from the codebehind to update the selected row of GridPanel1:


    RowSelectionModel sm = Gridpanel1.SelectionModel.Primary as RowSelectionModel;
    sm.SelectRow(sm.SelectedIndex);
    Gridpanel1.UpdateCell(sm.SelectedIndex, "ColumnID", columnValue);
    How can I do the same with Ext.Net 2.x (2.3.1)?

    Thanks.

    Stefano
    Last edited by stebag; Nov 04, 2013 at 8:42 PM.
  2. #2

    [SOLVED] Gridpanel Cell Updating from CodeBehind (Ext.net 2.x)

    Quote Originally Posted by stebag View Post
    Hi,
    in my 1.x version of the code I used the following method (working well) from the codebehind to update the selected row of GridPanel1:


    RowSelectionModel sm = Gridpanel1.SelectionModel.Primary as RowSelectionModel;
    sm.SelectRow(sm.SelectedIndex);
    Gridpanel1.UpdateCell(sm.SelectedIndex, "ColumnID", columnValue);
    How can I do the same with Ext.Net 2.x (2.3.1)?

    Thanks.

    Stefano
    Solved using:
    RowSelectionModel sm = GridPanel1.SelectionModel.Primary as RowSelectionModel;
    Store Store1 = GridPanel1.GetStore();
    Store1.GetAt(sm.SelectedIndex).Set("<ColumnID>", value);
  3. #3
    Thank you for update!

Similar Threads

  1. Replies: 0
    Last Post: May 29, 2013, 7:12 AM
  2. [CLOSED] updating a grid's cell not working
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 23, 2012, 9:09 PM
  3. Replies: 1
    Last Post: Jul 10, 2012, 11:16 AM
  4. [CLOSED] Data Store not updating record mapping from codebehind
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 08, 2010, 4:42 PM
  5. Example: Updating a Grid Cell programatically
    By Juls in forum Examples and Extras
    Replies: 1
    Last Post: Apr 08, 2009, 1:44 PM

Tags for this Thread

Posting Permissions