
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
if (e.Item is GridEditFormInsertItem)
{
((e.Item as GridEditFormItem).FindControl("PerformInsertButton") as LinkButton).ValidationGroup = "Test";
}
else
{
((e.Item as GridEditFormItem).FindControl("UpdateButton") as LinkButton).ValidationGroup = "Test";
}
}
my issues is every time before validate control fired griditemcommand event ...
please please hepl me
thanks in advance

Is there any way to create an AppointmentCollection and manually fill with Appointment objects, along the lines of:
Create new AppointmentCollection
Grab Appointments from database
Loop through, add new Appointment objects to AppointmentCollection
Call AppointmentCollection.GetAppointmentsInRange
Currently I am doing this, but there must be an easier way to do without having to use a RadScheduler.
| // Check for a conflict |
| var appointments = dc.Appointments.Select(b => b.IsCancelled == false); |
| RadScheduler scheduler = new RadScheduler(); |
| scheduler.DataKeyField = "AppointmentID"; |
| scheduler.DataSubjectField = "Subject"; |
| scheduler.DataStartField = "Start"; |
| scheduler.DataEndField = "End"; |
| scheduler.DataRecurrenceField = "RecurrenceRule"; |
| scheduler.DataRecurrenceParentKeyField = "RecurrenceParentID"; |
| scheduler.DataSource = appointments; |
| scheduler.DataBind(); |
| return scheduler.Appointments.GetAppointmentsInRange(startTime, endTime).Count == 0; |
Cheers,
Mike

<telerik:RadNumericTextBox ID="txtSomeData" runat="server" Font-Names="tahoma, sans-serif" Font-Size="11px" MaxLength="5" MaxValue="24" MinValue="0" Width="90px" ShowSpinButtons="true" Type="Number" Value="0.0"> <NumberFormat DecimalDigits="2" PositivePattern="n hours" DecimalSeparator="." AllowRounding="true" /> <InvalidStyle ForeColor="Crimson" /> <EnabledStyle HorizontalAlign="Center" CssClass="fieldlabelSmall" /></telerik:RadNumericTextBox>