Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
240 views
I try to show and hide the radAjaxLoadingPanel, but it is not working.  I don't know what is missing.  I have a loading panel:

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

 

 

 

<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>

 

 


 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd">

 


 

 

function OnRequestStart(sender, arguments) {

 

 

 

var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

 

currentLoadingPanel.show(

 

'<%=PageForm.ClientID %>');

 

}

 

 

function OnResponseEnd(sender, arguments) {

 

 

 

var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

 

currentLoadingPanel.hide(

 

'<%=PageForm.ClientID %>');

 

}


In IE I get an error that show won't work:
'Microsoft JScript runtime error: Object doesn't support this property or method'

In FF I get an error that  currentLoadingPanel is undefined.  Both have a problem at the line for currentLoadingPanel.show().

Others have this website in TFS and we have all downloaded the files, but mine is not working and other people seem to have no problem.
What am I missing?

This problem occurs when filtering or sorting a RadGrid.

Thanks!


Lynne
Top achievements
Rank 1
 answered on 28 Sep 2010
2 answers
74 views
Good morning,

I am trying to find a way to highlight adjacent timeslots based on a db field for variance. i.e. if I have a weekly task when I click and start to move it I'd like it to highlight -2 days and +2 days. I just can't seem to find a way to capture the adjacent timeslots. Any thoughts?

Eric
Eric Moore
Top achievements
Rank 1
 answered on 28 Sep 2010
1 answer
259 views
Hi,
I have encountered one problem in telerik rad date picker.If Only date is provided in date picker input box ,automatically it takes the current month and current year as other values when the focus is out from the DateInput box.
In the attached file I have put 9 in the "End field" and took the cursor out of the box then it took 9/9/2010 by default.

In this case 9 and 2010 is the current month and the current year.Please let me know how to overcome this problem.

Steps to reproduce:
Click on any of input box(not on datepicker)
type in the any value(less than 30) in the input box
and move the cursor out of the box;see it takes the current month and year by default.

Expected: It should highlight the input box as it does when 0 is keyed in

regards
Sudhanshu
Dimo
Telerik team
 answered on 28 Sep 2010
1 answer
93 views
I use GridTemplateColumn and CheckBox in there.
I have event , which fire after I checkChange , this is code behind:

string n = ((sender as CheckBox).Parent.Parent as GridItem).Cells[1].Text;

i need some data from cell, but I get "&nbsp;" , how to fix that.

I would like to change color of checked row, too.
Princy
Top achievements
Rank 2
 answered on 28 Sep 2010
1 answer
91 views
How To Remove the Icon in the Rad Sheduler and Different Icons for Different Events....

example
Attached

I used this method to coloured the Appoinments

 

 

 

 

If Trim(e.Appointment.RecurrenceParentID) = "E" Then

 

 

 

For i = 0 To reccount - 1

 

 

 

If RadScheduler1.Appointments(i).Subject = e.Appointment.Subject Then

 

RadScheduler1.Appointments.Item(i).BackColor = Drawing.

 

Color.Orange

 

 

 

Exit For

 

 

 

End If

 

 

 

Next

 

 

 

End If

 

 

 

'Display Work Order in Differnt colour

 

 

 

If Trim(e.Appointment.RecurrenceParentID) = "W" Then

 

 

 

For i = 0 To reccount - 1

 

 

 

If RadScheduler1.Appointments(i).Subject = e.Appointment.Subject Then

 

RadScheduler1.Appointments.Item(i).BackColor = Drawing.

 

Color.YellowGreen

 

 

 

Exit For

 

 

 

End If

 

 

 

Next

 

Peter
Telerik team
 answered on 28 Sep 2010
3 answers
116 views

I have upgraded telerik components from 2009.2.701.35 to 2010.2.826.35 

and nowreferencing the javascripts for Animation on Page causes out of 
memory exception on tool tip show
<asp:ScriptReference 
Path="~/RadResources/Scripts/Common/Animation/AnimationScripts.js" />
if i remove the reference, this doesn't happen and animation seems ok and no memory exception happens. 
am i missing some other reference that might be causing this error or should i remove the reference everywhere?
Svetlina Anati
Telerik team
 answered on 28 Sep 2010
2 answers
202 views
Hi folks,

I recieve a time duration data in seconds, lets say 90, and I need to show it as 1:30

I can just use TimeSpan.FromSeconds(90).ToString() to get this done for me, but I don't know where I can put it on RadGrid.

I only see a FormatString property, and I need to provide a little logic. Any suggestions?

Thanks,
Adilson Carvalho
Top achievements
Rank 1
 answered on 28 Sep 2010
5 answers
166 views
I am having an issue with a custom "help" button that I added to the Radwindow.  When I click on my custom button, the window maximizes. And when I click on the custom button again, nothing happens. I am NOT expecting the window size to change. Does anyone know what is going on?

Telerik.Web.UI V: 2009.2.701.20
Using IE8 in Browser mode: IE8 Document mode: IE 8 Standards

Is there some embedded event that I need to cancel?

function showRadWindow() {
    window.radopen("SamplePage.aspx", "sampleWindow");
    return false;
}
 
function AddHelpIcon(radWindow) {
 
    var radWindowDom = document.getElementById(radWindow.get_id());
    var TitleBar = radWindow.GetTitlebar();
    var parent = TitleBar.parentNode;
    var oUL = parent.getElementsByTagName('UL');
    var oLI = oUL[0].getElementsByTagName('LI'); //Get the unordered list html element
 
    if (oLI[0].id != "HelpListItem") { //If first (list item) does not have the id of "HelpListItem"
        var newLI = oLI[0].cloneNode(true);
        var newA = newLI.getElementsByTagName('a'); //html anchor
        oUL[0].style.width = "93px"; //width of titlebar
        newA[0].className = "helpbutton"; //class inside .css file
        newA[0].title = "Help Button";
        newA[0].lastChild.innerHTML = "Help Button";
        newA[0].onmousedown = callHelpFunction;
 
        if (radWindowDom.attributes["HelpId"] != null) {
            newA[0].setAttribute("helpId", radWindowDom.attributes["HelpId"].value);
        }
 
        oUL[0].insertBefore(newLI, oLI[0]);
        oLI[0].id = "HelpListItem"; //Name the first (list item) ID to "HelpListItem"
    }
}
 
function callHelpFunction(e) {
 
    //Do something
 
    //Cancel event!
    if (!e) e = window.event;
    return $telerik.cancelRawEvent(e);           
}
 
<asp:Button Id="button1" runat="server" Text="Open Rad Window2" OnClientClick="showRadWindow(); return false;" />
 
<telerik:RadWindowManager id="radWindowManager" runat="server">
        <windows>
                 
            <telerik:RadWindow
                id="notesWindow"
                Runat="server"
                Behaviors="Close, Move, Resize, Maximize"
                ReloadOnShow="true"
                VisibleStatusbar="true"
                ShowContentDuringLoad="false"
                Width="440px" Height="440px"
                Left="250px"
                Modal="true"
                EnableEmbeddedSkins="false"
                Skin="mySkin"
                EnableEmbeddedBasestylesheet="false"
                OnClientShow="AddHelpIcon">
            </telerik:RadWindow>           
        </windows>
    </telerik:RadWindowManager>
Svetlina Anati
Telerik team
 answered on 28 Sep 2010
1 answer
343 views
Hi,

I want to know if there's any way to hide a column if is empty without iterate on each value.

I'm usign SQL Server 2008 and it's not important the kind of the datasource object.

Thanks
Dimo
Telerik team
 answered on 28 Sep 2010
1 answer
119 views
I want to do like in the picture. How do ?
Princy
Top achievements
Rank 2
 answered on 28 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?