Skip to main content
Question

Does anyone know why my RowSelected event is not triggered on Row Change.

  • Aug 20, 2024 7:24 AM UTC
  • 2 replies
  • 191 views
  • Translate All

aaghaei
Captain II
Forum|alt.badge.img+11

Hello All,

I have a very simple list grid with one DAC is assigned to it. The DAC only has one Key Field and it is correctly defined. My data loads correctly without any error. The Row Selected event is fired when initially page is loaded. The problem I am facting is that the RowSelected event is not fired when I chnge row. below is the page.

<%@ Page Language="C#" MasterPageFile="~/MasterPages/ListView.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="HC3080DB.aspx.cs" Inherits="Page_HC3080DB" Title="Untitled Page" %>
<%@ MasterType VirtualPath="~/MasterPages/ListView.master" %>

<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%" TypeName="HCL.Custom.Stockmeister.HCLEPEmployeeTrainingMaint" PrimaryView="EmployeeTraining">
<CallbackCommands>
<px:PXDSCallbackCommand Name="Save" CommitChanges="True" />
</CallbackCommands>
</px:PXDataSource>
</asp:Content>
<asp:Content ID="cont2" ContentPlaceHolderID="phL" runat="Server">
<px:PXGrid ID="grid" runat="server" DataSourceID="ds" Width="100%" Height="150px" SkinID="Primary" AllowAutoHide="false" AllowPaging="False" AllowSearch ="True" RepaintColumns="True" SyncPosition="True" AutoGenerateColumns="AppendDynamic">
<Levels>
<px:PXGridLevel DataMember="EmployeeTraining">
<Columns>
<px:PXGridColumn DataField="EmployeeID" CommitChanges="True" Width="120px" />
<px:PXGridColumn DataField="EmployeeCD" CommitChanges="True" Width="120px" />
<px:PXGridColumn DataField="EmployeeName" CommitChanges="True" Width="200px" />
<px:PXGridColumn DataField="CourseID" CommitChanges="True" Width="120px" />
<px:PXGridColumn DataField="ExpiryDate" CommitChanges="True" Width="120px" />
<px:PXGridColumn DataField="CourseExpiry" CommitChanges="True" Width="500px" />
</Columns>
</px:PXGridLevel>
</Levels>
<AutoSize Container="Window" Enabled="True" MinHeight="150" />
<ActionBar >
</ActionBar>
</px:PXGrid>
</asp:Content>

 

2 replies

Forum|alt.badge.img+1
  • Jr Varsity I
  • Sep 3, 2024 12:53 PM UTC

Hi aaghaei

 

Can you try adding  <RowTemplate> section to your grid and check if it works?
For example 

<RowTemplate>
<px:PXDateTimeEdit runat="server" ID="edExpiryDate" DataField="ExpiryDate" CommitChanges="True"/>
</RowTemplate>

 

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • Sep 30, 2024 10:28 PM UTC

Hi @aaghaei were you able to find a solution? Thank you!

Translate