| <telerik:RadListBox ID="radFullList" runat="server" AllowTransfer="True" |
| AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" TransferToID="radList" |
| DataKeyField="GUID" DataSortField="EmployeeName" DataSourceID="LinqDS4" |
| DataTextField="EmployeeName" DataValueField="EmployeeNumber" Height="200px" |
| Width="200px"> |
| <ButtonSettings ReorderButtons="Common"></ButtonSettings> |
| </telerik:RadListBox> |
| <telerik:radlistbox ID="radList" runat="server" Height="200px" Width="200px" |
| AllowReorder="true" AllowDelete="true" /> |
| <asp:LinqDataSource ID="LinqDS4" runat="server" |
| ContextTypeName="Modules.EmployeeManagement.EmployeeManagementDataContext" |
| TableName="tblEmployees" OrderBy="EmployeeName" > |
| </asp:LinqDataSource> |
| Dim sb As New StringBuilder() |
| Dim db = New Modules.EmployeeManagement.EmployeeManagementDataContext |
| Dim employee = (From t In db.tblEmployees Where t.GUID = Me.DataItemId Select t).Single |
| employee.EmployeeName= txtName.Text |
| ... |
| employee.UserGroup = radUserGroup.SelectedValue |
| For Each item As RadListBoxItem In radList.Items |
| sb.Append(item.Value.ToString & "|") |
| Next |
| employee.SupervisorNumber = Left(sb.ToString, 59) |
| db.SubmitChanges() |
| Response.Redirect(CreateHostViewCommand("EmployeeEditView", DataItemId.ToString, Nothing)) |
| <ul class="listbox-list"> |
| <li class="listbox-item"> |
| <telerik:RadListBox ID="radListDisciplines" runat="server" AllowTransfer="True" |
| AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True" DataSourceID="sqlListDisciplines" |
| TransferToID="radListAssigned" DataTextField="DisciplineName" DataValueField="DisciplineId" Width="300px" DataKeyField="DisciplineId"> |
| </telerik:RadListBox> |
| </li> |
| <li class="listbox-item"> |
| <telerik:RadListBox ID="radListAssigned" runat="server" |
| DataSourceID="sqlReviewersDisciplines" |
| DataTextField="DisciplineName" DataValueField="DisciplineId" AllowDelete="True" |
| AutoPostBack="True" AutoPostBackOnDelete="True" AutoPostBackOnTransfer="True" |
| DataKeyField="DisciplineReviewerId" TransferToID="radListDisciplines" Width="300px"> |
| </telerik:RadListBox> |
| </li> |
| </ul> |
| <div style="clear:both;"></div> |
| <asp:SqlDataSource ID="sqlListDisciplines" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" |
| SelectCommand="Dej_DisciplineList" SelectCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="hidOrgId" Name="OrgId" PropertyName="Value" Type="Int32" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
| <asp:SqlDataSource ID="sqlReviewersDisciplines" runat="server" ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>" |
| SelectCommand="Dej_ListDisciplineReviewerByReviewer" |
| SelectCommandType="StoredProcedure" |
| DeleteCommand="Dej_DisciplineReviewerDelete" |
| DeleteCommandType="StoredProcedure" |
| InsertCommand="Dej_DisciplineReviewerAdd" |
| InsertCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="hidReviewerId" Name="UserId" PropertyName="Value" |
| Type="Int32" /> |
| </SelectParameters> |
| <DeleteParameters> |
| <asp:Parameter Name="DisciplineReviewerId" Type="Int32" /> |
| </DeleteParameters> |
| <InsertParameters> |
| <asp:Parameter Name="DisciplineId" Type="Int32" /> |
| <asp:Parameter Name="ReviewerId" Type="Int32" /> |
| </InsertParameters> |
| </asp:SqlDataSource> |
function ShowWindow() {
var found = false;
var allWindows = GetWindowManager().get_windows
for (var i = 0; i < allWindows.length; i++) {
var oWnd = allWindows[i];
var bounds = $telerik.getBounds(oWnd.get_popupElement());
if (oWnd._title == "B" ) {
found = true;
break;
}
}
......<location path="Telerik.Web.UI.WebResource.axd">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Message: 'window' is null or not an object
Line: 124
Char: 54
Code: 0
| <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="900px" TimelineView-NumberOfSlots="5" |
| Skin="Default" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="false" |
| GroupingDirection="Vertical" OnAppointmentDelete="RadScheduler1_AppointmentDelete" |
| OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" |
| OnFormCreating="RadScheduler1_FormCreating" OnDataBound="RadScheduler1_OnDataBound" |
| OnNavigationComplete="RadScheduler1_NavigationComplete" StartInsertingInAdvancedForm="True" |
| AdvancedForm-ZIndex="2000" AdvancedForm-Modal="True"> |
| <MonthView VisibleAppointmentsPerDay="20" AdaptiveRowHeight="true" /> |
| <TimelineView SlotDuration="12:00:00" NumberOfSlots="10" TimeLabelSpan="2" /> |
| <ResourceTypes> |
| <telerik:ResourceType DataSourceID="edsUsers" ForeignKeyField="UserID" KeyField="UserID" |
| Name="User Name" TextField="UserName" /> |
| </ResourceTypes> |
| <ResourceTypes> |
| <telerik:ResourceType DataSourceID="edsClients" ForeignKeyField="ClientID" KeyField="ClientID" |
| Name="Client Name" TextField="ClientName" /> |
| </ResourceTypes> |
| <ResourceTypes> |
| <telerik:ResourceType DataSourceID="edsCategories" ForeignKeyField="CategoryID" KeyField="CategoryID" |
| Name="Category" TextField="Category" /> |
| </ResourceTypes> |
| <ResourceStyles> |
| <telerik:ResourceStyleMapping Type="Category" Text="Out of Office" ApplyCssClass="rsCategoryViolet" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="After Hours" ApplyCssClass="rsCategoryRed" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="Projects" ApplyCssClass="rsCategoryDarkGreen" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="MACs" ApplyCssClass="rsCategoryGreen" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="VNMS" ApplyCssClass="rsCategoryDarkBlue" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="IPT/Engineering" ApplyCssClass="rsCategoryDarkRed" /> |
| <telerik:ResourceStyleMapping Type="Category" Text="Other" ApplyCssClass="rsCategoryOrange" /> |
| </ResourceStyles> |
| <TimeSlotContextMenuSettings EnableDefault="true" /> |
| <AppointmentContextMenuSettings EnableDefault="true" /> |
| </telerik:RadScheduler> |
| </telerik:RadAjaxPanel> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| ddlView.SelectedIndex = 1; |
| RadScheduler1.SelectedView = SchedulerViewType.TimelineView; |
| RadScheduler1.SelectedDate = DateUtilities.GetStartOfCurrentWeekMonday(); |
| BindSchedule(); |
| } |
| RadScheduler1.GroupBy = RadComboBox1.SelectedValue; |
| } |
| private void BindSchedule() |
| { |
| RadScheduler1.DataSource = TED.BLL.Appointment.Appointments(SafeValue.SafeInt(ddlView.SelectedValue),SafeValue.SafeInt(ddlCategory.SelectedValue),SafeValue.SafeInt(ddlClientName.SelectedValue),Users,RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd); |
| RadScheduler1.DataKeyField = "ID"; |
| RadScheduler1.DataStartField = "Start"; |
| RadScheduler1.DataEndField = "End"; |
| RadScheduler1.DataSubjectField = "Subject"; |
| RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID"; |
| RadScheduler1.DataRecurrenceField = "RecurrenceRule"; |
| RadScheduler1.DataBind(); |
| } |
| protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e) |
| { |
| RadScheduler scheduler1 = (RadScheduler)sender; |
| if (e.Command == SchedulerNavigationCommand.SwitchToMonthView) |
| { |
| scheduler1.OverflowBehavior = OverflowBehavior.Expand; |
| } |
| else |
| { |
| scheduler1.OverflowBehavior = OverflowBehavior.Scroll; |
| } |
| BindSchedule(); |
| } |
| Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load |
| 'Get User login information from database |
| Dim ConnectionString As String = ConfigurationManager.ConnectionStrings("AcvpmDataCS").ConnectionString |
| Dim conn As New SqlConnection(ConnectionString) |
| Dim cmd As New SqlCommand("Select Member_ID, mem_login, mem_password FROM Personal_Info WHERE Member_ID = @member_id", conn) |
| Using conn |
| conn.Open() |
| cmd.Parameters.AddWithValue("@member_id", Session("MemberID")) |
| Dim Reader As SqlDataReader = cmd.ExecuteReader |
| While Reader.Read() |
| Dim txtLogin As TextBox = CType(RadPanelBar1.FindControl("txtLogin"), TextBox) |
| txtLogin.Text = Reader("mem_login").ToString |
| End While |
| conn.Close() |
| End Using |
| End Sub |
| <telerik:GridTemplateColumn HeaderText="Claiming" UniqueName="AmountToClaim"> |
| <ItemStyle CssClass="EclaimClaimAmount" /> |
| <HeaderStyle Width="75px" HorizontalAlign="center" /> |
| <ItemTemplate> |
| <asp:TextBox ID="Step3TitlesClaimAmountTextBox" EnableViewState="false" onKeyDown="return OnlyAllowNumbers(this);" |
| runat="Server" CssClass="standardTextBoxClaimedAmount" onfocus="CalculateTotals('standardTextBoxClaimedAmount', 'textBoxStandardClaimedFooter')" |
| onblur="CalculateTotals('standardTextBoxClaimedAmount', 'textBoxStandardClaimedFooter'); CheckBalance();"></asp:TextBox> |
| </ItemTemplate> |
| <FooterTemplate> |
| <span style="color: Yellow; font-weight: 600;">Total: </span> |
| <asp:TextBox ID="Step3TitlesClaimAmountFooterTextBox" EnableViewState="false" runat="server" |
| CssClass="textBoxStandardClaimedFooter" BorderStyle="none" BackColor="#0075BD" |
| ForeColor="white" Font-Bold="true"> |
| </asp:TextBox> |
| </FooterTemplate> |
| </telerik:GridTemplateColumn> |
| function ValidateMoney() { |
| var grid = $find("<%=Step3TitlesRadGrid.ClientID%>"); |
| var tableView = grid.get_masterTableView(); |
| var items = tableView.get_dataItems(); |
| for(var i = 0; i<items.length; i++){ |
| var rowValues = items[i].get_dataItem(); |
| if(rowValues.ApprovedAmount < ??how to get the text vale?? ){ |
| } |
| } |
| } |