<
telerik:RadCalendar
ID
=
"RadCalendar1"
runat
=
"server"
ShowOtherMonthsDays
=
"false"
></
telerik:RadCalendar
> <
br
/>
<
asp:LinkButton
ID
=
"LinkButton1"
runat
=
"server"
onclick
=
"LinkButton1_Click"
>Prev</
asp:LinkButton
> <
br
/>
<
asp:LinkButton
ID
=
"LinkButton2"
runat
=
"server"
onclick
=
"LinkButton2_Click"
>Next</
asp:LinkButton
>
protected
void
LinkButton1_Click(
object
sender, EventArgs e)
{
RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(-1);
}
protected
void
LinkButton2_Click(
object
sender, EventArgs e)
{
RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(1);
}
<
script
type
=
"text/javascript"
><
br
>
var currentTooltip = null;<
br
>
<
br
>
<
br
>
function OnClientBeforeShow(sender, args) {<
br
>
//Hide the currently visible tooltip <
br
>
if (currentTooltip) {<
br
>
if (currentTooltip != sender) currentTooltip.hide();<
br
>
return;<
br
>
}<
br
>
<
br
>
<
br
>
currentTooltip = sender;<
br
>
args.set_cancel(true);<
br
>
}<
br
>
<
br
>
<
br
>
function centerTooltip(img) {<
br
>
if (currentTooltip) {<
br
>
currentTooltip.set_contentElement(img);<
br
>
<
br
>
<
br
>
//use the method updateLocation because it does not call WebService's method which loads the content <
br
>
currentTooltip.updateLocation();<
br
>
currentTooltip = null;<
br
>
}<
br
>
}<
br
>
</
script
><
br
>
<
br
>
<
br
>
<
telerik:RadToolTipManager
ID
=
"RadToolTipManager1"
runat
=
"server"
Position
=
"center"
<br>
RelativeTo="BrowserWindow" OnClientBeforeShow="OnClientBeforeShow" EnableShadow="true" Height="500" Width="500"> <
br
>
</
telerik:RadToolTipManager
><
br
>
<
br
>
<
asp:LinkButton
ID
=
"LinkButton1"
runat
=
"server"
>over me</
asp:LinkButton
>
protected void Page_Load(object sender, EventArgs e)<
br
>
{<
br
>
this.RadToolTipManager1.TargetControls.Add(this.LinkButton1.ClientID, "~/camry xle wheel.jpg", true);<
br
>
}
<
script
type
=
"text/javascript"
>
var combox = $find("<%=dfDocuments.clientID %>");
combox.set_value('3');
</
script
>
Protected Sub dfDocuments_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles dfDocuments.DataBound
Dim li As New RadComboBoxItem
li.Value = "0"
li.Text = "--Select--"
li.Selected = False
dfDocuments.Items.Insert(0, li)
End Sub
Hi. I have a Radgrid with a MasterTableView and 2 Detail Tables (total of 3 levels). I have each GridTableView set to
HierarchyLoadMode
="Client" and I am binding the tables in my code-behind. I have an OnNeedDataSource method as well as an OnDetailTableDataBind method to do all the binding. On the first page load, the grids/tables all bind correctly. In the 3rd level detail table, I have a button that will call a server-side OnClick method that will remove that row from the data in the database. I then want to refresh the entire RadGrid to show that the row was removed, which may affect the upper 2 levels if it was the last row removed. So, at the end of the OnClick method in the code-behind, I try calling the Rebind() method on my RadGrid. Both the OnNeedDataSource and the OnDetailTableBind methods get fired and my screen seems to refresh (meaning it blinks and goes back to its original state of only the first level grid is expanded), however the data is not freshed and when I expand to the 3rd leve, the row I just deleted is still showing. When I refresh the browser, however, the data does refresh and the row is gone.
Even though the HierarchyLoadMode is set to Client, meaning that the data is kept in viewstate, I thought that by calling the Rebind method it would reload the data to viewstate and to the screen. Is that not correct? It seems to call the same methods when I refresh the browser page as when I call the .Rebind() method. What am I missing here?
By the way, I've got the Q3 2010 version of the RadControls and I'm using I.E. 6 (sad as it is) for my browser. I also have the ClientSettings for AllowExandCollapse = true (since the documentation I found said I should have that set when using HierarchyLoadMode of Client), however this doesn't seem to have any impact for my app.
Thanks for any help,
Shawna