7 Answers, 1 is accepted

I am trying to do the same thing. There's a link to show examples, but I can't get to work. Let me know if you can...
http://www.telerik.com/help/aspnet/grid/grdvalidation.html
Here is the validation example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/Validation/DefaultCS.aspx
Greetings,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center

Gary

It worked for me, all you have to do is to create a GridTempleteColumn and creat a lable to view the data inside the ItemTeplate tags then create the EditItemTemplate with the textbox and the RequiredFieldValidator no code is required. Here is my aspx that worked, hope it helps you.
<radG:GridTemplateColumn HeaderText="FaxDep" SortExpression="FaxDep" UniqueName="TemplateColumn"> |
<HeaderStyle Width="80px" /> |
<ItemTemplate> |
<asp:Label runat="server" ID="lblFaxDep" Text='<%# Eval("FaxDep") %>'></asp:Label> |
</ItemTemplate> |
<EditItemTemplate> |
<asp:TextBox runat="server" ID="tbFaxDep" Text='<%# Bind("FaxDep") %>'></asp:TextBox><span style="color: Red">*</span> |
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbFaxDep" |
ErrorMessage="This field is required" runat="server"> |
</asp:RequiredFieldValidator> |
</EditItemTemplate> |
</radG:GridTemplateColumn> |
Shehab

<telerik:RadGrid ID="RadGridCageCode" runat="server" AllowFilteringByColumn="False"AllowPaging="True" AllowSorting="True" GridLines="None" Skin="Vista" EnableAJAX="true" width="80%" Height="300px" DataSourceID="ObjectDataSourceCageCode" PagerStyle-Mode="NextPrevNumericAndAdvanced" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnInit="RadGridCageCodeLookup_Init" OnItemCommand="RadGridCageCodeLookup_ItemCommand"
OnInsertCommand="RadGridCageCodeLookup_InsertCommand"
OnItemInserted="RadGridCageCodeLookup_ItemInserted"
OnDeleteCommand="RadGridCageCodeLookup_DeleteCommand" OnItemDeleted="RadGridCageCodeLookup_ItemDeleted" OnUpdateCommand="RadGridCageCodeLookup_UpdateCommand" OnItemUpdated="RadGridCageCodeLookup_ItemUpdated"
OnItemCreated="RadGridCageCodeLookup_ItemCreated"
OnColumnCreated="RadGridCageCodeLookup_ColumnCreated" OnItemDataBound="RadGridCageCodeLookup_ItemDataBound" >
<ClientSettings >
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Selecting AllowRowSelect="false" />
<ClientEvents />
</ClientSettings>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView AllowMultiColumnSorting="True" PageSize="5" CommandItemDisplay="TopAndBottom" AutoGenerateColumns="False" DataKeyNames="CageCodeID" DataSourceID="ObjectDataSourceCageCode">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="~\RadControls\Skins\Vista\Grid\Update.gif" EditImageUrl="~\RadControls\Skins\Vista\Grid\Edit.gif" InsertImageUrl="~\RadControls\Skins\Vista\Grid\AddRecord.gif" CancelImageUrl="~\RadControls\Skins\Vista\Grid\Cancel.gif"
UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField="CageCodeID" DataType="System.Int32" HeaderText="CageCodeID" ReadOnly="True" SortExpression="ID" UniqueName="CageCodeID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ManufacturerID" DataType="System.Int32" HeaderText="Mfg ID" SortExpression="ManufacturerID" UniqueName="ManufacturerID" visible="false" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CageCode" HeaderText="Cage Code" SortExpression="CageCode" UniqueName="CageCode" >
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Address" SortExpression="Address" UniqueName="Addresstemplate" >
<ItemTemplate>
<asp:Label runat="server" ID="lblAddress" Text='<%# Eval("Address") %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" ID="tbAddress" Text='<%# Bind("Address") %>' />
<span style="color: Red">*</span><asp:RequiredFieldValidator ID="rvalAddress" ControlToValidate="tbAddress" ErrorMessage="Address is required!" runat="server"></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Address2" HeaderText="Address 2" SortExpression="Address2" UniqueName="Address2" ConvertEmptyStringToNull="false" >
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this record?" ButtonType="ImageButton" ImageUrl="~\RadControls\Skins\Vista\Grid\Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
<HeaderStyle Width="20px" />
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Gary

