or
| <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> |
| <ContentTemplate> |
| <radG:RadGrid ID="WorkItemsGrid" runat="server" AllowSorting="True" |
| AutoGenerateColumns="False" DataSourceID="WorkItemsObjectDataSource" EnableAJAX="True" EnableAJAXLoadingTemplate="True" LoadingTemplateTransparency="50" |
| GridLines="None" AllowMultiRowSelection="True" Width="100%" OnItemCommand="WorkItemsGrid_ItemCommand" OnItemDataBound="WorkItemsGrid_ItemDataBound"> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="200px" /> |
| <ClientEvents OnGridCreated="GridCreated" /> |
| </ClientSettings> |
| <MasterTableView DataSourceID="WorkItemsObjectDataSource" CommandItemDisplay="Top" DataKeyNames="RequestID" |
| NoMasterRecordsText="No Work Items available."> |
| <SortExpressions> |
| <radG:GridSortExpression FieldName="SubmittedOn" SortOrder="ascending" /> |
| </SortExpressions> |
| <CommandItemStyle HorizontalAlign="Right" /> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="WorkItemsRefreshButton" runat="server" CommandName="RebindGrid"><img style="border:0px" alt="" src="~/Images/Refresh.gif" runat="server" /> Refresh </asp:LinkButton> |
| <asp:LinkButton ID="ReleaseRequestButton" runat="server" CommandName="ReleaseRequest"><img style="border:0px" alt="" src="~/Images/cancel.gif" runat="server" />Release</asp:LinkButton> |
| </CommandItemTemplate> |
| <Columns> |
| <radG:GridButtonColumn DataTextField="RequestID" HeaderText="ReqID" UniqueName="RequestID" CommandName="ProcessRequest" ButtonType="LinkButton"> |
| <ItemStyle Width="5%" /> |
| <HeaderStyle Width="5%" /> |
| </radG:GridButtonColumn> |
| <radG:GridButtonColumn DataTextField="ClientName" HeaderText="Client Name" UniqueName="ClientName" CommandName="ProcessRequest" ButtonType="LinkButton" > |
| <ItemStyle Width="10%" /> |
| <HeaderStyle Width="10%" /> |
| </radG:GridButtonColumn> |
| <radG:GridBoundColumn AllowFiltering="False" DataField="ReqAttorney" Groupable="False" |
| HeaderText="Req Attorney" UniqueName="ReqAttorney"> |
| <ItemStyle Width="10%" /> |
| <HeaderStyle Width="10%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Requestor" HeaderText="Requestor" ReadOnly="True" |
| UniqueName="Requestor"> |
| <ItemStyle Width="10%" /> |
| <HeaderStyle Width="10%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ReqOffice" HeaderText="Office" ReadOnly="True" UniqueName="ReqOffice"> |
| <ItemStyle Width="5%" /> |
| <HeaderStyle Width="5%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ReqType" HeaderText="Request Type" UniqueName="ReqType"> |
| <ItemStyle Width="15%" /> |
| <HeaderStyle Width="15%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ReqStatus" HeaderText="Status" UniqueName="ReqStatus"> |
| <ItemStyle Width="14%" /> |
| <HeaderStyle Width="14%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="SubmittedOn" HeaderText="Submitted" ReadOnly="True" |
| UniqueName="SubmittedOn" DataFormatString="{0:g}"> |
| <ItemStyle Width="14%" /> |
| <HeaderStyle Width="14%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ClaimedOn" HeaderText="Claimed On" UniqueName="ClaimedOn" DataFormatString="{0:g}"> |
| <ItemStyle Width="14%" /> |
| <HeaderStyle Width="14%" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ClaimedBy" HeaderText="Claimed By" UniqueName="ClaimedBy" Visible="false"> |
| <ItemStyle Width="10%" /> |
| <HeaderStyle Width="10%" /> |
| </radG:GridBoundColumn> |
| <radG:GridClientSelectColumn UniqueName="SelectRequest" > |
| <ItemStyle Width="3%" /> |
| <HeaderStyle Width="3%" /> |
| </radG:GridClientSelectColumn> |
| </Columns> |
| <ExpandCollapseColumn Visible="False"> |
| <HeaderStyle Width="19px" /> |
| </ExpandCollapseColumn> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| </MasterTableView> |
| </radG:RadGrid> |
| <telerik:RadToolTipManager ID="AlertToolTipManager" runat="server" OnAjaxUpdate="AlertToolTipManager_OnAjaxUpdate" RelativeTo="Element" Height="100%" Skin="WebBlue" Animation="None" Position="MiddleRight" MouseTrailing="false" OffsetY="-20"> |
| </telerik:RadToolTipManager> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| protected void AlertToolTipManager_OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) |
| { |
| int index = args.TargetControlID.LastIndexOf("_"); |
| string reqID = args.TargetControlID.Substring(index + 1); |
| Control ctrl = Page.LoadControl("~/Parts/AlertToolTip.ascx"); |
| args.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); |
| AlertToolTip alert = (AlertToolTip)ctrl; |
| alert.ReqID = int.Parse(reqID); |
| } |
| protected void WorkItemsGrid_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item) |
| { |
| DataRowView requestRowView = e.Item.DataItem as DataRowView; |
| if (requestRowView != null) |
| { |
| int reqID = (int)requestRowView["RequestID"]; |
| GridDataItem gridItem = e.Item as GridDataItem; |
| string controlID = "WorkReqAlert_" + reqID.ToString(); |
| gridItem["ReqStatus"].Text += GetHTMLCodeForAlert(controlID,reqID); |
| ToolTipTargetControl target = new ToolTipTargetControl(controlID, true); |
| AlertToolTipManager.TargetControls.Add(target); |
| } |
| } |
| } |
| private string GetHTMLCodeForAlert(string controlID,int reqID) |
| { |
| string dataFormatString = "<img id='" + controlID + "' src='../Images/Email_Read.gif'>"; |
| return dataFormatString; |
| } |
I just downloaded and implemented the recently released build of Prometheus. The tooltip however does not seem to render properly (skin and position) in Firefox OR Safari. It works fine in IE7.
Please go here for an example:
http://www.printrunner.com/business-cards.aspx
Mouse over the blue question marks on the right side of the screen. A tooltip with the "Telerik" skin should appear. Compare Firefox to IE7.
The tooltips are dynamically created using a loop with the following code for each tooltip:
| Dim ToolTip As New RadToolTip |
| ToolTip.IsClientID = True |
| ToolTip.TargetControlID = "question" & lstData.ID |
| ToolTip.Skin = "Telerik" |
| ToolTip.ShowEvent = ToolTipShowEvent.OnMouseOver |
| ToolTip.Text = sHTML |
| ToolTip.RelativeTo = ToolTipRelativeDisplay.Element |
| ToolTip.Position = ToolTipPosition.MiddleLeft |
| ToolTip.ManualClose = False |
| ToolTip.Width = 375 |
| ToolTip.AutoCloseDelay = 60000 |
| ToolTip.HideDelay = 500 |
| ToolTip.ShowDelay = 0 |
selected.ParentNode.Nodes.Remove(selected);
and
selected.Remove();
inside of the OnContextMenuItemClick handler, but neither method removes the node on the client side. Is there a correct way to remove nodes through a callback?
Thanks
