Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
354 views
Hi,

I have a RadTreeView inside a RadPane, I am setting the radtreeview height and width to that of radpane on radsplitters OnClientLoad and OnClientResized events (see code below). I have a search functionality to search a root node on the page and want to use the ScrollIntoView method of Radtreeview to scroll to the searched node but I am unable to see the scrollbar when I set the radtreeview height this way, Please let me know how can i use ScrollIntoView in this scenario.

<telerik:RadPane ID="LeftTreePane" runat="server" Width="300" Scrolling="Y" CssClass="treePaneStyle" BackColor="#93C9C3">
 <telerik:RadSplitter ID="LeftSplitter" runat="server" Orientation="Horizontal" OnClientLoad="ResizeTreeView" OnClientResized="ResizeTreeView">
    <telerik:RadPane ID="SearchPane" runat="server" Scrolling="Y" Height="70">
    <asp:Panel ID="EleSearchPanel" runat="server" CssClass="searchPanelStyle">
    <asp:Label ID="searchLabel" runat="server" Text="Search:" Width="40px"></asp:Label>
    <telerik:RadTextBox ID="SearchText" runat="server"></telerik:RadTextBox>
      
    <telerik:RadButton ID="SearchBtn" runat="server" AutoPostBack="true" Text="Search" Width="40px" OnClientClicking="selectNode"></telerik:RadButton>
      
    </asp:Panel>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="leftSplitBar" runat="server" CollapseMode="None">
    </telerik:RadSplitBar>
    <telerik:RadPane ID="TreePane" runat="server" Scrolling="None">
     
    <telerik:RadTreeView runat="server" ID="ElementTreeView" OnNodeExpand="ElementTreeView_NodeExpand" OnNodeClick="ElementTreeView_NodeClick" OnContextMenuItemClick="ElementTreeView_ContextMenuItemClick" CssClass="radtreeStyle">
     
                 <ContextMenus>
                <telerik:RadTreeViewContextMenu ID="ElementCM" runat="server" >
                <Items>
                  
                </Items>
                </telerik:RadTreeViewContextMenu>
                 <telerik:RadTreeViewContextMenu ID="COCM" runat="server">
                <Items>
</Items>
                </telerik:RadTreeViewContextMenu>
 
                </ContextMenus>
    </telerik:RadTreeView>
     
    </telerik:RadPane>
    </telerik:RadSplitter>
</telerik:RadPane>
  
function ResizeTreeView(splitter, args) {
            var pane = $find("<%= LeftTreePane.ClientID %>");
            var width = pane.get_width();
            var treepane = $find("<%= TreePane.ClientID %>");
            var height = treepane.get_height();
            var treeview = $find("<%= ElementTreeView.ClientID %>");
            treeview.width = width + "px";
            treeview.height = height + "px";
        }
  
 function selectNode(sender, args) {
            var treeView = $find("<%= ElementTreeView.ClientID %>");
            var searchTBox = $find("<%= SearchText.ClientID %>");
 
            var searchtext = searchTBox._text;
            var node = treeView.findNodeByText(searchtext);
            if (node) {
                var menu = node.get_contextMenuID();
                if (menu == 'COCM') {
                    node.set_selected(true);
                    //node.expand();
                    scrollToNode(treeView, node);
                    args.set_cancel(true);
                }
                else {
                    alert(searchtext + "' could not be found.");
                }
            }
            else {
                alert(searchtext + "' could not be found.");
            }
        }



Not sure if it matters but I am using load on demand to load the nodes.

Thanks,
Arati
AratiS
Top achievements
Rank 1
 answered on 26 Apr 2013
3 answers
455 views
Hi,
We have a RadButton with Target property set to "_blank".  In the OnClick method we have Response.Redirect("www.google.com").

But the requested url is not opening in new window. Any suggestion is appreciated. Thanks in advance.
Danail Vasilev
Telerik team
 answered on 26 Apr 2013
1 answer
98 views
Hi,
I am having issues with the PDF export function when attempting to export a schedule that goes over more than one page.
As I have resource grouping enabled my schedule easily goes over multiple pages. I have tried your demo site and it appears to export okay, however the PDF demo is relatively straight forward without grouping and hence fits on one page.

I have attached an example of my PDF. You will see that I have tried to work around the paging issue by increasing the page site but the scheduler is still cut off (both across and down the page). Note you can see the top of the second resource at the bottom of the page. When I use a regular A4 page I get the same minus all of the white space.

Below is the code I have been using, note by default the width of the schedule is not set, ie 100%. I have tried setting a fixed width to no avail.

Is this particular scenario supported or am I doing something wrong?
PS As I am unable to attach a PDF, I have attached a screenshot of the PDF instead
Thanks,
Matt

If Request.Form("__EVENTARGUMENT") = "PDFExport" Then

     radSch.Width = New Unit(900, UnitType.Pixel)

     radSch.ExportToPdf()

End If

 

<ExportSettings OpenInNewWindow="true" Pdf-PageTopMargin="0" Pdf-PageLeftMargin="0" Pdf-PageWidth="2000" Pdf-PageHeight="2000"></ExportSettings>

Boyan Dimitrov
Telerik team
 answered on 26 Apr 2013
1 answer
100 views
I have a custom handler that I am using to encrypt and store  uploaded tiff files to a database.  I want to add validation that would check the file to see if it is corrupt before saving. How do I send an error message back to the client?
Hristo Valyavicharski
Telerik team
 answered on 26 Apr 2013
0 answers
58 views
When I go to build a report with Report Service with my Visual Studio 2010, raise a exception below:

Could not load file or assembly 'Telerik.WinControls.GridView,Version=2010.1.10.308,
Culture=neutral,PublicToken=5bb2a467cbec794e' or one of its dependencies. 
O sistema não pode encontrar o arquivo especificado

How do I resolve it?
Paulo
Top achievements
Rank 1
 asked on 26 Apr 2013
3 answers
85 views
Hi,

Thanks so much for providing the S3 FileBrowserContentProvider, it made my recent switch to S3 pretty painless.  I do have one question though...Is there anyway to use the FileBrowserContentProvider to do a search or "file list" on S3?  I have been playing with the S3 API and noticed that they do not have a search method per se, but I wonder if there is anyway I could leverage your ListBucket or some other existing method to fake a search?

In the meantime I have created a search using the AWS API for .NET but I am having trouble rebinding the results (a list of S3Objects) back to the grid.

Any help you can provide would be appreciated.

Thanks!
Vessy
Telerik team
 answered on 26 Apr 2013
2 answers
199 views
Hi,

I am using RadGrid, i want to place a column in between two column, i don't want to SWAP the column.
For example: If i moved 2nd column and place it on 5th column, the 2nd column should now in between 4th and 6th column, old 5th column just shift to the left.

See attached snapshots.

Thanks
ahsan jawaid
Top achievements
Rank 1
 answered on 26 Apr 2013
9 answers
249 views
Will you be adding a click event like the RadCharts have in the near future?
Marin Bratanov
Telerik team
 answered on 26 Apr 2013
1 answer
110 views
How can I do to upload a image to this forum? I have some doubts and to show my doubts with a image.
Paulo
Top achievements
Rank 1
 answered on 26 Apr 2013
0 answers
42 views
How can I do a chart with on xaxis Name and Date, with four series with StackedBar? 

Attached a example.
Paulo
Top achievements
Rank 1
 asked on 26 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?