Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
66 views
Hi,

I am trying to change the month displayed with a button click in code-behind.

<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);
}

When I go back to February 2011 from March 2011 I can only see days from March 2011 although Focused Date is a date from February 2011.

Thank you...
Eric
Top achievements
Rank 1
 answered on 08 Mar 2011
2 answers
75 views
Stupid problem probably but make me crazy. I have link button. I want to display tool tip with image when i hover it with mouse. But I am not able to show image in tool tip. I get only tool tip without image This is my code. Please help.
*.aspx

<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>

*.cs
protected void Page_Load(object sender, EventArgs e)<br>
 {<br>
            this.RadToolTipManager1.TargetControls.Add(this.LinkButton1.ClientID, "~/camry xle wheel.jpg", true);<br>
 }
Marin Bratanov
Telerik team
 answered on 08 Mar 2011
2 answers
88 views
Hi.....

I have 2 radlistbox

using javascript ---On click of Add button i am transftering data from radlistbox 1 to radlistbox 2........

After transfttering item in radllistbox2 radlistitem2's item.set_checked(true) doesn't work..... list items remains as it is as un check....
Moksha
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
64 views
HI

Im using telerik drop down with ASp.net drop down in my Website.
whn i expand the telerik drop down the expanded area is getting overlaped by ASP.net drop downs
plese find the attachment for more information

i tried resolving this using Z-index still its giving same problem for the first time

Help me resoving this

Thanks
Hairn
Kalina
Telerik team
 answered on 08 Mar 2011
1 answer
165 views
Hi.

I am using Telerik RadScheduler. I want to disable or rather make radscheduler invisible for a selected date.

It means if i select a date the rad scheduler calendar, the scheduler should not be visible or at least I should get a pop-up message saying that the date is invalid.
Shinu
Top achievements
Rank 2
 answered on 08 Mar 2011
3 answers
257 views
Hi,

I added a RadCombobox to a page with Datasource pointed to a LINQDataSource. Then I add a Javascript to set its value on load:

<script type="text/javascript">
       var combox = $find("<%=dfDocuments.clientID %>");
       combox.set_value('3');
   </script>

It works fine, but then I add the following code to add a blank line to the Combobox:

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

Then the set_value script doesn't works anymore.

Any advice? Thanks.

Andy
Kalina
Telerik team
 answered on 08 Mar 2011
3 answers
41 views
After installing the RadEditor, in order to make it the default editor in SharePoint, I would have to Active the features on all site collections or sites themselves?  If so, how far down the hierarchy does enabling these features make them the default editor?

Thanks
Henrik
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
32 views
How modify other control on node expanding event with TreeNodeExpandMode.ServerSideCallBack?
Kate
Telerik team
 answered on 08 Mar 2011
3 answers
86 views
pls i am new in telerik radgrid,
i want to set a value to the first cell whenever someone clicks add new records on my radgrid. i want a default of  "3000" in the first column thanks
Princy
Top achievements
Rank 2
 answered on 08 Mar 2011
7 answers
655 views

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

 

Daniel
Telerik team
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?