This is a migrated thread and some comments may be shown as answers.

[Solved] Rad Grid TemplateColums Validations

1 Answer 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
waruni
Top achievements
Rank 1
waruni asked on 24 Feb 2010, 03:09 PM

Hi,

In Rad grid Control, There are 3 Template Columns (Start time ,end time and Today ) and it has two Rad Time Picker control for      Edit Item Template and check box for Today column.

I'm using the master page as well.

<telerik:GridTemplateColumn HeaderText="Starttime" UniqueName="Starttime" >     
            <EditItemTemplate>     
                <telerik:RadTimePicker ID="rtpStartTime" runat="server">      
                </telerik:RadTimePicker>     
             </EditItemTemplate>     
            <ItemTemplate>     
                <asp:Label ID="lblStarttime" runat="server" Text='<%# Eval("StartTime","{0:t}") %>'></asp:Label>     
            </ItemTemplate>     
        </telerik:GridTemplateColumn>     
              
         <telerik:GridTemplateColumn HeaderText="End time" UniqueName="EndTime">      
            <EditItemTemplate>     
                <telerik:RadTimePicker ID="rtpEndTime" runat="server"        
                </telerik:RadTimePicker>                      
            </EditItemTemplate>     
            <ItemTemplate>     
                <asp:Label ID="lblEndTime" runat="server" Text='<%# Eval("EndTime", "{0:t}") %>'></asp:Label>     
            </ItemTemplate>    
 </telerik:GridTemplateColumn> 
 
<telerik:GridTemplateColumn HeaderText="Today" UniqueName="Today">      
            <EditItemTemplate>     
                <asp:CheckBox ID="CheckBox1"  runat="server"
            </asp:CheckBox>                     
            </EditItemTemplate>     
            <ItemTemplate>     
                <asp:CheckBox ID="CheckBox2"  runat="server" Checked='<%# Eval("Today") %>'
            </asp:CheckBox> 
            </ItemTemplate>  
 </telerik:GridTemplateColumn>   

I want to validate that end time value is greater than the start time when today check box was checked.

how to use the validation control, and how to show the error messages in validation summary?.

Can you plz tell me the way of doing this.because this is urgent.

thanks
waruni

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 26 Feb 2010, 11:45 AM
Hello Waruni,

Please take a look at the following forum threads elaborating on the same topic to see how the desired functionality can be achieved:
Rad Grid TemplateColums Validate
Rad Grid TemplateColums Compare Validator

I hope you find them useful.

All the best,
Mira
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
waruni
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or