web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps grid contro...
Power Apps
Unanswered

Power Apps grid control onRecordSelect, How can I get the GridContext?

(0) ShareShare
ReportReport
Posted on by 2

Hi,

Im working with the new Power Apps Grid control,

  • Configured the control as editable in the Sub-Grid

SetPropertiesControls.png

  • Add a JavaScript function on event "onRecordSelect" and check "Pass execution context as first parameter"

SetProperties.png

Handler Properties.png

I want to disable some cells from javascript function but I dont know how can I get the gridContext functions in order to disable cells.

 

 

 

var ContactsGrid = window.ContactsGrid || {};
(function () {
 this.onRecordSelect = function (executionContext) {
 console.log(executionContext);
 }
}).call(ContactsGrid);

 

 

 

The execution context object.

executionContext.png

 

Categories:
I have the same question (0)
  • MarcusBW Profile Picture
    8 on at

    Following.  Looking to do the same thing.

  • Gowri Halan Profile Picture
    262 on at

    was the javascript trigerring on record select event? I registered a JS function but code is not trigerring on selecting record. And it not working for power apps grid. Normal editable grid works fine.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard