Hi All,
I am using RadClientDataSource for binding radgrid. I want to create Required field validation for one column. so that i created one GridTemplateColumn. but that column not binding data. please check my code and let us know what needs to be done.
<telerik:GridTemplateColumn DataField="description" UniqueName="description" HeaderText="Description">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%# Eval("description") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox ID="rtbDescription" runat="server" Text='<%# Bind("description") %>'></telerik:RadTextBox>
<asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="rtbDescription" Display="Dynamic"
ErrorMessage="Please enter Description" ForeColor="Red" ></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<%--<telerik:GridBoundColumn DataField="description" HeaderText="Description" ColumnEditorID="GridTextBoxEditor">
</telerik:GridBoundColumn>--%>
Thanks in Advance,
Dhamu
I am using RadClientDataSource for binding radgrid. I want to create Required field validation for one column. so that i created one GridTemplateColumn. but that column not binding data. please check my code and let us know what needs to be done.
<telerik:GridTemplateColumn DataField="description" UniqueName="description" HeaderText="Description">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%# Eval("description") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox ID="rtbDescription" runat="server" Text='<%# Bind("description") %>'></telerik:RadTextBox>
<asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="rtbDescription" Display="Dynamic"
ErrorMessage="Please enter Description" ForeColor="Red" ></asp:RequiredFieldValidator>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<%--<telerik:GridBoundColumn DataField="description" HeaderText="Description" ColumnEditorID="GridTextBoxEditor">
</telerik:GridBoundColumn>--%>
Thanks in Advance,
Dhamu