Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
155 views
I'm trying to build/load a context menu for each node of a databound Treeview with the same number and type of items, but with a different navigateUrl for the first context menu item.

The first context menu item is a link to an external page and I want to pass the node value in that link--something like http://go.here.com?s={nodeValue}.  So far nothing I have tried does what I need it to.  Any suggestions?
Yana
Telerik team
 answered on 11 Nov 2008
0 answers
170 views
Hi ,
I am using Rad treeview version 2008.2.723.35.
I am using onload demand using web service with minimum custom class used to return the node data.
My Problem is i have a parent node with around 1500 child brands.
When i check the parent there is a javascript function attached to OnClientNodeChecked event which check the child brands.

function

AfterCheckBrands(sender, eventArgs) {

 

 

    var node = eventArgs.get_node();

 

 

    if (node.get_checkBoxElement().checked == false) {

 

        tempNode = node;

 

        while (tempNode.get_value() != null) {

 

            tempNode = tempNode.get_parent();

 

            //tempNode.uncheck();

 

            tempNode.get_checkBoxElement().checked =

false;

 

        }

    }

    UpdateAllChildren(node.get_nodes(), node.get_checkBoxElement().checked);

}

 

function

UpdateAllChildren(nodes, checked) {

 

 

    var i;

 

 

    for (i = 0; i < nodes.get_count(); i++) {

 

 

        if (checked) {

 

 

            if (nodes.getNode(i).get_checkBoxElement().checked == false) {

 

 

                //nodes.getNode(i).check();

 

                nodes.getNode(i).get_checkBoxElement().checked =

true;

 

            }

        }

 

        else {

 

 

            if (nodes.getNode(i).get_checkBoxElement().checked) {

 

 

                //nodes.getNode(i).uncheck();

 

                nodes.getNode(i).get_checkBoxElement().checked =

false;

 

            }

        }

 

        if (nodes.getNode(i).get_nodes().get_count() > 0) {

 

            UpdateAllChildren(nodes.getNode(i).get_nodes(), checked);

        }

    }

}

When i am just checking the checkBoxElement and not setting the state using check() ot uncheck() for node it works fine.The script does not time out.
But the twist is that the node state is not set.Let say i checked a parent and children nodes  gets check through javascript.But when i try to uncheck the any child brand the checkBoxElement for that node remains checked.I am assuming that when i explicitly trying to uncheck that node for the first time then internally it state get set to checked even if the checkBoxElement is displayed checked.When i try to uncheck it second time it works fine and according to javascript unchecked the parent node also.
So just setting the checkBoxElement of the node it not internally setting it state to checked or unchecked.

But when i try to use radtreeviewnode.check() or uncheck() then  i get an IE error saying the script is taking too much time.
If i abort the scipt my tree comes into intermediate state which is not correct.
Is there any way i can get over any of the above two problems i am facing.
Any help will be greatly appreciated.

Regards,
Aayam Singh

Aayam
Top achievements
Rank 1
 asked on 11 Nov 2008
3 answers
113 views
Hello,

I was wondering if it was possible to use the client side drag select to select individual cells in a column and not have the entire row become selected.  I thought I remembered finding a solution for this in a previous search but I am unable to find it again.

Thanks,
Jonathan
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2008
5 answers
150 views
hi,
how do i hide column from a grid? i use data to bind to the grid and have autogenerate columns enable.  i tried radgrid1.masterviewtable.items(0).visible=false. could you tell me what the correct syntax is? Also when i export data how do i format the columns or cells ? thank you very much for helping.
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2008
2 answers
124 views

My splitter.aspx code :

<telerik:radsplitter id="RadSplitter1" runat="server" height="100%" width="100%" Orientation="Horizontal" Skin="Default2006">     
            <telerik:radpane id="panel_header" runat="server" Height="68" MaxHeight="68" MinHeight="68">header</telerik:radpane>    
            <telerik:radsplitbar id="RadSplitbar1" runat="server" CollapseMode="Forward" />    
            <telerik:radpane id="contentPane" runat="server" Scrolling="None">     
                <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" width="100%" Skin="Default2006">     
                    <telerik:radpane id="panel_menu" runat="server" width="250" ContentUrl="treeview.aspx"></telerik:radpane>    
                    <telerik:radsplitbar id="RadSplitbar2" runat="server" CollapseMode="Forward" />    
                    <telerik:radpane id="panellist" runat="server"></telerik:radpane>    
                </telerik:radsplitter>    
            </telerik:radpane>    
        </telerik:radsplitter>   

this is my treeview.aspx:
<script type="text/javascript">  
      function ClientNodeClicked(sender, eventArgs)  
        {  
            var treeNode = eventArgs.get_node();  
            var nodeValue = treeNode.get_text()  
 
            if (nodeValue == "Root")  
            {  
                window.open("content1.aspx""panellist");  
            }  
            else if (nodeValue.substring(0, 4) == "node")  
            {  
                nodeValue = nodeValue.substr(1, nodeValue.length - 1);  
                window.open("content2.aspx""panellist");  
            }  
        }  
    </script>  
 
 
<telerik:RadTreeView ID="TreeView1" runat="server"  OnClientNodeClicked="ClientNodeClicked">  
        <Nodes>  
            <telerik:RadTreeNode Text="Root">  
                <Nodes>  
                    <telerik:RadTreeNode Text="node1" />  
                    <telerik:RadTreeNode Text="node2" />  
                </Nodes>  
            </telerik:RadTreeNode>  
   
        </Nodes>  
    </telerik:RadTreeView> 

when I click the node in the treeview, then screen a content in a pop page, how screen the content in the radpane(panellist) and not refresh all the page??
Thanks.
xiaolin
Top achievements
Rank 1
 answered on 11 Nov 2008
1 answer
184 views
Hello,

I am having a hard time getting text alignment to work for text in ItemTemplates on PDF export.  ven straight text does not work.

I have tried in style attributes (tried both text-align and horizontal-align), ItemStyle elements attributes, and even in the OnItemCreated event.  All to no avail.  Text remains left justified.

Please help!
Thanks,
Michael
Princy
Top achievements
Rank 2
 answered on 11 Nov 2008
2 answers
214 views
I've just upgraded to the latest release and am very disappointed to discover that the custom skin for my RadCalendar no longer works because all the styles have been renamed in the latest release.

I cannot understand why this was done, nor why there was no information to indicate that it had been.

I had previously spent considerable time customizing this skin, and after upgrading spent some more time trying to work out why my skin wasn't working. Now, I have to spend even more time re-customizing the skin.

If you are using a custom skin on a RadCalendar and haven't upgraded to v 2008.3 yet, please be aware of this issue.
John
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
141 views
Hi,

I have a RadEditor opening up in a RadWindow. The Editor saves changes to a DB when the user clicks save, but I would like to display some sort of confirm dialog if they have made changes in the RadEditor and attempt to close the RadWindow without saving. Possible?

Thanks,
Greg
Greg
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
66 views
Hello,
I am using rad editor control with simple toolbar but i have one issue that the bold property doesn't work with me while the other properties like(Italic,underline,font,color) working fine,
any body can help me.
Serrin
Top achievements
Rank 1
 answered on 10 Nov 2008
6 answers
232 views
I try to make an ajax call (RadAjaxManager.ajaxRequest()) in pageUnLoad event handler. My goal is to save some data on the page before the page gets unloaded either by clicking an out-going url or by closing the browser window. However, I found after calling ajaxRequest(), the page cannot be unloaded. In other words, if I click a link, the new page will never get loaded. The following is the function I called in pageUnload(). Has anyone done something like this before? Any solutions? Thanks in advance.

 function SaveOnExit()  
            {                                 
                var ajaxManager = $find("<%= ram.ClientID %>");               
                ajaxManager.ajaxRequest();       
                
            }         
HHalim
Top achievements
Rank 2
 answered on 10 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?