I have a page where a radgrid holds a nested view template that expands and displays a RadTabStrip. Therefore, if more than one row is expanded, then more than one RadTabStrip is on the page at one time.
When a tab is selected, I perform some client side actions.
On PreRender, this function is called:
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
Dim txt As String = MatchesTabStrip1.SelectedTab.Text
....ExecuteClientScript("resetFunctionLinks('" & MatchesTabStrip1.ClientID & "','" & txt & "')")
End Sub
This is the client side function that passes in the tabStrip object into another function:
function resetFunctionLinks(myTab,txt) {
if (myTab) {
configureFunctionLinks(myTab,txt);
}}
When a tab is selected, I want to pass the tab strip into the same function as above (configureFunctionLinks():
function OnClientTabSelected(sender, eventArgs) {
var tab = eventArgs.get_tab();
var txt = tab.get_text();
var tabStrip = tab.get_tabStrip();
configureFunctionLinks(tabStrip, txt);
}
This (var tabStrip = tab.get_tabStrip();) is not correctly obtaining the RadTadStrip object and passing it into the function in the same manner that the “resetFunctionLinks” is handling it.
What am I missing?
Hi,
i am using an XML data file for my scheduler, i am dynamically creating the file and storing on the disk in this location(
Server.MapPath(
"~/App_Data/Calendar.xml")), everything is working fine as expected.
now i need to create the <RecurrenceRule> tag in the xml, i was looking at one example, but i am not sure how to create the RecurrenceRule String, please advice if there are any existing functions that i can use to build this string?
here is what i have for a training class and their corresponding formats
(1) StartDate (ex: "11/10/2010")
(2) EndDate (ex: "12/12/2010")
(3) StartTime (ex : "9:30AM")
(4) EndTime (ex: "1:30PM")
(5) Days of Week (ex: "Mon,Wed,Fri")
<Appointment> <ID>2</ID> <Subject>Technical meeting</Subject> <Start>2007-03-30T06:30Z</Start> <End>2007-03-30T07:30Z</End> <RecurrenceRule><![CDATA[ DTSTART:20070330T063000Z DTEND:20070330T073000Z RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20070406T210000Z;BYDAY=MO,TU,WE,TH,FR; ]]></RecurrenceRule> <Resources> <Room Key="1" /> <User Key="1" /> </Resources> <Attribute Key="CustomAttribute" Value="1" /> </Appointment><%@ Page Language="C#" AutoEventWireup="True" CodeBehind="EditSeminarRequest.aspx.cs" Inherits="iSmart.EditSeminarRequest" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>--%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Add/Edit Training</title> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script language="javascript" type="text/javascript"> function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well) return oWindow; } function Close() { GetRadWindow().Close(); } function displaydate() { var fromdate = $find("<%= rdtLeavingDt.ClientID%>"); var todate = $find("<%= rdtReturningDt.ClientID%>"); var fd = new Date(fromdate.get_selectedDate()); var td = new Date(todate.get_selectedDate()); var k = (td-fd)/(60*60*24*1000); if (k < 0) { document.getElementById("lblDays").innerHTML = "0"; document.getElementById("DaysHide").value = "0"; } else { document.getElementById("lblDays").innerHTML = k + 1; document.getElementById("DaysHide").value = k + 1; } } function validateDate() { var fromdate = $find("<%= rdtStartDate.ClientID%>"); var todate = $find("<%= rdtEndDate.ClientID%>"); var Leavingdate = $find("<%= rdtLeavingDt.ClientID%>"); var Returningdate = $find("<%= rdtReturningDt.ClientID%>"); if(fromdate.get_selectedDate() == null || todate.get_selectedDate() == null) { radalert("From and To date should not empty",260,160,"Alert"); return false; } if(Leavingdate.get_selectedDate() == null || Returningdate.get_selectedDate() == null) { radalert("Leaving and Returning date should not empty",260,160,"Alert"); return false; } var fd = new Date(fromdate.get_selectedDate()); var td = new Date(todate.get_selectedDate()); var k = (td-fd) / (60*60*24*1000); if (k <= 0) { alert("Please select valid Start and End Date",260,160,"Alert"); return false; } var Ld = new Date(Leavingdate.get_selectedDate()); var Rd = new Date(Returningdate.get_selectedDate()); var k = (Rd-Ld) / (60*60*24*1000); if (k <= 0) { radalert("Please select valid Leaving and Returning Date",260,160,"Alert"); return false; } var Ld = new Date(Leavingdate.get_selectedDate()); var Fd = new Date(fromdate.get_selectedDate()); var k = (Fd-Ld) / (60*60*24*1000); if (k < 0) { radalert("Please select valid Leaving and Start Date",260,160,"Alert"); return false; } var RD = new Date(Returningdate.get_selectedDate()); var ED = new Date(todate.get_selectedDate()); var k = (RD-ED) / (60*60*24*1000); if (k < 0) { radalert("Please select valid Returning and End Date",260,160,"Alert"); return false; } document.getElementById("<%=btnSaveHidden.ClientID%>").click(); } function HideAndShow() { if(document.getElementById("cbxCancellation").checked) document.getElementById("CancellationTR").style.display = "block"; else document.getElementById("CancellationTR").style.display = "none"; } function openAppliedTo() { var oWnd = radopen("AppliedToPopup.aspx?i=-1", "rwmAppliedTo"); } // function refreshAppliedTo(arg) // { // document.getElementById("btnHide").click(); // } function refreshMembers(arg) { document.getElementById("<%=btnRefreshMember.ClientID%>").click(); } function RowClick(sender, eventArgs) { // var oWnd = ""; if(document.getElementById("txtInvisiblergMemButton").value == "0") { if(eventArgs.getDataKeyValue("EmployeeStatus") == "Active") oWnd = radopen("AppliedToPopup.aspx?i="+eventArgs.getDataKeyValue("TrainingRequestNo")+"."+eventArgs.getDataKeyValue("TrnMembersNo")+"."+eventArgs.getDataKeyValue("DeptID")+"."+0, "rwmMembers"); else radalert("Updation not allowed for Inactive employee!",260,160,"Alert"); } } function NewMembers() { var oWnd = radopen("AppliedToPopup.aspx?i=0", "rwmMembers"); } function PostponedClick() { if(document.getElementById("txtTrnReqNo").value != "0") radconfirm("Are you sure you want to postponed this training?", confirmPostponedCallbackFunction, 280, 100, null, 'Confirm'); else radalert("This training has not saved so far! You are not allowed to postponed!",null,null,"Alert"); } function confirmPostponedCallbackFunction(args) { if (args) var oWnd = radopen("PostponedPopup.aspx", "rwPostponed"); else return false; } function btnClientClick(index) { document.getElementById("txtGetMembersIndex").value = index; radconfirm("Are you sure you want to Delete this Member?", confirmDelMemberCallbackFunction, 280, 100, null,'Confirm'); } function confirmDelMemberCallbackFunction(args) { if (args) radprompt('Please Enter Reason ', confirmpromptDelMemberCallbackFunction, 330, 160, null, 'Reason', ''); } function confirmpromptDelMemberCallbackFunction(args) { if (args) { document.getElementById("<%=txtHideForReason.ClientID%>").value=args; document.getElementById("<%=btnDelMembers.ClientID %>").click(); return true; } else if(args!=null) { radalert('Alert: Please Enter Reason!',260,160, "Alert"); return false; } } function SendForApproveClik(Deputy, index) { document.getElementById("txtHideForMailToOneRP").value = index; if(Deputy == 0) radconfirm("Are you sure you want to Send without Deputy?", confirmDeputyCallbackFunction, 280, 100, null,'Confirm'); else document.getElementById("btnHideForMailToOneRP").click(); } function confirmDeputyCallbackFunction(args) { if(args) { document.getElementById("btnHideForMailToOneRP").click(); return true; } else return false; } function SendMailToAllRP() { var ActiveEmpCount = 0; var InAciveEmpCount = 0; var rgMembersCount = $find("<%= rgMembers.ClientID %>").get_masterTableView().get_dataItems().length; var masterTable = $find("<%= rgMembers.ClientID %>").get_masterTableView(); for(i=0; i < rgMembersCount; i++) { if(masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[i], "DeputyID").innerHTML == 0 && masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[i], "EmployeeStatus").innerHTML == 'Active') { ActiveEmpCount++; document.getElementById("txtHideForMailToAllRP").value += masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[i], "UserName").innerHTML+","; } else InAciveEmpCount++; } if(ActiveEmpCount > 0) { radconfirm("No deputy assigned to "+document.getElementById("txtHideForMailToAllRP").value+". Do you want to proceed further?",confirmNoDeputycallback,300,100,null,'Confirm'); } else { document.getElementById("btnHideForMailToAllRP").click(); return true; } } function confirmNoDeputycallback(args) { document.getElementById("txtHideForMailToAllRP").value = ""; if(args) { document.getElementById("btnHideForMailToAllRP").click(); return true; } else return false; } function refreshMembers1(arg) { document.getElementById("<%=btnRefreshMember1.ClientID%>").click(); } </script> </telerik:RadScriptBlock> </head> <body class="BODY" style="display:block;"> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="true" DestroyOnClose="true" VisibleStatusbar="false" runat="server" Skin="WebBlue" Behaviors="Close,Resize" Modal="true" Width="500px" Height="300px"> <Windows> <telerik:RadWindow runat="server" DestroyOnClose="true" ID="rwmMembers" Width="600px" Height="400px" OnClientClose="refreshMembers"> </telerik:RadWindow> <telerik:RadWindow runat="server" DestroyOnClose="true" ID="rwPostponed" Width="480px" Height="275px" OnClientClose="refreshMembers1"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <telerik:RadAjaxManager runat="server" ID="radAjax" DefaultLoadingPanelID="LoadingPanel1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btnSendMailToRP"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="btnSendMailToRP" /> <telerik:AjaxUpdatedControl ControlID="rgMembers" LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnPostponed"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="btnPostponed" /> <telerik:AjaxUpdatedControl ControlID="rgMembers" LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnSave"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgMembers" LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <%--<telerik:AjaxSetting AjaxControlID="rgMDStatus"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgMDStatus" LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting>--%> </AjaxSettings> </telerik:RadAjaxManager> <div> <!--------------------------------------Seminar Info Start----------------------------------------> <table width="100%" runat="server" id="Total"> <tr> <td> <fieldset> <legend>Training</legend> <table id="tblSeminar" width="100%" runat="server"> <tr> <td> Type </td> <td> <telerik:RadComboBox ID="rcbReqType" runat="server" DataSourceID="SDSType" DataTextField="Name" DataValueField="Value" Skin="Vista" OnSelectedIndexChanged="rcbReqType_SelectedIndexChanged"> </telerik:RadComboBox> </td> <td colspan="2"> </td> </tr> <tr> <td> Start </td> <td> <telerik:RadDatePicker ID="rdtStartDate" runat="server" Skin="SkyBlue"> <DateInput runat="server" DateFormat="dd MMM yyyy"> </DateInput> </telerik:RadDatePicker> </td> <td> End </td> <td> <telerik:RadDatePicker ID="rdtEndDate" runat="server" Skin="SkyBlue"> <DateInput runat="server" DateFormat="dd MMM yyyy"> </DateInput> </telerik:RadDatePicker> </td> </tr> <tr> <td> Leaving </td> <td> <telerik:RadDatePicker ID="rdtLeavingDt" runat="server" Skin="SkyBlue"> <DateInput runat="server" DateFormat="dd MMM yyyy"> </DateInput> <ClientEvents OnDateSelected="displaydate" /> </telerik:RadDatePicker> </td> <td> Returning </td> <td> <telerik:RadDatePicker ID="rdtReturningDt" runat="server" Skin="SkyBlue"> <DateInput runat="server" DateFormat="dd MMM yyyy"> </DateInput> <ClientEvents OnDateSelected="displaydate" /> </telerik:RadDatePicker> </td> </tr> <tr> <td> Topic </td> <td> <telerik:RadTextBox ID="rtxtTopic" runat="server" Skin="SkyBlue"> </telerik:RadTextBox> </td> <td> Organizer </td> <td> <telerik:RadTextBox ID="rtxtOrganizer" runat="server" Skin="SkyBlue"> </telerik:RadTextBox> </td> </tr> <tr> <td> Venue </td> <td> <telerik:RadTextBox ID="rtxtVenu" runat="server" Skin="SkyBlue"> </telerik:RadTextBox> </td> <td> Location </td> <td> <telerik:RadTextBox ID="rtxtLocations" runat="server" Skin="SkyBlue"> </telerik:RadTextBox> </td> </tr> <tr> <td> Days </td> <td> <asp:Label ID="lblDays" runat="server"></asp:Label> </td> <td> </td> <td> </td> </tr> </table> </fieldset> </td> </tr> <tr> <td> <fieldset> <legend>Remarks</legend> <telerik:RadTextBox TextMode="MultiLine" MaxLength="250" Rows="2" ID="rtbRemarks" Width="100%" runat="server" Skin="Vista"> </telerik:RadTextBox> </fieldset> </td> </tr> <tr> <td> <div id="CancelationDiv" runat="server"> <fieldset> <legend>Cancellation</legend> <table width="100%" id="tblCancellation" runat="server"> <tr> <td nowrap="nowrap"> <asp:CheckBox ID="cbxCancellation" runat="server" onclick="HideAndShow();" /> Is the training cancelled? </td> </tr> <tr runat="server" id="CancellationTR" style="display: none;"> <td colspan="2"> <telerik:RadTextBox ID="rtxtCancelRemarks" Skin="Vista" runat="server" TextMode="MultiLine" Width="100%" Rows="2" MaxLength="250"> </telerik:RadTextBox> </td> </tr> </table> </fieldset> </div> </td> </tr> <tr> <td> <div id="DivPostponedReason" style="display: none;" runat="server"> <fieldset> <legend>Postponed Reason</legend> <table width="100%" runat="server"> <tr runat="server"> <td> <telerik:RadTextBox ID="rtxPostponedReason" Skin="Vista" runat="server" TextMode="MultiLine" Width="100%" Rows="2" MaxLength="250" Enabled="false"> </telerik:RadTextBox> </td> </tr> </table> </fieldset> </div> </td> </tr> <tr> <td align="center"> <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td> <fieldset> <table width="100%"> <tr> <td align="center"> <asp:Button ID="btnPostponed" OnClientClick="return PostponedClick();" runat="server" Text="Postponed" /> <asp:Button ID="btnSave" runat="server" Text="Save" OnClientClick="return validateDate();" /> <%--OnClick="btnSave_Click" --%> <asp:Button ID="btnSaveHidden" OnClick="btnSaveHidden_Click" runat="server" Text="Save" Style="display: none;" /> <asp:Button ID="btnCancel" OnClientClick="Close();" runat="server" Text="Cancel" /> </td> </tr> </table> </fieldset> </td> </tr> </table> <table width="100%"> <!--------------------------------------Seminar Comments Start----------------------------------------> <tr> <td> <div id="DivComments" runat="server"> <fieldset> <legend>Remarks History</legend> <telerik:RadGrid Skin="Vista" AllowPaging="true" PageSize="5" runat="server" ID="rgSeminarComments" DataSourceID="sdsSeminarComments" AutoGenerateColumns="true"> <MasterTableView PagerStyle-Mode="NextPrevNumericAndAdvanced"> </MasterTableView> </telerik:RadGrid> </fieldset> </div> </td> </tr> <!--------------------------------------Seminar Comments End----------------------------------------> </table> <!--------------------------------------Seminar Info End----------------------------------------> <table width="100%"> <!--------------------------------------MD Status Start----------------------------------------> <tr> <td> <div id="DivMDStatus" runat="server" style="display: none;"> <fieldset> <legend>MD Status</legend> <telerik:RadGrid Skin="Vista" AllowSorting="true" AllowPaging="true" PageSize="5" runat="server" ID="rgMDStatus" OnItemDataBound="rgMDStatus_ItemDataBound" AutoGenerateColumns="false" OnNeedDataSource="rgMDStatus_NeedDataSource"> <%--DataSourceID="sdsMDStatus" --%> <MasterTableView AutoGenerateColumns="false" PagerStyle-Mode="NextPrevNumericAndAdvanced"> <Columns> <telerik:GridBoundColumn AllowSorting="true" DataField="UserName" HeaderText="Name" UniqueName="UserName" SortExpression="UserName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" AllowSorting="false" DataField="UserID" HeaderText="UserID" UniqueName="UserID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn SortExpression="Deputy For" AllowSorting="true" DataField="Deputy For" HeaderText="Deputy For" UniqueName="Deputy For"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="false" DataField="Desg" HeaderText="Desg" UniqueName="Desg"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="true" SortExpression="TrainingStatus" DataField="TrainingStatus" HeaderText="TrainingStatus" UniqueName="TrainingStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="true" DataField="MailStatus" SortExpression="MailStatus" HeaderText="MailStatus" UniqueName="MailStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="true" SortExpression="ApproveStatus" DataField="ApproveStatus" HeaderText="ApproveStatus" UniqueName="ApproveStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" AllowSorting="false" DataField="EMail" HeaderText="EMail" UniqueName="EMail"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderText="Send For MD Approve" UniqueName="SendForMDApprove"> <ItemTemplate> <asp:Button ID="btnSendForMDApprove" OnClick="btnSendForMDApprove_Click" runat="server" Text="Send" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid> </fieldset> </div> </td> </tr> <!--------------------------------------MD Status End----------------------------------------> <!--------------------------------------Seminar Members Start----------------------------------------> <tr> <td> <fieldset> <legend>Members</legend> <telerik:RadGrid AllowSorting="true" AllowMultiRowSelection="false" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" OnItemCommand="rgMembers_ItemCommand" Skin="Vista" ID="rgMembers" runat="server" OnItemDataBound="rgMembers_ItemDataBound" AutoGenerateColumns="false" AllowAutomaticDeletes="true"> <MasterTableView CommandItemDisplay="Top" AllowAutomaticDeletes="true" AutoGenerateColumns="false" ClientDataKeyNames="UserID,TrainingRequestNo,DeptID,EmployeeStatus,TrnMembersNo" DataKeyNames="TrnMembersNo,UserID,TrainingRequestNo,UserName"> <CommandItemTemplate> <div style="height: 30px; padding-left: 10px; vertical-align: middle;"> <asp:LinkButton ID="LbtCommandItem" OnClientClick="NewMembers(); return false;" runat="server" CommandName="InitInsert"><img style="border:0px;vertical-align:middle;" alt="" src="images/AddRecord.gif" />Add New Member</asp:LinkButton> </div> </CommandItemTemplate> <Columns> <telerik:GridBoundColumn AllowSorting="true" DataField="UserName" HeaderText="Name" UniqueName="UserName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" AllowSorting="false" Display="false" DataField="UserMailID" HeaderText="UserMailID" UniqueName="UserMailID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="true" DataField="EmployeeStatus" HeaderText="Status" SortExpression="EmployeeStatus" UniqueName="EmployeeStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="false" DataField="StatusedBy" HeaderText="StatusedBy" UniqueName="StatusedBy"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="false" DataField="ReportingPersonName" HeaderText="Reporting Person" UniqueName="ReportingPersonName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="false" Display="false" DataField="DeputyID" HeaderText="DeputyID" UniqueName="DeputyID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" AllowSorting="false" Display="false" DataField="TrnMembersNo" HeaderText="TrnMembersNo" UniqueName="TrnMembersNo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" Display="false" DataField="ReportTo" HeaderText="ReportTo" UniqueName="ReportTo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DisplayName" HeaderText="DisplayName" Visible="false" SortExpression="DisplayName" UniqueName="DisplayName"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DeputyName" HeaderText="DeputyName" Visible="false" SortExpression="DeputyName" UniqueName="DeputyName"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Deputy Employee" UniqueName="Deputy"> <ItemTemplate> <telerik:RadComboBox Skin="Vista" AutoPostBack="true" ID="rcbDeputy" runat="server" OnSelectedIndexChanged="rcbDeputy_SelectedIndexChanged" DataTextField="DeputyName" DataValueField="UserID"> </telerik:RadComboBox> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="UserID" HeaderText="UserID" ReadOnly="true" Visible="false" UniqueName="UserID"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="EmployeeApproveStatus" HeaderText="E.Approve Status" SortExpression="EmployeeApproveStatus" UniqueName="EmployeeApproveStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ReportingPersonApproveStatus" HeaderText="R.P Approve Status" SortExpression="ReportingPersonApproveStatus" UniqueName="ReportingPersonApproveStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ReportingPersonSendStatus" Visible="false" HeaderText="ReportingPersonSendStatus" SortExpression="ReportingPersonSendStatus" UniqueName="ReportingPersonSendStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AdminSendStatus" HeaderText="Send Status" SortExpression="AdminSendStatus" UniqueName="AdminSendStatus"> </telerik:GridBoundColumn> <telerik:GridBoundColumn AllowSorting="false" DataField="Reason" HeaderText="Reason" UniqueName="Reason"> </telerik:GridBoundColumn> <telerik:GridBoundColumn Visible="false" Display="false" DataField="ReportingPersonMailID" HeaderText="ReportingPersonMailID" SortExpression="ReportingPersonMailID" UniqueName="ReportingPersonMailID"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Center" HeaderText="Send For Approve" UniqueName="SendForApprove"> <ItemTemplate> <asp:Button ID="btnSendForRPApprove" runat="server" Text="Send" /> </ItemTemplate> </telerik:GridTemplateColumn> <%--<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" ConfirmDialogType = "RadWindow" ConfirmText="Do you wish to delete this Member?" CommandName="Delete"> </telerik:GridButtonColumn>--%> <telerik:GridTemplateColumn UniqueName="Delete"> <ItemTemplate> <asp:ImageButton ID="ibtnDelete" ImageUrl="~/iSmart/images/Delete.gif" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowDblClick="RowClick" /> </ClientSettings> </telerik:RadGrid> </fieldset> </td> </tr> <tr> <td align="right"> <asp:Button ID="btnSendMailToRP" runat="server" OnClientClick="return SendMailToAllRP();" Text="Send Mail To reporting Persons" /> </td> </tr> <!--------------------------------------Seminar Members End----------------------------------------> </table> <table width="100%"> <!--------------------------------------Seminar Attachments Start----------------------------------------> <tr> <td> <fieldset> <legend>Attachments</legend> <telerik:RadUpload ID="rupAttachment" runat="server" Skin="SkyBlue" ControlObjectsVisibility="RemoveButtons,AddButton" InitialFileInputsCount="1" /> <asp:Button ID="btnSaveAttachment" runat="server" Text="Save" Width="90px" OnClick="btnSaveAttachment_Click" /> <telerik:RadGrid Skin="Vista" ID="rgTrnAttachments" OnNeedDataSource="rgTrnAttachments_NeedDataSource" runat="server" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AutoGenerateColumns="false" OnItemCommand="rgTrnAttachments_ItemCommand" OnDeleteCommand="rgTrnAttachments_DeleteCommand" OnItemDataBound="rgTrnAttachments_ItemDataBound"> <MasterTableView EditFormSettings-EditColumn-ButtonType="ImageButton" DataKeyNames="AttachmentID"> <Columns> <telerik:GridTemplateColumn HeaderText="Document" UniqueName="DocumentType"> <ItemTemplate> <asp:Label ID="lblDocument" runat="server" Text='<%# Eval("DocumentType") %>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:FileUpload ID="fuDocument" runat="server" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="CreatedOn" ReadOnly="true" HeaderText="CreatedOn" SortExpression="CreatedOn" UniqueName="CreatedOn"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ModifiedOn" ReadOnly="true" HeaderText="ModifiedOn" SortExpression="ModifiedOn" UniqueName="ModifiedOn"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="TrainingRequestNo" HeaderText="TrainingRequestNo" SortExpression="TrainingRequestNo" ReadOnly="true" Visible="false" UniqueName="TrainingRequestNo"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AttachmentID" HeaderText="AttachmentID" SortExpression="AttachmentID" ReadOnly="true" Visible="false" UniqueName="AttachmentID"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmDialogType="RadWindow" ConfirmText="Do you wish to delete this Attachment?" ButtonType="ImageButton" ConfirmTitle="Delete" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <%----%> </telerik:GridButtonColumn> <telerik:GridButtonColumn CommandName="View" ButtonType="ImageButton" ImageUrl="images/da8.bmp" Text="View" UniqueName="View"> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid> </fieldset> </td> </tr> <!--------------------------------------Seminar Attachments End----------------------------------------> </table> <asp:Label ID="lblHide" runat="server" Style="display: none"></asp:Label> <input id="DaysHide" runat="server" type="hidden" /> <asp:Button ID="btnRefreshMember" runat="server" OnClick="btnRefreshMember_Click" Style="display: none;" /> <asp:Button ID="btnRefreshMember1" runat="server" OnClick="btnRefreshMember1_Click" Style="display: none;" /> <asp:TextBox ID="txtHideForReason" runat="server" Style="display: none;"></asp:TextBox> <asp:Button ID="btnDelMembers" runat="server" Style="display: none;" OnClick="btnDelMembers_Click" /> <asp:TextBox ID="txtGetMembersIndex" runat="server" Style="display: none;"></asp:TextBox> <asp:Button ID="btnHideForMailToOneRP" runat="server" Style="display: none;" OnClick="btnHideForMailToOneRP_Click" /> <asp:TextBox ID="txtHideForMailToOneRP" runat="server" Style="display: none;"></asp:TextBox> <asp:TextBox ID="txtHideForMailToAllRP" runat="server" Style="display: none;"></asp:TextBox> <asp:Button ID="btnHideForMailToAllRP" runat="server" Style="display: none;" OnClick="btnHideForMailToAllRP_Click" /> <asp:TextBox ID="txtTrnReqNo" runat="server" Style="display: none;"></asp:TextBox> <asp:TextBox ID="txtInvisiblergMemButton" runat="server" Style="display: none;"></asp:TextBox> </div> <%--<asp:Button ID="btnHide" runat="server" Style="display: none" OnClick="btnHide_Click" />--%> <asp:SqlDataSource ID="SDSType" runat="server" ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:iSmartConnectionString %>" SelectCommand="Select '-- Select --' As [Name], '-- Select --' [Value] Union Select 'Seminar' As [Name],'Seminar' [Value] Union Select 'Course' As [Name],'Course' [Value] Union Select 'Training' As [Name],'Training' [Value] Union Select 'Conference' As [Name],'Conference' [Value]"> </asp:SqlDataSource> <asp:SqlDataSource runat="server" ID="sdsSeminarComments" ConnectionString="<%$ ConnectionStrings : iSmartConnectionString %>" SelectCommand="SP_GetSeminarComments" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:Parameter Name="TrainingRequestNo" Type="Int16" /> </SelectParameters> </asp:SqlDataSource> </form> </body> </html>
Is there any option to rectify this.
-Anto

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
<telerik:RadEditor ID="RadEditor1" runat="server" Width="500" Height="500"></telerik:RadEditor>
<input type="button" onclick="resizeE();" value="Resize to 200x200" />
<script type="text/javascript">
function resizeE() {
var e = $find("<%=this.RadEditor1.ClientID %>");
e.setSize(200, 200);
}
</script>