OnValueChanged event fires for each of the sliders. is there any way for me to disable this. it seems that this event gets fired before the item click event of the radPanel if it was the other way around i could simply check for this and stop my other events.
Is there anything I can do or any guidance you can offer for this.
Thanks in advance.
Paddy
| <MasterTableView Width="98%" ShowFooter="True" CommandItemDisplay="TopAndBottom"> |
| <CommandItemTemplate> |
| <asp:LinkButton ID="btnAddNewRecord" runat="server" CommandName="AddNewRecord" Style="vertical-align: bottom"> |
| <asp:Image ID="imgAdd" runat="server" ImageUrl="~/App_ThemesCustom/images/AddRecord.gif" /> |
| Add New Record |
| </asp:LinkButton> |
| <asp:LinkButton ID="btnRefresh" runat="server" CommandName="Refresh" Style="vertical-align: bottom"> |
| <asp:Image ID="imgRefresh" runat="server" ImageUrl="~/App_ThemesCustom/images/Refresh.gif" /> Refresh |
| </asp:LinkButton> |
| </CommandItemTemplate> |
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if(e.Item is GridCommandItem) |
| { |
| if (!UserHasEditAccess()) |
| { |
| this.ParentPage.FindControlRecursive(this, "btnAddNewRecord").Visible = false; |
| } |
| } |
| } |
This code works to a degree. It hides the "Add New Record" button in the "Top" of the grid, but it is still visible on the "Bottom" of the grid.
Any idea why it's not making it invisible in both the "Top" and the "Bottom"?
| <td> |
| <asp:DropDownList ID="ddlTOC" runat="server" SelectedValue='<%# Bind("TitleOfCourtesy") %>' |
| DataSource='<%# (new string[] { "Dr.", "Mr.", "Mrs.", "Ms." }) %>' TabIndex="7" |
| AppendDataBoundItems="True"> |
| <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem> |
| </asp:DropDownList></td> |
I have a RadGrid column on the second level hierarchy with ToolTips and it works very nice. However, as soon I filter the grid do rows then it look like the ToolTips still referenced somehow to none-filtered grid. Did anybody experience this problem?
Here is how I set the key for the ToolTips object on my second hierarchy level:
| Protected Sub grdLineGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) |
| If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then |
| Dim target As Control = e.Item.FindControl("LinePayment") |
| If Not [Object].Equals(target, Nothing) Then |
| If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then |
| Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) |
| Me.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row("Inv_Doc_No").ToString() + "|" + currentRow.Row("Pay_Item").ToString() + "|" + currentRow.Row("Inv_Type").ToString(), True) |
| End If |
| End If |
| End If |
| End Sub |
When my OnAjaxUpdate event fires and the rows are filtered then the ToolTipUpdateEventArgs.Value is always a first row on the given page, not the one I move mouse over.