Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:15+00:00 2026-05-26T05:34:15+00:00

I have a grid bound to a form the forms submit action is to

  • 0

I have a grid bound to a form the forms submit action is to update the loaded record if there is one and add a new record if its a blank form. but if I select a record first and then call

myGrid.getSelectionModel().deselectAll();
myform.getForm().reset(); 

to clear the form so I can add a new record it overwrites the previously selected record with an update.

record = myform.getRecord();
if(record){
record.set(values);
}

shouldn’t myform.getRecord(); be null after a reset? how do I clear the record selection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:34:16+00:00Added an answer on May 26, 2026 at 5:34 am

    In short, no, it shouldn’t and you don’t have legal approaches to clear the record after the first time you load anything via loadRecord.
    Although, you could still do myform.getForm()._record = null assignment, I would strongly object against that, as it may break some internal functionality by ExtJS.

    Here is an extract from ExtJS API:

    getRecord() : Ext.data.Model
    Returns the last Ext.data.Model instance
    that was loaded via loadRecord

    And it does exactly that, returns the last record loaded via loadRecord.

    Here are some sources:

    getRecord: function() {
        return this._record;
    },
    
    loadRecord: function(record) {
        this._record = record;
        return this.setValues(record.data);
    },
    

    Actually, those are the only methods of Ext.form.Basic (an instance of which is returned by getForm()) dealing with this._record field.

    As for reset

    reset: function() {
        var me = this;
        me.batchLayouts(function() {
            me.getFields().each(function(f) {
                f.reset();
            });
        });
        return me;
    },
    

    As you could see, reset has nothing to do with the record returned by getRecord(), it’s just resetting field values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid bound from a mysql db table via c#. Is there
Baby steps rolling... I have a form with a data grid bound to a
I have one form open and then I go to the table and update
I have a grid bound to a BindingSource which is bound to DataContext table,
I have set up a grid and bound it to a collection. I can
I have a grid (DevExpress XtraGrid, if that matters) which is bound to a
I have a grid that has multiple rows. I want to hide/show one of
VB .NET 4 WinForms application. I have a (DevExpress) grid bound to an IEnumerable(Of
I have a BindingList<T> which is bound to a datagridview. One property in my
I have a data grid bound to a data source in the typical way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.