Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
111 views
Using a MVC.net RenderPartial(), i cannot get the TimePicker to load its' images unless I put a TimePicker in the parent view before the RederPartial is called.  

Does anyone know why this may be, and any possible solutions to fix it?
Rosen
Telerik team
 answered on 12 Jun 2009
3 answers
123 views
Hi,

Here is my scenario. I have a two level tree : one root node with one level of child node. The child node are loaded on demand by configuring the root node to ServerSideCallBack.

My goal is to combine the setting check box action with the loading child nodes on demand. Means that when i check the root node, it will load on demand all the child nodes and set its child nodes to checked.

currently i am using these code snippet which is triggered on client side event : OnClientNodeChecked. It will trigger DoCientNodeChecked event.

    function UpdateAllChildren(nodes, checked) 
    { 
       var i; 
       for (i=0; i<nodes.get_count(); i++) 
       { 
           if (checked) 
           { 
               nodes.getNode(i).check(); 
           } 
           else 
           { 
               nodes.getNode(i).set_checked(false); 
           } 
            
           if (nodes.getNode(i).get_nodes().get_count()> 0) 
           { 
               UpdateAllChildren(nodes.getNode(i).get_nodes(), checked); 
           } 
       } 
    } 
    function DoClientNodeChecked(sender, eventArgs) 
    { 
        debugger 
         
        if(!eventArgs.get_node().get_expanded()) 
        { 
            eventArgs.get_node().set_expanded(true); 
        } 
         
        var childNodes; 
         
        while(eventArgs.get_node().get_nodes() == null) 
        {         
            childNodes = eventArgs.get_node().get_nodes(); 
        } 
 
        var isChecked = eventArgs.get_node().get_checked(); 
        UpdateAllChildren(childNodes, isChecked); 
    }     



All the root nodes are configured with ExpandMode = TreeNodeExpandMode.ServerSideCallBack. so the workaround is expand the current node using client side method using set_expanded(true). But since it's working asynchronously, the next method which is "var isChecked = eventArgs.get_node().get_checked();" is executed directly.

May i know how to wait or check whether all the child nodes has been loaded successfully, before traversing the child nodes ?

Thanks

hadi teo
Yana
Telerik team
 answered on 12 Jun 2009
3 answers
201 views
Hi,

How to keep the grid setting of detail table of the radgrid..its worked for main grid.but not working for detailtables
plz help me...
Pavlina
Telerik team
 answered on 12 Jun 2009
5 answers
250 views
I'm using the example from 
http://demos.telerik.com/aspnet/prometheus/Window/Examples/CommunicationBetweenRadWindows/DefaultCS.aspx

to load a radwindow, specifically the following code:

  function openWin()  
        {  
            var oWnd = radopen("SegmentTable.aspx?st=1", "RadWindow1");  
            oWnd.setSize(340,340);  
            //set a function to be called when RadWindow is closed  
              
            oWnd.add_close(OnClientClose);  
        }  
          
        function OnClientClose(oWnd)  
        {  
            alert('wtf');  
        } 


If the user opens the radwindow more than once, the OnClientClose is fired for each time it has been opened. 

What do I need to do to fix this?  Can I destroy the radwindow once it's initially closed so that when it's opened it doesn't get mulitple close events added.

I suppose I can work around by having a flag to make sure the oWnd.add_close doesn't do anything after the first time, but I'm just wondering if this is intended behavior.  I have no way of determining if it fires multiple times in the demo.

Thanks.


Update:  I tried the hidden flag trick, but that doesn't work as the window does lose it's OnClientClose atttribute on postback. 
NS
Top achievements
Rank 1
 answered on 12 Jun 2009
3 answers
734 views

I'm allowing users to upload a file, using radUpload in one of my applications.  In production, when I upload a file more than 30mb, I get the following error immediately:

403: Access Forbidden

Due to the presence of characters known to be used in Cross Site Scripting attacks, access is forbidden. This web site does not allow Urls which might include embedded HTML tags.

I have verified that it's not the file name.  I have created two files called "myUpload20.zip" (20mb) and "myUpload40.zip" (40mb).  The 20 mb uploads fine.  I can't replicate it in Dev and UAT environment.  In these environment, I am able to upload files over 40mb with no issues.  I have verified the web.configs in all 3 and they all have:

<!--file upload size 100mb : 30 min-->

 

<

httpRuntime maxRequestLength="102400" executionTimeout="1800" />

Is this a server issue? Any ideas how I can eliminate the error?

 

 


 

Veselin Vasilev
Telerik team
 answered on 12 Jun 2009
3 answers
184 views
I get an error on export if the data contains "<" or ">" b/c it thinks its part of the XML when it is exporting to PDF.  When I replace these characters it messes up the RadGrid.  Is there a solution to this?  Thanks.
Daniel
Telerik team
 answered on 12 Jun 2009
4 answers
459 views
Hi,

I want to add value for ConfirmText in run time. I have a ragdrid and gridbuttoncolumns. Of that first column is an image button and rest are some data from the db. On clicking that button in the grid, we can set a confirmtext in design time. But I need the text to be set during runtime in my C# code. Is that possible?

Thanks.
Saranya
Saranya
Top achievements
Rank 2
 answered on 12 Jun 2009
1 answer
217 views
I have a unique reqiuremnt for validation.

I have 2 bound fields and a calculated fiels that is the difference of the 2 bound fields.
if the difference is not zero than the user must add a comment (a third bound field).  The validation must make sure something is in the comment field.  If the difference is zero the comment is optional

I am using a custom validator and i a correctly entering it.  I guess what i need is a javascript function that will return me the value of a calculated field

Thanks in advance, john
Veli
Telerik team
 answered on 12 Jun 2009
1 answer
114 views
Hello everyone,

Here is what i am trying to do.

I am trying to hide a Gridcolumn in a RadGrid.

I have found the code to do it... i just don't seem to get it to fire when i am first loading the Grid.

Here is my setup

Radtabstrip (6 tabs) with RadMultipage with 6 RadPageviews
each tab(views) has a RadGrid in it.  Each one of the grids has a maximum amount of columns that can be displayed and i have a check box control that limits what is displayed.

I have the code that iterates through the checkboxlist and hides the columns... I just cannot get this code to fire when the page first loads...

Where should i be putting this code in (right now it is in the checkboxlist selecteditem changed event... which is good ... but i also need this filtering done on first page load.

Thanks for any ideas...

Corey
Princy
Top achievements
Rank 2
 answered on 12 Jun 2009
3 answers
172 views
I am using RadAjaxManager in master page. we are loading pages in Master page. we placed the RadAjaxManager for loading particular forms when click the button.everything work fine.

If i tried to redirect the page using the Server.Transfer then it was not able to redirect and its giving error 
    "error executing child request default.aspx". If I remove the Ajax manager it was loading the page with out error.

I want to use server.transfer to redirect(need to maintain same url).

If any sample of code appreciate.

Pls help me out to find the solution.
Vlad
Telerik team
 answered on 12 Jun 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?