Here is my rad grid:
| <radT:RadGrid ID="table" Skin="WebBlue" GridLines="Both" AllowPaging="true" |
| EnableEmbeddedSkins="false" OnPreRender="HighlightRows" PageSize="15" runat="server"> |
| <MasterTableView Width="100%" ClientDataKeyNames="ID,Question" ></MasterTableView> |
| <PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="Change page: {4} | Displaying page {0} of {1}, questions {2} to {3} of {5}" > |
| </PagerStyle> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| <ClientEvents OnRowContextMenu="RowContextMenu" OnRowSelected="ModifyHeader" OnRowMouseOver="test" /> |
| </ClientSettings> |
| </radT:RadGrid> |
here is how i defined the radtooltipmanager:
| <radT:RadToolTipManager ID="RadToolTipManager1" runat="server" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" |
| RelativeTo="Mouse" Position="BottomLeft" AutoTooltipify="false" |
| Title="Question Preview" ManualClose="true" ShowEvent="OnClick"> |
| </radT:RadToolTipManager> |
My first problem is that I could not get it to work with individual rows here is how i added the rows in the code behind:
| foreach (Telerik.Web.UI.GridDataItem gdi in table.Items) |
| { |
| RadToolTipManager1.TargetControls.Add(gdi.ClientID, true); |
| } |
with this setup the . OnAjaxUpdate event does not fire.
I then tried just adding the whole rad grid to the tooltip manager with this:
<TargetControls><radT:ToolTipTargetControl TargetControlID="table" /></TargetControls>
The problem I had with this is that the OnAjaxUpdate event only fires and the tooltip shows after the table first does an event that causes a postback such as if I change the page index or have ClientSettings-EnablePostBackOnRowClick enabled and do a postback.
Can anyone tell me what I am doing wrong? I do not think I have the latest versions of the controls (I think I have RadControls for ASPNET AJAX Q1 2008), and will have to contact someone else apout updateing. Is this caused from a bug in the control or something I am doing wrong?