Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views
I have a hierarchy grid, with 5 details GridViews. In the top-level item, I know which details views will have data.

Is there a way to prevent details gridviews from databinding(query to DB) based on values from the top-level item   ?
Prangadj
Top achievements
Rank 1
 answered on 21 Jul 2009
3 answers
299 views
I have a RadNumericTextBox, set to Currency Type, and a regular text box.  I also have a CompareValidator that compares the RadNumericTextBox and the regular TextBox.  I initialze each text box with the same value.  Both Boxes are formatted as currence and the CompareValidator is set to Currency.  No matter what I put for an input in my RadNumericTextBox, the comparevalidator fails.  I'm doing a LessThanEqual comparison. 

Does anyone have any ideas?

Thanks
ManniAT
Top achievements
Rank 2
 answered on 21 Jul 2009
1 answer
65 views
hi team,

Your Rad Window is not opening in mac operating system.

could you give any solution......


Satyadev.
Georgi Tunev
Telerik team
 answered on 21 Jul 2009
1 answer
191 views
Hi,

I have a RadWindowManager, in which I have a Window definition caller UserDialog.

When I open this window, the source is set as an ASPX, complete with querystring variables to pass through a unqiue  userid.

This works absolutely fine, and the window was modal.

There is now a user request that they want to be able to open MULTIPLE windows of type UserDialog, hence I switched to non-modal.

When ever I try to open a second instance of Radwindow type UserDialog , I can't get it to do this though, as it seems to reuse the window already open.

Is it possible to open multiple Windows of definition UserDialog?

Thx
Paul,.
Georgi Tunev
Telerik team
 answered on 21 Jul 2009
2 answers
122 views
I am getting seriously confused (once again)...

My form is quite simple and has a RadAjaxManager called RadAjaxManager1

A javascript method called Initialise() is called on Body / Onload
That method is defined in a script block in the Head section.

At the end of that method, I try to call ajaxRequest() on my AjaxManager but every syntax I try fails in various ways...

            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            ajaxManager.ajaxRequest("ReloadGrid");

In this case ajaxManager is null, hence ajaxRequest does not work

            var ajaxManager = $find("<% = RadAjaxManager.GetCurrent(Page).ClientID % >");
 
This gives me the same null which is not surprising because it's translated to the same on the client side.

My code looks something like
<head runat="server"> 
  <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
  <script language="javascript"> 
    function GetRadWindow() { 
... 
    } 
 
    function Initialise() { 
... 
       //var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); 
       var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); 
        
       ajaxManager.ajaxRequest("ReloadGrid"); 
     } 
  </script> 
  </telerik:RadCodeBlock> 
</head> 
<body onload="Initialise()"> 
  <form id="form1" runat="server"> 
  <div> 
    <div id="hideMe1" style="height: 0px; width: 0px; position: absolute; top: -100px;"> 
      <telerik:RadWindowManager ID="RadWindowManager1" runat="server" /> 
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
... 

Am I missing something fundamental?

Eric

PS: There is no master page or anything remotely complicated that I can think of... and I have other forms working fine with RadAjaxManager


Eric
Top achievements
Rank 1
 answered on 21 Jul 2009
3 answers
225 views

Hi,
    I have a requirement to show a progress bar while loading a page(modal). Since we are using Telerix controls, I am planning to use radwindow for this purpuse.

Can anyone help me how to achive this

  • Open a radwindow as a modal popup when a request comes to the page. There should not any buttons either to close or minimize or whatever.
  • Close the window automatically when the page load completes

    I dont want something advance, i need just open a modal popup page which shows some text or image and it should visible until the page loads and should hide automatically.

Thanks in advance

Fiko
Telerik team
 answered on 21 Jul 2009
3 answers
419 views
The following piece of code produce a javascript error"
Type.registerNamespace("Telerik.Web.UI"); 
Type.registerNamespace("Telerik.Web.UI.WindowManager"); 
function GetRadWindowManager(){ 
return Telerik.Web.UI.WindowManager.Manager; 
} 
window.radalert=function(_1,_2,_3,_4){ 
var _5=GetRadWindowManager(); 
var _6=_5._getStandardPopup("alert",_1); 
if(typeof (_4)!="undefined"){ 
 

The error is in the bold line, and the msg is:"Microsoft JScript runtime error: 'undefined' is null or not an object"

It is related to popUpRadMsg. I call it on this way:
<body onload="msgAlert()">






</html>
.
.script goes under the </html>:
.





...
<script language="javascript" type="text/javascript"> 
    // This code must be in the master and cannot be moved to external js file. 
    // We use String comparsion instead of boolean, to keep the code valid. 
    // if (Convert.ToString(divDisplayMsg.Visible)).ToLower()  is accidently empty, no harm is done and the code is still valid. 
    function msgAlert() { 
        var toPopup = "<%=(Convert.ToString(divIsDisplayMsgVisible.Visible)).ToLower() %>"; 
        if (toPopup == "true") { 
            var displayMsgDiv = document.getElementById("<%=divDisplayMsg.ClientID %>"); 
             
            if (displayMsgDiv) { 
                var msg = displayMsgDiv.innerHTML; 
                //alert(msg); 
                popupRadMsg(msg); 
            }  
            //popupDisplayMsg(); 
 
        } 
    } 
</script> 
 
 

and on an attached JS file:
function popupRadMsg(msg){ 
            return radalert(msg, 500, 500); 
          } 

This alert is invoked depending on the visibility  of divDisplayMsg. this is set on the server side and allow me to control the popup msg (I can send text and info from server side to it).

Maybe you can tell why is this javascript error occurs?

(IE7, IE6, FF)
Georgi Tunev
Telerik team
 answered on 21 Jul 2009
1 answer
131 views
Dear sir,
How can I save dock state at client side in database

thanks with regards
Mr. Plinko
Top achievements
Rank 1
 answered on 21 Jul 2009
4 answers
198 views
Hi all,
I want to call a server-side routine when a menu item is clicked, and have tried using the following code (extract):

 
<telerik:RadScriptBlock ID="cb1" runat="server">  
    function InitiateAjaxRequest(arguments)  
    {  
      var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");  
      ajaxManager.ajaxRequest(arguments);  
    }  
 
 
  function emailMenuClicked(sender, args)  
  {  
     var itemValue = args.get_item().get_value();  
     if (args.get_item().get_text() == "Email Customer")  
     {  
        InitiateAjaxRequest("EmailCustomer",1);  
     }  
     if (args.get_item().get_text() == "Email Officer")  
     {  
        InitiateAjaxRequest("EmailOfficer",2);  
     }  
  }         
</telerik:RadScriptBlock> 
 
 
 
    <telerik:RadContextMenu ID="RadContextMenu1" runat="server" EnableEmbeddedSkins="False" 
        Skin="Glastir" OnClientItemClicked="emailMenuClicked">  
        <Items> 
            <telerik:RadMenuItem runat="server" Text="Email Customer">  
            </telerik:RadMenuItem> 
            <telerik:RadMenuItem runat="server" Text="Email Officer">  
            </telerik:RadMenuItem> 
        </Items> 
        <Targets> 
            <telerik:ContextMenuControlTarget ControlID="RadScheduler1" /> 
        </Targets> 
    </telerik:RadContextMenu> 

 

I need to put the Javascript in a RadScriptBlock because I need to evaluate the AjaxManager's client ID. However, when I do this, I get an 'object expected' error because the emailMenuClicked function is not visible to the RadContextMenu.

When I put the emailMenuClicked function in an ordinary <script></script> tag, then the code there can't see the InitiateAjaxRequest function.

I'm sure there's a simple solution, but I'm going round in circles on this - can someone point me in the right direction, please?

Thanks,

James

James
Top achievements
Rank 1
 answered on 21 Jul 2009
2 answers
206 views
I have a problem with the RadDatePicker's Event "selectedDateChanged". It raises without problems if it was created in the Markup, and the eventhandler is attached there such as:

<rad:RadDatePicker ID="rdp1" AutoPostBack="true" runat="server"  
        onselecteddatechanged="rdp1_SelectedDateChanged"></rad:RadDatePicker> 

If this Control is created by code, NO Eventhandler will fire:
RadDatePicker rdp = new RadDatePicker(); 
            rdp.SelectedDate = new DateTime(2009, 5, 4); 
            rdp.AutoPostBack = true;             
            rdp.SelectedDateChanged += new SelectedDateChangedEventHandler(rdp_SelectedDateChanged); 
this.Controls.Add(rdp); 
             

I searched for help here in the forum but I didn't get the trick to let the Handler fire....

Please help ;)

Thanks already
Frithjof
Fred
Top achievements
Rank 1
 answered on 21 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?