Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Through very much trial and error I have discovered a repeatable issue/bug with the RadTreeView inside of a RadWindow.  This issue occurs in IE9 and the latest Chrome, I have not tried FireFox yet.

Version of Telerik.Web.UI is 2012.2.607.35

When placing a RadTreeView inside of a RadWindow's ContentTemplate, if any of the RadTreeNodes text property contains the character sequence "trial" the contents of the RadWindow are displayed at the bottom of the page.  After clicking the RadWindow's OpenerElement, the contents disappear from the bottom of the page and appear correctly inside the RadWindow.

Simply change any of the nodes text property to something that does not contain the word "trial" everything works properly.  I am including simple code blocks below that should reproduce the problem.  Note that there is a PopulateNodes() subroutine in the code-behind page; this issue occurs when adding nodes to the RadTreeView programmatically as well.

Please help with this very bizarre bug.  I am happy to provide any additional information you need to reproduce this problem.

aspx page:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IndustrialBug.aspx.vb" Inherits="IndustrialBug" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rsManager" runat="server"></telerik:RadScriptManager>
    <asp:LinkButton ID="cmdOpen" runat="server">Open Radwin</asp:LinkButton>
    <telerik:RadWindow ID="rwinSelectStores" runat="server" >
        <ContentTemplate>
            <telerik:RadTreeView ID="rtvStores" runat="server">
                <Nodes>
                    <telerik:RadTreeNode Text="Top node" Expanded="true">
                        <Nodes>
                            <telerik:RadTreeNode Text="Under the top node" Expanded="true">
                                <Nodes>
                                    <telerik:RadTreeNode Text="Node contains trial" Expanded="true"></telerik:RadTreeNode>
                                </Nodes>
                            </telerik:RadTreeNode>
                        </Nodes>
                    </telerik:RadTreeNode>
                </Nodes>
            </telerik:RadTreeView>
        </ContentTemplate>
    </telerik:RadWindow>
    </form>
</body>
</html>

code-behind:
Imports Telerik.Web.UI
 
Partial Class IndustrialBug
    Inherits System.Web.UI.Page
 
 
    Private Sub PopulateNodes()
        rtvStores.Nodes.Clear()
        Dim nTop As New RadTreeNode()
        Dim nSub1 As New RadTreeNode()
        Dim nBottom As New RadTreeNode()
 
 
        nTop.Text = "Top node here"
        nTop.Expanded = True
        nTop.Checked = False
        rtvStores.Nodes.Add(nTop)
 
        nSub1.Text = "Trial"
        nSub1.Expanded = True
        nSub1.Checked = False
        nTop.Nodes.Add(nSub1)
 
        nBottom.Text = "Bottom node"
        nBottom.Expanded = True
        nBottom.Checked = False
        nSub1.Nodes.Add(nBottom)
    End Sub
 
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        rwinSelectStores.OpenerElementID = cmdOpen.ClientID
        'PopulateNodes()
    End Sub
End Class

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2013
2 answers
89 views
Hi

when i add row to grid view added row will go to last row.i wanted to show newly added row always top. 
How can i achieve this.. Please help me out.


Regards,
Sanjay
sanjay
Top achievements
Rank 1
 answered on 03 Jan 2013
2 answers
75 views

I want to do something like
"Fill Textbox of bound column in Add new Iten Mode on Dropdown selectIndexChanged in RadGrid.

e.g.  When I Click ADD NEW ITEM then Row with input controls will displayed. when I change DDL's value then according it all other textbox (whatever) will filled.

My Que. is How to get that Controls in DDL's SelectIndexChanged Event ??

Ajay
Top achievements
Rank 1
 answered on 03 Jan 2013
1 answer
111 views

I'm trying to databind a combobox for a filter on a radgrid. I can't seem to be able to find the filter control when i try the following, nothing happens.

foreach (GridFilteringItem filterItem in InitAlerts.MasterTableView.GetItems(GridItemType.FilteringItem))
{
    RadComboBox initLoans = (RadComboBox)filterItem.FindControl("InitLoan");

    var loannumber = (from DataRow dRow in initTable.Rows
                        select new { loan_number = dRow["loan_loan_number"] }).Distinct().ToList(); 

    initLoans.DataSource = loannumber;
    initLoans.DataBind();
    Label1.Text = initLoans.ID.ToString();
}

Also, this is just running in Page_Load, if that makes a difference...

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2013
2 answers
27 views
I'd like to direct your attention to this sample page: http://msdn.microsoft.com/en-us/library/w0x726c2%28v=vs.100%29.aspx

I have to build a Help section for a website app.  It will have about 20 - 30 pages in it.  I rather like the simplistic design that Microsoft has used for their aforementioned MSDN help.

If I were building those MSDN pages, here's what I'm thinking I would do:
  1. Have a main master page for the header & footer.
  2. Have a secondary master page for the content on the left.  It would consist of a RadSplitter containing a RadSlidingPane, which itself contained a RadTreeView.
  3. Then the bulk of the space in the middle would contain a Web Content Form which referenced the secondary master page.

Does this approach sound reasonable & logical to you or would you build it differently?

Robert

Robert
Top achievements
Rank 1
 answered on 02 Jan 2013
6 answers
140 views
I am using RadControls for ASP.NET AJAX Q3 2012.

I am using CheckBox, Which I want to set RightToLeft.
No problem exist until I use Form Decorator

After that, it does not show properly on Firefox, but still works well on chrome.

It Should be http://titrgah.com/correct.jpg
But it changed to http://titrgah.com/incorrect.jpg

Thanks for your help
farzad
Top achievements
Rank 1
 answered on 02 Jan 2013
3 answers
370 views
Hello,

I am working with a c#.Net application locally on my machine.  The application resides in the directory C:\inetpub\wwwroot\appname.

I have set up a virtual directory in IIS 7 under the application folder with a physical path which is on the SAME machine (my local machine) as the application itself.  The physical path is C:\Data\Test\scans, and the alias I gave the virtual dir is 'scans'.

I want the files in C:\Data\Test\scans to be shown in the RadFileExplorer I have set up on a page in my application.  This is how I have the RadFileExplorer set up in the codebehind:

string[] paths = new string[] { "~/scans"  };
FileExplorer1.Configuration.ViewPaths = paths;

My issue is that no files show up in the RadFileExplorer!  If I change the above code to this:

string[] paths = new string[] { "~/"  };
FileExplorer1.Configuration.ViewPaths = paths;

Then all of the folders and files in my root (application) directory are shown in the RadFileExplorer, however, the virtual directory is not being shown!

The RadFileExplorer seems to not be recognizing my virtual directory.  I am using a pass-through authentication in IIS for the virtual directory.  

Any ideas or thoughts are greatly appreciated!



Bob
Top achievements
Rank 1
 answered on 02 Jan 2013
0 answers
55 views
Hi team

is it possible to have the advanced form always opened not as modal window but as a simple form next to scheduler? (attachment). Think that the modal form is a simple form with some fields and is always open.
 
So, When you click on an appointment the behavior the advanced form will not pop up or not hide scheduler to show only the advanced form. will show both in the same page advanced form + scheduler)

thanks
mirroras
Top achievements
Rank 1
 asked on 02 Jan 2013
3 answers
153 views
Hi there

I have a server-side button handler to make changes to the database from which the RadTreeView is populated. However, after calling Databind on the tree object to reflect the changes, the node objects for the tree all lose their Value property, which is a bit of a difficulty as I need to make use of that Value in the client-side processing immediately after the postback. Is this behaviour by design, and if so, how can I refresh the property in question, to populate the Values for each node after the databind?

Thanks if you can help.

Regards

Paul Robertson
Top achievements
Rank 1
 answered on 02 Jan 2013
17 answers
199 views
Hi.

I'm integrating RadScheduler in an ASP.NET MVC 2 application and therefore have to use WebService binding (this is still true, right?)

My Problem now is that I want to cancel the insertion of an appointment if some conditions are fulfilled (e.g. the user did not specify the subject or did not specify a resource). Since I am using WebService binding I have to use the OnClientAppointmentWebServiceInserting method because server-side events are not called (correct me if I'm wrong).

My function looks like this:
OnClientAppointmentWebServiceInserting="inserting"  
function inserting(sender, eventArgs) { 
    var app = eventArgs.get_appointment(); 
    var error = false
 
    // set error = true if appointment is not valid... 
 
    if (error) { 
        alert("error"); 
        eventArgs.set_cancel(true); 
    } 

The behaviour I would expect is that the insertion of the appointment is cancelled and the inserting form does not hide. Unfortunately after the alert the form hides and - even worse - the appointment is shown in the Scheduler until I rebind.

By writing
if (error) { 
       alert("error"); 
       eventArgs.set_cancel(true); 
       sender.rebind(); 
 } 
I can achieve that the appointment is not shown, but still I want the form to remain visible so that the user can correct the errors without losing the data he already entered.

How can I achieve this behaviour? Or is it just not possible?

Any Feedback would be appreciated.

Thanks,
Fabian

PS: The demo at http://demos.telerik.com/aspnet-ajax/scheduler/examples/webservice/defaultcs.aspx allows appointments without a subject to be inserted whereas this demo at http://demos.telerik.com/aspnet-ajax/scheduler/examples/clientsideevents/defaultcs.aspx (which does not use WebService binding) does not, at least in the advanced form.
Boyan Dimitrov
Telerik team
 answered on 02 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?