Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
185 views
I have a TreeView that has ExpandMode set to WebService and I would like to expand a node programmatically. I have even tried to emulate this is some client side code and I can see the web service call being made and returning data. However, the node does not expand as desired.

            String.prototype.endsWith = function(str){return (this.match(str+"$")==str)} 
 
            function nodeChecked(sender, eventArgs) { 
                var node = eventArgs.get_node(); 
                var parent = node.get_parent(); 
                var grand_parent = parent.get_parent();    
 
 
                var parent_value = parent.get_value(); 
                var parent_value_other = ""; 
                 
                if (parent_value.endsWith("cc")) { 
                    parent_value_other = parent_value.substring(0, parent_value.length - 2) 
 
                    var tree = $find("<%= RadTreeView1.ClientID %>"); 
                    var other_node = tree.findNodeByValue(parent_value_other); 
 
                    if (other_node.get_expanded() == false) { 
                        other_node.expand(); 
                    } 
                     
                     
                    var other_node_array = other_node.get_nodes(); 
                    for (var i = 0; i < other_node_array.get_count(); i++) { 
                        var _node = other_node_array.getNode(i); 
                        if (_node.get_text() == node.get_text()) { 
                            _node.check(); 
                            break; 
                        } 
                    } 
                } 
            } 


No matter what happens, the following line always shows the number of items in the list as 0.

var other_node_array = other_node.get_nodes();  

What am I doing wrong?

Thanks.

Is there something I can try to make this work client side?
Veselin Vasilev
Telerik team
 answered on 05 Jan 2010
3 answers
293 views
Hi, i am trying to use the RadGrid to display som data that I retrieve from the database. I want to use the same RadGrid to display the results to multiple database-querys to which I dont know how the result looks.

So I need to autogenerate the columns, I cant do it server side since I get the data from a web-service. Can I create columns from javascript or use the autogenerate feature in some way?

If I remove the <MasterTableView> tags, or the GridBoundColumns in the MasterTableView I end up with the same error every time. The "Cannot find any bindable properties in an item in the datasource", however if I have the GridBoundColumns there and bind to the same data the same way the grid works.

Anyone got some tips?

Best regards
Richard
Tsvetoslav
Telerik team
 answered on 05 Jan 2010
2 answers
166 views
Hi there,

My menu does not seem to want to work on our production server.  It works fine on my laptop, but as soon as I upload it to production (2008 server, IIS7), the menu just shows up in bullet form.  You can view this on www.halcyonetic.com

If someone can please help it would be greatly appreciated.
Craig
Top achievements
Rank 1
 answered on 05 Jan 2010
1 answer
130 views
I know this has been address as far as a css override inside the splitter pane, but the problem I am having is inside a pageview inside a tab, it is the same old senerio where the zones don't scroll with the pageview overflow etc. almost like they are in fixed positions, I am building the dockzones/docks via code behind and pretty simple.

iZone = New RadDockZone  
iZone.Controls.Add(CreateRadDock(tmpZoneID))  
pageViewObject.Controls.Add(iZone) 

CreateRadDock for testing is straight out of the example, so new RadDock etc. returns raddock...

I have tried everything I can think of regarding css...

 

position:static;, position:relative; etc. all do the samething, this "only" happens in IE7 and that happens to be one requirement that I can't shake just yet so I have to make it work, it works fine in every other browser in the world grrrrr.... would everyone just get on the same engine already this browser jeez.

Any thoughts?

If need be I can roll back to jQueryUI and do it that way but would prefer just to handle it with raddock.

 

Pero
Telerik team
 answered on 05 Jan 2010
1 answer
112 views
Hello there,

I was wondering if there is any way to determine the rows of a data source that has been filtered out in RadGrid? I notice that when I type in a filter, the MasterTableView no longer has the "Item" in its Items array. Is there a way to identify what's filtered out in terms of an index into the original data source?

As a bit of background - I'm trying to export a table as a CSV file. But if I use ExportAsCsv() then the custom columns (that uses a function to render some HTML) doesn't show up in the output. So I'm trying to see if I can determine the filtered-in/out rows and build the CSV myself using the original data source.

If there is another way to achieve what I'm trying to do that would also be great. Your help is much appreciated.

Thanks,
Ray
Princy
Top achievements
Rank 2
 answered on 05 Jan 2010
3 answers
148 views
I have a RadTabStrip and RadMultipage inside a RadPane like this:

<telerik:RadTabStrip ID="RadTabStripSearchResults" runat="server"  
         SelectedIndex="0" MultiPageID="RadMultiPage1"> 
</telerik:RadTabStrip> 
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" Height="100%"> 
</telerik:RadMultiPage> 

In the code behind I have a search button that will search a database and return a DataTable that I am then passing to this function:

        private void AddSearchPageView(System.Data.DataTable dt) 
        { 
            RadTab resultTab = new RadTab("Search " + Session["searchCount"].ToString() + " (" + dt.Rows.Count.ToString() + ")"); 
             
            RadPageView pageSearch = new RadPageView(); 
            //resultTab.PageViewID = pageSearch.ID = "pageSearch" + Session["searchCount"].ToString(); 
             
            RadGrid gridResults = new RadGrid(); 
            System.Data.DataTable dtResults = new System.Data.DataTable(); 
            dtResults = dt; 
            gridResults.ID = "gridResults" + Session["searchCount"].ToString(); 
            gridResults.DataSource = dtResults; 
            gridResults.DataBind(); 
            pageSearch.Controls.Add(gridResults); 
             
            RadTabStripSearchResults.Tabs.Add(resultTab); 
             
            RadMultiPage1.PageViews.Add(pageSearch); 
            RadTabStripSearchResults.SelectedIndex = RadMultiPage1.SelectedIndex = RadMultiPage1.PageViews.Count - 1; 
        } 

The search is working fine, and the AddSearchPageView() seems to be adding one tab for each set of results, and the associated pageview. The problem I am having is that only the last tab is showing the RadGrid.

1. I would like to create a new tab for each search, and then the user can select the tab to view those search results. 
2. I would also like to know if there is a way to add a close 'x' to the tab that will remove the tab and associated RadPageView

Thank you
Yana
Telerik team
 answered on 05 Jan 2010
1 answer
72 views
Hello,

            I am new to the silverlight.
            I am using silverlight grid in my application, but i dont know how to apply paging & sorting in it.

           Please help me to sort out this query.



Thanks,
Kunal Patel


Vlad
Telerik team
 answered on 05 Jan 2010
2 answers
82 views
Hi telerik team,
I'm experiencing a problem upon drag & drop action of a rad tree view on rad grid. when i drag a node, the respective text is displayed at the right end of my browser screen. Any idea to resove this. I want it to be stick beneath mouse location as tree view demo depicts.
Munir Jawad
Top achievements
Rank 1
 answered on 05 Jan 2010
1 answer
56 views
I have a grouped grid that pops up a detail view in a RadWindow when a row is selected. I would also like to display something when the group footer is selected, but it doesn't appear that Group Footers can be selected. Is there a way to do this?

Thanks, Steve
Shinu
Top achievements
Rank 2
 answered on 05 Jan 2010
2 answers
78 views
<telerik:RadInputManager ID="RadInputManager1" runat="server"> 
    <telerik:TextBoxSetting Validation-IsRequired="true">
                        <TargetControls>
                            <telerik:TargetInput ControlID="tb_user_loginname" />
                            <telerik:TargetInput ControlID="tb_user_pass" />
                            <telerik:TargetInput ControlID="tb_user_name" />
                            <telerik:TargetInput ControlID="tb_group_name" />
                        </TargetControls>
     </telerik:TextBoxSetting>
</telerik:RadInputManager>

I used the upon code for checking the textbox input, but it have problem when entering a space to the textbox.
It will pass the checking. Can i checking with the space ?
silver chan
Top achievements
Rank 1
 answered on 05 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?