title: How to define a custom function to rowClick in react-admin datagrid?
body: <p>I'm building an app with react-admin, I have an organizations resource and programs resource.
  each program has relation to one organization.
  (saved in mongoDB anf I have a node server)</p>
  <p>I created a custom list to organizations resource.</p>
  <pre><code> &lt;List {...props}&gt;
      &lt;Datagrid rowClick={programsRowClick}&gt;
          &lt;TextField source=&quot;name&quot; /&gt;
          &lt;EditButton  /&gt;
      &lt;/Datagrid&gt;
  &lt;/List&gt;
  </code></pre>
  <p>I want when we click on organization row to recieve all the programs that have the same organizationId.</p>
  <p>the API is: https://localhost:4000/api/organization/${id}/programs</p>
  <p>I tried to create a custom function <strong>programsRowClick</strong> but I dont realy understand what should it return?</p>
  <p>the react run on  https://localhost:3000
  the server run on https://localhost:4000/api</p>
  <p>could you help me?</p>
  <p>thank's!</p>