| <telerik:RadGrid ID="RadGrid1" AllowSorting="true" AllowPaging="true" AllowFilteringByColumn="true" |
| AutoGenerateColumns="false" runat="server"> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" HeaderText="Id" DataType="System.Guid" Visible="false" /> |
| <telerik:GridBoundColumn DataField="Title" HeaderText="Title" /> |
| <telerik:GridBoundColumn DataField="Cause.Name" HeaderText="Cause"/> |
| <telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" DataFormatString="{0:d}" DataType="System.DateTime"/> |
| </Columns> |
| </MasterTableView> |
| <PagerStyle AlwaysVisible="true" /> |
| <ClientSettings> |
| <DataBinding Location="WebService.asmx" |
| SelectMethod="GetEvents" SelectCountMethod="GetEventCount" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| {"d":{"__type":"EventDTO","EntityId":"20669908-bf86-4d72-90b0-38239eb6dfa5", |
| "Type":{"Name":"Entertainment","Description":"Test","Id":"1228a7b5-43e1-4cd5-b66d-b4afd43004b7", "CreateDate":"\/Date(1240385834617)\/","LastUpdatedDate":"\/Date(1240385834617)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,35,152]}, |
| "Cause":{"Name":"Global Warming1","Description":"Test","Id":"399fcb2e-0bdc-4e4b-879f-0ee0e97a5db5", |
| "CreateDate":"\/Date(1240384333727)\/","LastUpdatedDate":"\/Date(1248085361140)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,164,19]},"Title":"97979978978","Sites":null,"Location":"Pakistan","Description":"Testing Description \n", "StartDate":"\/Date(1240574400000)\/","CompletionDate":"\/Date(1246230000000)\/","RequiresVolunteerApproval":false,"Id":"0da73022-7d8d-4f79-a108-61c916a49fe8","CreateDate":"\/Date(1240389765160)\/","LastUpdatedDate":"\/Date(1240389765160)\/","DeletedDate":null,"TimeStamp":[0,0,0,0,0,0,148,192]}} |
| protected void SelectedDateChange(object sender, Telerik.WebControls.Base.Calendar.Events.SelectedDatesEventArgs e) |
| { |
| objDailyReportBL = new DailyReportBL(); |
| objDailyReportSchema = new DailyReportSchema(); |
| objRoleMasterBL = new RoleMasterBL(); |
| objRoleMasterSchema = new RoleMasterSchema(); |
| if (e.SelectedDates.Count > 0) |
| { |
| IsHoliday = false; |
| if (e.SelectedDates[0].Date.DayOfWeek == DayOfWeek.Sunday) |
| { |
| IsHoliday = true; |
| } |
| else |
| { |
| if (dstHolidayList != null) |
| { |
| if (dstHolidayList.Tables.Count > 0) |
| { |
| if (dstHolidayList.Tables[0].Rows.Count > 0) |
| { |
| DataRow[] foundRows = dstHolidayList.Tables[0].Select("HolidayDate='" + e.SelectedDates[0].Date + "'"); |
| if (foundRows.Length != 0) |
| { |
| IsHoliday = true; |
| } |
| } |
| } |
| } |
| } |
| if (QueryStringProfileEmployeeID != Guid.Empty) |
| { |
| if (SessionRoleName != MasterDataHelper.USER_BDE && SessionRoleName != MasterDataHelper.USER_ADMIN) |
| { |
| if (e.SelectedDates[0].Date > SessionLastSubmittedDate || SessionLastSubmittedDate.IsNull) |
| { |
| Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.SuperiorCantViewDailyReportUntilSelfSubmits + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>"); |
| return; |
| } |
| } |
| objDailyReportSchema = objDailyReportBL.DailyReportRetrieve(SqlDateTime.Parse(e.SelectedDates[0].Date.ToString()), QueryStringProfileEmployeeID); |
| if ((objDailyReportSchema != null) && (objDailyReportSchema.IsReportSubmitted)) |
| { |
| Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&pid=" + GetProfileEmployeeID.ToString() + "&holiday=" + IsHoliday); |
| } |
| else |
| { |
| Response.Write("<script language=javascript>alert(' " + MoleKule.Resources.Molekule.DailyReportNotYetSubmitted + "');self.location=('DailyReport.aspx?pid=" + GetProfileEmployeeID.ToString() + "');</script>"); |
| //Response.Redirect(MasterDataHelper.NAVIGATE_CLIENT_DAILYREPORT + "?pid=" + QueryStringProfileEmployeeID.ToString()); |
| } |
| } |
| else |
| { |
| SqlDateTime WebConfigDT, ReportStartDate, DOJ, DateOfAct, PreDt; |
| DateOfAct = SqlDateTime.Null; |
| DOJ = SqlDateTime.Null; |
| DataSet dstDailyReport; |
| objDailyReportBL = new DailyReportBL(); |
| dstDailyReport = objDailyReportBL.DailyReportGetDOJAndDtOfActivation(SessionProfileEmployeeID); |
| if (dstDailyReport.Tables.Count > 0) |
| if (dstDailyReport.Tables[0].Rows.Count > 0) |
| { |
| DateOfAct = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["ActivationDate"].ToString()); |
| DOJ = SqlDateTime.Parse(dstDailyReport.Tables[0].Rows[0]["JoiningDate"].ToString()); |
| } |
| try |
| { |
| WebConfigDT = SqlDateTime.Parse(ConfigurationManager.AppSettings["DailyReportStartDate"].ToString()); |
| } |
| catch (Exception) |
| { |
| Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>"); |
| //WebConfigDT = SqlDateTime.Null; |
| return; |
| } |
| if (!WebConfigDT.IsNull) |
| { |
| ReportStartDate = WebConfigDT; |
| if (DOJ > ReportStartDate) |
| ReportStartDate = DOJ; |
| if (DateOfAct > ReportStartDate) |
| ReportStartDate = DateOfAct; |
| if (e.SelectedDates[0].Date < ReportStartDate) |
| { |
| DateTime tmp = Convert.ToDateTime(ReportStartDate.ToString()); |
| Response.Write("<script language=javascript>alert(' " + "Your start date of daily report is " + tmp.ToString("dd/MM/yyyy") + ". You can create report from " + tmp.ToString("dd/MM/yyyy") + " onwards." + "');self.location=('DailyReport.aspx');</script>"); |
| //Response.Redirect("DailyReport.aspx"); |
| return; |
| } |
| } |
| else |
| { |
| Response.Write("<script language=javascript>alert(' " + "Report can't submit. Contact Admin." + "');self.location=('DailyReport.aspx');</script>"); |
| return; |
| } |
| objRoleMasterSchema = objRoleMasterBL.RoleMasterRetrieveByProfileEmployeeID(SessionProfileEmployeeID); |
| if (objRoleMasterSchema.RoleName != MasterDataHelper.USER_ADMIN) |
| { |
| Response.Redirect(MasterDataHelper.NAVIGATE_DAILYREPORT + (e.SelectedDates[0]).Date.ToString() + "&holiday=" + IsHoliday); |
| } |
| } |
| } |
| } |
if (args.get_eventTarget().indexOf("DownloadPDF") > 0)
args.set_enableAjax(
false);
ClientEvents-OnRequestStart
="requestStart"

<telerik:GridTemplateColumn HeaderText="Answer" UniqueName="AnswerOptions">
<HeaderStyle HorizontalAlign="Left" Width="150px"/>
<ItemTemplate>
<asp:dropdownlist id="ddloptions" runat="server" >
</asp:dropdownlist>
</ItemTemplate>
</telerik:GridTemplateColumn>
I have searched the forum for this issue without success and your online example is too simiplistic to adapt.
I have 4 grids on a page, each representing a separate db table, and the schema for each table is different. I need to drag rows from 3 of the grids to the 4th to form new records aggregating the data from the 3 source tables. I know how to capture the contents of the 4th grid and to update the db. My problem is getting the rows from each of the 3 source grids to stick to the 4th grid.
RadGrid_1 -----------
|
RadGrid_2 -------------------> RadGrid_4
|
RadGrid_3 -----------
Can this even be done? If so, is there a reference implementation somewhere?
<tk:RadEditor ID="txt" runat="server" Width="80%" Height="290px" ToolsFile="~/Editor/BasicEditTools.xml"
EditModes="Design">
</tk:RadEditor>
<cc1:ValidatorCalloutExtender ID="VCRequiredText" runat="server" TargetControlID="RequiredText">
</cc1:ValidatorCalloutExtender>
<
asp:RequiredFieldValidator ID="RequiredText" runat="server" ControlToValidate="txt"
SetFocusOnError="True" Display="None" ErrorMessage="Please enter text...."></asp:RequiredFieldValidator>
