I would like to tie the validation trigger to a radbutton that is external to a radgrid.
Example:
<telerik:RadButton ID="btnAddStatusComplete" runat="server" Text="Complete" OnClick="btnAddStatusComplete_Click">
</telerik:RadButton>
<telerik:RadGrid ID="rgAddStatusJustify" runat="server" AutoGenerateColumns="false" AllowPaging="false" AllowFilteringByColumn="false"
OnBatchEditCommand="rgAddStatusJustify_BatchEditCommand"
OnDeleteCommand="rgAddStatusJustify_DeleteCommand" OnNeedDataSource="rgAddStatusJustify_NeedDataSource" OnItemDataBound="rgAddStatusJustify_ItemDataBound">
<MasterTableView Width="100%" AutoGenerateColumns="false" DataKeyNames="itemName" EditMode="Batch">
<BatchEditingSettings EditType="Cell" HighlightDeletedRows="true"/>
<Columns>
<telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" />
<telerik:GridBoundColumn DataField="itemDescription" HeaderText="Item Description" ReadOnly="True" SortExpression="itemDescription" ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="userComment" HeaderText="Justification" UniqueName="userComment">
<ItemStyle BorderStyle="Solid" Width="200" />
<ColumnValidationSettings EnableRequiredFieldValidation="true">
<RequiredFieldValidator ForeColor="Red" Text="*Comment is required" Display="Dynamic"></RequiredFieldValidator>
</ColumnValidationSettings>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
I want the userComment field filled in for all rows prior to a postback being triggered by btnAddStatusComplete_Click. Preferably the validation text will show up once they click "Complete" but am open to other/better approaches.
Thank you