Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created February 15, 2022 17:20
Show Gist options
  • Save BrianMRO/7ad3ce7b72f84476f560da2acdef7562 to your computer and use it in GitHub Desktop.
Save BrianMRO/7ad3ce7b72f84476f560da2acdef7562 to your computer and use it in GitHub Desktop.
Make Smart Panel Grid refresh on open
<px:PXSmartPanel
runat="server"
ID="PnlSSCSHistory"
CommandSourceID="ds"
Caption="History"
CaptionVisible="True"
Height="400px"
Width="800px"
LoadOnDemand="true"
Key="History"
AutoCallBack-Command="Refresh" AutoCallBack-Target="CstPXGrid34" CreateOnDemand="True"
>
<px:PXGrid AllowPaging="True" Width="100%" DataSourceID="ds" SkinID="Inquire" runat="server" ID="CstPXGrid34">
<Levels>
<px:PXGridLevel DataMember="History" >
<Columns>
<px:PXGridColumn DataField="ToolNbr" Width="140" ></px:PXGridColumn>
<px:PXGridColumn DataField="RequesterID" Width="70" ></px:PXGridColumn>
<px:PXGridColumn DataField="CustomerLocationID" Width="70" ></px:PXGridColumn>
<px:PXGridColumn DataField="DateOut" Width="90" ></px:PXGridColumn>
<px:PXGridColumn DataField="DateDue" Width="90" ></px:PXGridColumn>
<px:PXGridColumn DataField="DateIn" Width="90" ></px:PXGridColumn>
</Columns>
</px:PXGridLevel>
</Levels>
<AutoSize Enabled="True" ></AutoSize>
</px:PXGrid>
<px:PXPanel runat="server" ID="CstPanelSSCS3" SkinID="Buttons">
<px:PXButton runat="server" ID="CstHistory" DialogResult="OK" Text="OK" CommandSourceID="ds" ></px:PXButton>
</px:PXPanel>
</px:PXSmartPanel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment