Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
I have ASP.NET AJAX installed on my computer and I just purchased VS 2010.

How can I integrate the Telerik controls into VS 2010 like my VS 2008?  i.e. the toolbox,  project templates, etc.

Do I have to un-install and re-install?  I'm hoping there is a quick solution.

Thanks!
Jaime
Erjan Gavalji
Telerik team
 answered on 10 Jun 2010
5 answers
233 views
Please find the attached image for the issue and let us know if there is any fix for this issue.
Bozhidar
Telerik team
 answered on 10 Jun 2010
36 answers
1.7K+ views
Hello,

We get many requests for samples which demonstrates how to create a portal site, incorporating RadDock. Attached is a simple site, which, I hope, will be of help to everybody.

In order to keep this thread clean, please report bugs and feature requests in separate threads. We will update the application on a regular basis and most probably it will be uploaded on our site.

Best regards,
Valeri Hristov
the Telerik team



Pero
Telerik team
 answered on 10 Jun 2010
1 answer
138 views
protected void Page_Load(object sender, EventArgs e)  
        {  
            try  
            {  
                //Get all parents in hierarchy for the client and set First Level Ultimate ParentDuns  
                ControllerController.NodeUltimateParentsList = Controller.GetClientUltimateParentsList(Controller.ClientId);  
                SetUltimateParentDuns();          
                //TreeView event on expanding any node in tree view  
                t1.NodeExpand += new RadTreeViewEventHandler(t1_NodeExpand);  
                t1.NodeCreated += new RadTreeViewEventHandler(t1_NodeCreated);  
                t1.NodeClick += new RadTreeViewEventHandler(t1_NodeClick);  
                t1.OnClientMouseOver = "ClientMouseOver";  
                  
                  
            }  
            catch (Exception ex)  
            {  
 
            }  
        }  
void t1_NodeClick(object sender, RadTreeNodeEventArgs e)  
        {  
            if (OnNodeClick != null)  
                OnNodeClick(sender, e);  
              
        }  
  public void BindHierarchy()  
        {  
           LoadRootNodes();  
                   }  
void t1_NodeCreated(object sender, RadTreeNodeEventArgs e)  
        {  
 
            RadTreeNode currentNode = e.Node;  
            RadTreeNode parentNode = e.Node.ParentNode;  
            if (currentNode.Value.ToString() != string.Empty)  
            {  
                //If parent not null then set UltimateParent attribute to current node  
                if (parentNode != null)  
                {  
                    currentNode.Attributes.Add("UltimateParent", parentNode.Attributes["DUNSNbr"]);  
                }  
                //Check if current node has DUNSNbr which is current parent in client hierarchy branch then expand and bind it's next level  
                if (currentNode.Value.Trim() != string.Empty && currentNode.Value == UltimateParent && NodeLevel >= 0)  
                {  
                    //First of all set next ultimate parent so that it can be checked for next loop  
                    currentNode.ExpandMode = TreeNodeExpandMode.ClientSide;  
                    SetUltimateParentDuns();  
                    currentNode.Expanded = true;                      
                    BindNextLevelHierarchy(currentNode, currentNode.Value);  
                }  
                else  
                {  
                    currentNode.ExpandMode = NodeExpandMode;  
                }  
            }  
        }  
void t1_NodeExpand(object sender, RadTreeNodeEventArgs e)  
        {  
            try  
            {  
                if (e.Node.Value.Trim() != string.Empty)  
                {  
                    AppendChildNodesOnExpand(e.Node);  
                    t1.DataBind();  
                }  
            }  
            catch (Exception ex)  
            {  
                  
            }  
        }  
 private void LoadRootNodes()  
        {  
            try  
            {  
                bool isHierarchyExist = false;  
                if (!string.IsNullOrEmpty(GlobalUltimateDuns))  
                {  
                    t1.Nodes.Clear();  
                    //Fetch Root node for the GlobalultimateDuns of client  
                    HierarchyNodeDTO globalRootNodeInfo = Controller.GetGlobalUltimateNode(GlobalUltimateDuns);  
 
                    if (globalRootNodeInfo != null)  
                    {  
                        RadTreeNode rootNode = null;  
                        //Add Root Node  
                        rootNode = CreateNewNode(globalRootNodeInfo);                          
                        t1.Nodes.Add(rootNode);  
 
                        //Fetch all child nodes for the root node  
                        IList<HierarchyNodeDTO> lstChildNodes = Controller.GetChildHierarchyNodes(GlobalUltimateDuns);  
                        //Add child nodes to root one by one  
                        if (lstChildNodes != null && lstChildNodes.Count > 0)  
                        {  
                            foreach (HierarchyNodeDTO nodeInfo in lstChildNodes)  
                            {  
                                RadTreeNode node = CreateNewNode(nodeInfo);  
                                t1.Nodes[0].Nodes.Add(node);  
                            }  
                        }  
                        rootNode.ExpandMode = TreeNodeExpandMode.ClientSide;  
                        rootNode.Expanded = true;  
                        t1.DataBind();  
                        isHierarchyExist = true;  
                    }  
                }  
                if (!isHierarchyExist)  
                {  
                    //Bind current client as single root node  
                    RadTreeNode rootNode = CreateNewNode(Controller.ClientToHierarchy);  
                    t1.Nodes.Add(rootNode);  
                    t1.DataBind();  
                }  
            }  
            catch (Exception ex)  
            {  
 
            }  
        }  
private void AppendChildNodesOnExpand(RadTreeNode parentNode)  
        {  
            IList<HierarchyNodeDTO> lstChildNodes = Controller.GetChildHierarchyNodes(parentNode.Value, parentNode.Level);  
            if (lstChildNodes != null && lstChildNodes.Count > 0)  
            {  
                foreach (HierarchyNodeDTO nodeInfo in lstChildNodes)  
                {  
                    RadTreeNode node = CreateNewNode(nodeInfo);  
                    parentNode.Nodes.Add(node);  
                }  
            }  
        }  
 private void BindNextLevelHierarchy(RadTreeNode parentNode, string parentDuns)  
        {  
            IList<HierarchyNodeDTO> lstCurrentChildNodes = Controller.GetChildHierarchyNodes(parentDuns);  
            if (lstCurrentChildNodes != null && lstCurrentChildNodes.Count > 0)  
            {  
                foreach (HierarchyNodeDTO nodeInfo in lstCurrentChildNodes)  
                {  
                    RadTreeNode node = CreateNewNode(nodeInfo);  
                    parentNode.Nodes.Add(node);  
                    //If we get Client node then select it  
                    if (nodeInfo.ClientId == Controller.ClientId)  
                    {  
                        node.Selected = true;  
                        UltimateParent = "";  
                        NodeLevel = -1;  
                    }  
                }  
            }  
        }  
/// <summary> 
        /// AddCustomAttributesToNode  
        /// </summary> 
        /// <param name="attributeInfo"></param> 
        /// <param name="node"></param> 
        private void AddCustomAttributesToNode(HierarchyNodeDTO attributeInfo, RadTreeNode node)  
        {  
            node.Attributes.Add("ClientId", attributeInfo.ClientId.ToString());  
            node.Attributes.Add("CompanyName", attributeInfo.CompanyName);  
            node.Attributes.Add("DUNSNbr", attributeInfo.DUNSNbr);  
            node.Attributes.Add("ParentDuns", attributeInfo.ParentDuns);  
            node.Attributes.Add("GlobalUltimateDuns", attributeInfo.GlobalUltimateDuns);  
            node.Attributes.Add("WLEInd", attributeInfo.WLEInd);  
            node.Attributes.Add("UltimateParent", attributeInfo.UltimateParentInHierarchy);  
        }  
          
        /// <summary> 
        /// CreateNewNode  
        /// </summary> 
        /// <param name="nodeInfo"></param> 
        /// <returns></returns>  
        private RadTreeNode CreateNewNode(HierarchyNodeDTO nodeInfo)  
        {             
            RadTreeNode node = new RadTreeNode();  
            node.Text = nodeInfo.Caption;  
            node.Value = nodeInfo.DUNSNbr;  
            node.ExpandMode = NodeExpandMode;              
            AddCustomAttributesToNode(nodeInfo, node);  
            node.PostBack = true;  
            node.DataBind();  
            return node;  
        }  
 
        /// <summary> 
        /// SetUltimateParentDuns  
        /// </summary> 
        private void SetUltimateParentDuns()  
        {  
            try  
            {  
                //Get ultimate hierarchy                  
                if (Controller.NodeUltimateParentsList != null)  
                {  
                    IList<HierarchyNodeDTO> lstUltimateParents = Controller.NodeUltimateParentsList;  
                    if (lstUltimateParents != null && lstUltimateParents.Count > 0)  
                    {  
 
                        HierarchyNodeDTO ultimateParentDTO = (HierarchyNodeDTO)lstUltimateParents.First(e => e.NodeGeneration == lstUltimateParents.Count-1);  
                        UltimateParent = ultimateParentDTO.DUNSNbr;  
                        NodeLevel = ultimateParentDTO.NodeGeneration;  
                        lstUltimateParents.Remove(ultimateParentDTO);  
                        Controller.NodeUltimateParentsList = lstUltimateParents;  
                    }  
                }  
                else  
                {  
                    UltimateParent = string.Empty;  
                    NodeLevel = -1;  
                }  
            }  
            catch (Exception ex)  
            {  
 
            }  
        } 
Yana
Telerik team
 answered on 10 Jun 2010
4 answers
194 views
Hello,

I am looking for an example where I can show a tooltip when I leave a textbox.  (onblur)

I have a tooltip defined as in one of your examples.  However, it fires onmouseover.  How do I change to have control on when it fires.
 

<telerik:RadToolTip ManualClose="true"
ID="RadToolTip1"
Skin="Vista"
runat="server"
TargetControlID="txtPartyName">
Rich content:
<asp:Button ID="btnA" runat="server" Text="Button in a ToolTip"/>
</telerik:RadToolTip>

<asp:TextBox ID="txtPartyName" runat="server" onblur=????></asp:TextBox>

Thanks,
Feizal

 

 

 

 

 

 

 

 

 

Svetlina Anati
Telerik team
 answered on 10 Jun 2010
6 answers
206 views
Hi,

I created dynamic tab creation application using telerik radstrip. I can delete the tabs that are creating dynamically using crossbar option. When i am deleting the tabs its just deleting the tabs but not pageview corresponding to the tab. I have tried to delete the pageviews but i am getting error like "Microsoft JScript runtime error: Object doesn't support this property or method" and pointing to

multiPage.get_pageViews().remove(pageView); code. Can anyone help me how to delete pageviews.

Thanks in advance.

Javascript code.

   
<script type="text/javascript"
        /* <![CDATA[ */
        function deleteTab(tabText) {
            var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
            
            var multiPage = $find("<%= RadMultiPage1.ClientID %>");
            var tab = tabStrip.findTabByText(tabText);
            var pageView = tab.get_pageView();
            var tabToSelect = tab.get_nextTab();
            if (!tabToSelect)
                tabToSelect = tab.get_previousTab();
            tabStrip.get_tabs().remove(tab);
            
            multiPage.get_pageViews().remove(pageView);
            if (tabToSelect)
                tabToSelect.set_selected(true);
        }
        /* ]]> */ 
    </script>  

Babu Puchakayala
Top achievements
Rank 1
 answered on 10 Jun 2010
1 answer
123 views
Hello,
The fact that the width of the Bar is set by BarWidthPercent and not by pixels, causes me a lot of headache.
But I would expect it to be calculate as percentage of the PlotArea.Appearance.Dimensions.Width and not the radChart.width.

(The reason is that I need a wide title on a small and thin bar chart - please see attached file)

Any way to help me?
Thanks,
Niv.

 
Velin
Telerik team
 answered on 10 Jun 2010
2 answers
140 views
Hi
I have a ListView that shows some rows with some columns.
The columns goes as follows; productId, product name, product picture, more pictures, price, in stock and so forth

The column: "Product Picture" shows a picture of the product!
When the ListView is in ItemEditCommand mode (that is when someone has clicked on the Edit button of a row) it should be possible to upload a picture. This is were the upload control comes. I want the RADupload control to appear here inside this little table cell, when this Edit button is clicked. However there is not much place for this upload control. So what should I do?

Note It has to be inside this table cell, cause I need the row ID of the row which Edit button has been clicked.

Thanks for reading

P.S. My DLL version is 2009.3.1208.35 > Telerik.Web.UI.dll (ASP.NET Ajax)
 

sammy ymmas
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
188 views
Hello all,

first of all, let me say that your controls are really great. I am using version: 2009.2.701.35

There's one issue i want to ask you about.

Inside a RadWindow, a RadGrid is used with the following parameters:
<ClientSettings>
    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>

The grid works fine in the RadWindow without a decorator. After inserting the RadFormDecorator, the size of RadWindow's client area increases and the window gets a vertical scrollbar. The vertical space added seams to be of the same size as the grid would need without scrolling. The vertical scrollbar of the RadWindow also appears when I only decorate buttons. Is there a solution to this?

Regards,
Michael
Oliver Cox
Top achievements
Rank 1
 answered on 10 Jun 2010
2 answers
149 views
I have a page with a variable number of inputs on screen.
I create them as input types with a cssClass called numeric.
Once all the inputs are created I load them into the input manager

        elements = $('input.numeric', someContextDiv); 
        var numericSettings = $find('RadInputManager').get_inputSettings('NumericSettings'); 
        generateInputIds(elements); 
        for (var idx = 0; idx < elements.length; ++idx) { 
            numericSettings.addTargetInput(elements[idx].id); 
        } 


Is there a way to now dynamically enable the SpinButtons on these inputs?
I'd like to set ShowSpinButtons = true & ButtonsPosition="Right"

cheers

Dimo
Telerik team
 answered on 10 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?