| var menu = $find("RadMenu1"); |
| var item = menu.findItemByText("Message Center"); |
| <telerik:RadTextBox Width="300px" ID="txtUrl" runat="server" Label="Url: " |
| EmptyMessage="please type url here" InvalidStyleDuration="100" > |
| </telerik:RadTextBox> |
Depending on what has been selected in a combobox I want to chnage the label from Url: to something else
| var txtUrlInputID = $telerik.$("[id$='txtUrl']").attr("id"); |
| var txtUrlInput = $find(txtUrlInputID); |
| txtUrlInput.set_emptyMessage('Please type Email here'); |
| txtUrlInput.set_value("") |
| //I would like to set label as well. I know the below does not exist but can I do it another way. |
| //txtUrlInput.set_label("Email: ") |

| <telerik:RadGrid ID="rgTimeSheetGrid" |
| runat="server" |
| CssClass="RadGrid" |
| GridLines="None" |
| AllowPaging="True" |
| PageSize="20" |
| AutoGenerateColumns="False" |
| AllowAutomaticDeletes="True" |
| AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" |
| DataSourceID="TaskDataSource" |
| ShowStatusBar="True" |
| AutoGenerateEditColumn="True" |
| AutoGenerateDeleteColumn="True" |
| OnItemDataBound="radTimesheetEntry_ItemDataBound" |
| OnItemUpdated="radTimesheetEntry_OnItemUpdated"> |
| <HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> |
| <MasterTableView |
| DataSourceID="TaskDataSource" |
| ShowGroupFooter="true" |
| CommandItemDisplay="Top" |
| EditMode="EditForms" |
| DataKeyNames="ID" |
| RowIndicatorColumn-HeaderStyle-Width="20px" |
| ExpandCollapseColumn-HeaderStyle-Width="20px"> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldAlias="Date" FieldName="Date"></telerik:GridGroupByField> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldName="Date" SortOrder="None"></telerik:GridGroupByField> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID" SortExpression="ID" UniqueName="ID" Visible="false" /> |
| <telerik:GridBoundColumn DataField="Date" HeaderText="Date" SortExpression="Date" UniqueName="Date" Visible="false" /> |
| <telerik:GridBoundColumn DataField="Project" HeaderText="Project" SortExpression="Project" UniqueName="Project" /> |
| <telerik:GridBoundColumn DataField="Activity" HeaderText="Activity" SortExpression="Activity" UniqueName="Activity" /> |
| <telerik:GridBoundColumn DataField="Role" HeaderText="Role" SortExpression="Role" UniqueName="Role" /> |
| <telerik:GridBoundColumn DataField="Notes" Visible="false" HeaderText="Notes" SortExpression="Notes" UniqueName="Notes" /> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description" /> |
| <telerik:GridBoundColumn DataField="Hours" DataType="System.Double" HeaderText="Hours" SortExpression="Hours" UniqueName="Hours" /> |
| </Columns> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="lnkAddEntry" runat="server" CommandName="InitInsert">Add Entry</asp:LinkButton> |
| </CommandItemTemplate> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <table id="ManageRecord" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" |
| style="border-collapse: collapse; background: white;"> |
| <tr> |
| <td> |
| <table id="ManageLeft" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> |
| <tr> |
| <td>Project</td> |
| <td><asp:DropDownList id="ddProject" runat="server"></asp:DropDownList></td> |
| </tr> |
| <tr> |
| <td>Activity</td> |
| <td><asp:DropDownList id="ddActivity" runat="server"></asp:DropDownList></td> |
| </tr> |
| <tr> |
| <td>Role</td> |
| <td><asp:DropDownList id="ddRole" runat="server"></asp:DropDownList></td> |
| </tr> |
| <tr> |
| <td>Date</td> |
| <td><asp:DropDownList ID="ddDate" runat="server"></asp:DropDownList></td> |
| </tr> |
| </table> |
| </td> |
| <td> |
| <table id="ManageRight" cellspacing="1" cellpadding="1" width="250" border="0" class="module"> |
| <tr> |
| <td>Hours</td> |
| <td><asp:TextBox ID="txtHours" runat="server" ></asp:TextBox></td> |
| </tr> |
| <tr> |
| <td>Note</td> |
| <td><asp:TextBox ID="txtNotes" runat="server" ></asp:TextBox></td> |
| </tr> |
| <tr> |
| <td>Description</td> |
| <td><asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" ></asp:TextBox></td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| <tr> |
| <td align="right" colspan="2"> |
| <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button> |
| <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| <ClientSettings> |
| <ClientEvents OnRowDblClick="RowDblClick" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| <asp:ObjectDataSource ID="TaskDataSource" runat="server" |
| DeleteMethod="Delete" InsertMethod="Create" SelectMethod="Select" |
| TypeName="T4G.TIM.Web.Data.TaskController" UpdateMethod="Update" > |
| <DeleteParameters> |
| <asp:Parameter Name="ID" Type="Int32" /> |
| <asp:Parameter Name="Project" Type="String" /> |
| <asp:Parameter Name="Activity" Type="String" /> |
| <asp:Parameter Name="Role" Type="String" /> |
| <asp:Parameter Name="Hours" Type="Double" /> |
| <asp:Parameter Name="Notes" Type="String" /> |
| <asp:Parameter Name="Description" Type="String" /> |
| <asp:Parameter Name="Date" Type="String" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="ID" Type="Int32" /> |
| <asp:Parameter Name="Project" Type="String" /> |
| <asp:Parameter Name="Activity" Type="String" /> |
| <asp:Parameter Name="Role" Type="String" /> |
| <asp:Parameter Name="Hours" Type="Double" /> |
| <asp:Parameter Name="Notes" Type="String" /> |
| <asp:Parameter Name="Description" Type="String" /> |
| <asp:Parameter Name="Date" Type="String" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="ID" Type="Int32" /> |
| <asp:Parameter Name="Project" Type="String" /> |
| <asp:Parameter Name="Activity" Type="String" /> |
| <asp:Parameter Name="Role" Type="String" /> |
| <asp:Parameter Name="Hours" Type="Double" /> |
| <asp:Parameter Name="Notes" Type="String" /> |
| <asp:Parameter Name="Description" Type="String" /> |
| <asp:Parameter Name="Date" Type="String" /> |
| </InsertParameters> |
| </asp:ObjectDataSource> |
The following is in the event viewer, All Pages display generic Webpart error
Web Part Error: This page has encountered a critical error. Contact your system
administrator if this problem persists.
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Runtime
Event ID: 6610
Date: 8/20/2008
Time: 12:16:46 PM
User: N/A
Computer: RENSP1
Description:
Safe mode did not start successfully. Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
| Dim column As GridBoundColumn |
| column = New GridBoundColumn() |
| column.UniqueName = "Date" |
| column.DataType = GetType(String) |
| column.HeaderText = PmResources.GetResourceString(headerResourceKey) |
| column.HeaderTooltip = PmResources.GetResourceString(toolTipResourceKey) |
| column.DataField = "Date" |
| column.AutoPostBackOnFilter = False |
| column.ShowFilterIcon = False |
| column.CurrentFilterFunction = GridKnownFunction.NoFilter |
| column.SortExpression = dataField |
| column.Groupable = False |
| column.AllowFiltering = False |
| column.Reorderable = False |
| column.Visible = visibile |
| column.HeaderStyle.Width = Unit.Pixel(width) |
| column.ItemStyle.Width = Unit.Pixel(width) |
| column.ReadOnly = isReadOnly |
| column.ItemStyle.VerticalAlign = VerticalAlign.Top |
| column.ItemStyle.HorizontalAlign = HorizontalAlign.Left |
