Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
196 views
I have a RadTreeView on a MasterPage inside 2 nested splitters. I am using LoadOnDemand, but need to be able to expand nodes from serverside code. I am attempting to do this by calling the method I have written to expand the node to the ResponseScripts. This method is in a RadCodeBlock as follows:

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"
<script type="text/javascript"
    function expandNode(nodeid) { 
        var treeView = $find("<%= NavigationTreeView.ClientID %>"); 
        var node = treeView.findNodeByValue(nodeid); 
        if (node) { 
            node.expand(); 
            return true; 
        } 
        return false; 
    }    
</script> 
</telerik:RadCodeBlock> 

My problem is that I am not able to access the RadTreeView to expand the nodes.  Please give me some guidance on how to access the RadTreeView.

Thanks!

Lauren Kirschner


Lauren
Top achievements
Rank 1
 answered on 13 Aug 2009
1 answer
65 views
Hi all,

I want to create a grid table with columns from multiple linq data source (like from booking table and user table). How can I do that?

In case there is one way to do that, can I use grideditcolumn for each row of the grid?

Thank you,
Georgi Krustev
Telerik team
 answered on 13 Aug 2009
1 answer
114 views
Hi

I have a treeview control inside a radcombobox.

When I try to databind to the treeview Iam getting error "These columns don't currently have unique values"
It works fine if I comment  " .DataFieldParentID = "ParentId", but parentId column cannot have unique values.
I am confused can any one help me in this regard.

radTree = DirectCast(RadComboBoxCategoryLevels.Items(0).FindControl("RadTreeView"), RadTreeView)
        radTree.Nodes.Add(New RadTreeNode("Any Category", ""))
        If Not IsNothing(dtCategoryLevels) Then
            With radTree
                .DataTextField = "Name"
                .DataValueField = "FriendlyURL"
                .DataFieldID = "id"
                .DataFieldParentID = "ParentId"
                .DataSource = dtCategoryLevels
                .DataBind()
            End With
        End If

venm
Top achievements
Rank 1
 answered on 13 Aug 2009
6 answers
295 views
Hi,

I want to disable the rcbReadOnly css class so that all combo boxes look the same - what's the best way of approaching that?

I'm finding the problem on a combo box with a tree shown inside it - theme I'm using is Web20.

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 13 Aug 2009
4 answers
143 views
Hi,

I am using RadGrid with Checkbox that i use to allow the user to select multi rows by checking the check box.

What i am facing is when i check the checkbox in the grid from top of the grid going down it works fine with me, i can later read all the selected rows nicely. But if i check the checkbox randomly top then button and then to, the reading will be incorrect. that means i can not get the selected rows correctly. So if i select 3 rows from button to up direction and try to read the selected rows, it return the
button row 3 times instead the value of the 3 row.

I hope i am making sense ....

I am using the following code.

Note Multi selection Server Side.

To Read the selected rows:

 

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click

 

 

        For Each dataItem As GridDataItem In RadGrid1.MasterTableView.Items

 

 

 

 

            If CType(dataItem.FindControl("CheckBox1"), CheckBox).Checked = True Then

 

     

 

              ListBox1.Items.Add(CType(RadGrid1.SelectedItems(0), GridDataItem)("ID").Text)

 

 

                  dataItem.Selected =

 

False

 

 

 

 

            End If

 

 

 

 

        Next

 

 

 

 

        For Each dataItem As GridDataItem In RadGrid1.MasterTableView.Items

 

 

 

 

            CType(dataItem.FindControl("CheckBox1"), CheckBox).Checked = False

 

 

 

 

        Next

 

 

 

 

End Sub

 

 

 

 

 




Protected

 

Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender

 

 

 

 

        For Each dataItem As GridDataItem In RadGrid1.MasterTableView.Items

 

 

 

 

           If CType(dataItem.FindControl("CheckBox1"), CheckBox).Checked = True Then

 

     

 

               dataItem.Selected = True

 

 

 

 

            End If    

 

 

 

 

       Next

 

 

 

 

End Sub

 

 

 

 

 

Hope some one will direct me to the right way of doing it.

Many Thanks
Omar
o
Top achievements
Rank 2
 answered on 13 Aug 2009
12 answers
861 views
Is there any way to display the date picker without the associated text box, and have it update another element on the page? I'm having some troubles with the styles on the generated text box and would rather just have the date picker update another element on the page.

Thanks.
Dimo
Telerik team
 answered on 13 Aug 2009
3 answers
102 views
Hi,

I'm using in my page with two RadListBox, that one can transfer items to the other.
All works fine, but I have a problem with the transfer images appearance. When I change my page to be dir="rtl" the images doesn't show correctly.
Can U tell me how to fix the CSS that I can work with the list box on right to left mode?

Thanks in advance,
Nir
Kamen Bundev
Telerik team
 answered on 13 Aug 2009
2 answers
93 views
Hi,

I am testing out your treeview component, using loading on demand from a webservice (as in your example) It works but the nodes created by the webservice had have no text or value when they are created, any ideas why this is happening?

This is the webservice method, I have debugged it and node.Text and node.Value both have values when this method is processing.

        [WebMethod] 
        public RadTreeNodeData[] GetNodes(RadTreeNodeData node, object context) 
        { 
            List<RadTreeNodeData> result = new List<RadTreeNodeData>(); 
            MasterSystem aSystem = (MasterSystem)Application["MasterSystem"]; 
 
            ExtensionHierarchyObject aGroup = aSystem.ExtensionsSystem.ExtensionHierarchy._GroupFlatList.Find(delegate(ExtensionHierarchyObject g) { return g.GroupId == Convert.ToInt16(node.Value); }); 
 
            foreach (ExtensionHierarchyObject aObj in aGroup.ChildGroups) 
            { 
                RadTreeNodeData newNode = new RadTreeNodeData();                 
                node.Text = aObj.GroupName; 
                node.Value = aObj.GroupId.ToString(); 
                newNode.ExpandMode = TreeNodeExpandMode.WebService; 
                result.Add(newNode); 
            } 
             
            return result.ToArray();                 
        } 



        [WebMethod]
        public RadTreeNodeData[] GetNodes(RadTreeNodeData node, object context)
        {
            List<RadTreeNodeData> result = new List<RadTreeNodeData>();
            MasterSystem aSystem = (MasterSystem)Application["MasterSystem"];

            ExtensionHierarchyObject aGroup = aSystem.ExtensionsSystem.ExtensionHierarchy._GroupFlatList.Find(delegate(ExtensionHierarchyObject g) { return g.GroupId == Convert.ToInt16(node.Value); });

            foreach (ExtensionHierarchyObject aObj in aGroup.ChildGroups)
            {
                RadTreeNodeData newNode = new RadTreeNodeData();                
                node.Text = aObj.GroupName;
                node.Value = aObj.GroupId.ToString();
                newNode.ExpandMode = TreeNodeExpandMode.WebService;
                result.Add(newNode);
            }
            
            return result.ToArray();                
        }
Toby
Top achievements
Rank 1
 answered on 13 Aug 2009
3 answers
193 views
Hello,

I want to know how to change the font-size of the Office2007 Skin.  The current font-size is a little to large and would like to change the size.

How is this done?

Thanks,
Joe
Dimo
Telerik team
 answered on 13 Aug 2009
0 answers
99 views
I am using 2008.3.1314.20 Version on our live server. On one of the developement machine, I created a report with autogenerated radgrid. Filter for datetime and integer fields were not working on that. After going through some of the Forum posts, I found that if I do enablelinqexpressions false, then those filters work. For the grid, the default setting for Enablelingexpressions was true, then after the databind, by making enablelinqexpressions false programatically, grid was binding properly and the filters were also working. At the time of deployment on test machine, we realized that on the development machine, the version of telerik is 2008.3.1314.35. I tried to download various versions from the telerik site and the program does not compile with any version higher than 2008.3.1314.20 also.
I have checked the grid demo for filtering and that also uses enablelinqexpressios false. Our page works only with 2008.3.1314.35, can we get dev version of that release, so that we can deploy without telerik version message.
We do not want to upgrade to higher version as look of grid has changed.

Thanks

Update: Found the solution. The 2 dlls .20 and .35 are for .net versions 2.0 and 3.5 respectively. so got it from the original install itself.
Thanks
kachy
Top achievements
Rank 1
 asked on 13 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?