<telerik:RadGrid ID="groups" runat="server" AllowPaging="true" DataSourceID="dsGroups"> <MasterTableView CommandItemDisplay="Top" AllowAutomaticInserts="true" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true" AutoGenerateColumns="false" DataKeyNames="GroupId"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" /> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" /> <telerik:GridBoundColumn DataField="Description" HeaderText="Description" /> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" /> </Columns> </MasterTableView></telerik:RadGrid><asp:DomainDataSource ID="dsGroups" runat="server" DomainServiceTypeName="DataSources.GroupsDomainService" EnableDelete="True" EnableInsert="True" EnableUpdate="True" QueryName="GetGroups"></asp:DomainDataSource>An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
my rad upload is in a format tempelate which is in the details table of rad grid , i want to implement required field validation on the upload control , i am attaching the markup with the post for your further convenience , thnx
<telerik:GridTableView DataKeyNames="IncomingDocumentRegisterPA.Id,Id" Name="IncDocRegInit"
Width="100%" CommandItemDisplay="Top" EditMode="EditForms">
<EditFormSettings EditFormType="Template" PopUpSettings-Height="260px" PopUpSettings-Width="400px"
PopUpSettings-Modal="true">
<FormTemplate>
<div class="BoxHeadFull">Selection of initiator by personal assistant(PA)</div>
<!-- INSIDE CHROME -->
<asp:ValidationSummary ID="vsInitiator" ValidationGroup="vgrpInitiator" runat="server"
ShowMessageBox="true" />
<table border="0" cellspacing="0" cellpadding="0" width="100%">
</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" class="FormTextBlue">Select scanned document<span class="FormRequiredField"> * </span></td>
<td bgcolor="#ffffff" align="left">
<span class="FormText">
<telerik:RadUpload ID="rfScannedDocument" InitialFileInputsCount="1" MaxFileInputsCount="1" ControlObjectsVisibility="None" runat="server"></telerik:RadUpload>
<%
-- <asp:CustomValidator ID="ValidateUpload" ControlToValidate="rfScannedDocument" runat="server" ErrorMessage="CustomValidator" OnServerValidate="ServerValidation"></asp:CustomValidator>--%>
</span>
</td>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
</
telerik:RadGrid>
function OnClientAppointmentClick(sender, e) { var x = newWin('../Tasks/Task.aspx?tid=1', '700', '700', 'S'); return false; } function OnClientTimeSlotClick(sender, args) { var x = newWin('../Tasks/Task.aspx', '700', '700', 'S'); return false; } </script>-------------------------------------------------- <telerik:RadScheduler runat="server" ID="RadScheduler1" Height="600px" DayStartTime="00:00:00" DayEndTime="23:00:00" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" AppointmentStyleMode="Default" ShowResourceHeaders="false" DataReminderField="Reminder" SelectedView="WeekView" ShowFooter="false" FirstDayOfWeek="Monday" LastDayOfWeek="Saturday" OnClientAppointmentClick="OnClientAppointmentClick" OnClientTimeSlotClick="OnClientTimeSlotClick" ShowHoursColumn="false" ShowAllDayRow="false" ShowFullTime="false" ShowViewTabs="false"> <AdvancedForm Modal="true" Enabled="false" /> <TimelineView UserSelectable="false" /> <TimeSlotContextMenuSettings EnableDefault="false" /> <AppointmentContextMenuSettings EnableDefault="false" /> <Reminders Enabled="false" /> </telerik:RadScheduler>