Beta control?

37 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 21 May 2013 Link to this post

    Hello Peter Filipov,

    Any progress on the SelectedValue? I do not see it in any build. In my version 417 the SelectedValue is still ReadOnly and the only way to select an item on loading is to use the NodeDataBound event. Pretty ugly. My application is growing and I rather not have to replace 10ths of pieces of code later-on...

    Kind regards,

    Erik
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 21 May 2013 Link to this post

    Hi Erik,

    Till the end of the week we are going to release the Beta version of the Q2.2013. The desired functionality is already implemented and it will be included.

    Regards,
    Peter Filipov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 17 Jun 2013 Link to this post

    Hi Peter,

    The Q2 version does solve the SelectedValue problem. But a small issue has now arisen:

    When using the selectedValue property, the FullPathDelimiter property is ignored. 

    <telerik:RadDropDownTree ID="RadDropDownTree_Accounts" AutoPostBack="False" DataTextField="Name" DataFieldID="AccountId" DataFieldParentID="ParentAccountId" DataValueField="AccountId" Width="250px" DefaultMessage="(Please select...)" ExpandNodeOnSingleClick="true" TextMode="FullPath" FullPathDelimiter=" » " runat="server">
        <DropDownSettings Width="250px" Height="200px" />
    </telerik:RadDropDownTree>

    OLD code (working fine, but somewhat complex):

    Private Sub SetAccountsDataSource(Optional ByVal abln_RefreshStoredData As Boolean = False)
        If HttpContext.Current.User.Identity.IsAuthenticated Then ' when logged in
            Dim mlst_Accounts As List(Of Data.Entities.App.Std.Account) = GetAccountsDataSource()
     
            With CType(HeaderPane.FindControl("RadDropDownTree_Accounts"), RadDropDownTree)
                .DataSource = mlst_Accounts
                .DataBind()
                .ExpandAllDropDownNodes()
            End With
        End If
    End Sub
    Private Sub RadDropDownTree_Accounts_NodeDataBound(sender As Object, e As Telerik.Web.UI.DropDownTreeNodeDataBoundEventArguments) Handles RadDropDownTree_Accounts.NodeDataBound
        Try
            If e.DropDownTreeNode.Value = Core.Session.AccountId Then e.DropDownTreeNode.CreateEntry()
        Catch ex As Exception
            If Diagnostics.Debugger.IsAttached Then Diagnostics.Debugger.Break()
        End Try
    End Sub

    New Code (showing / in stead of " » "
    Private Sub SetAccountsDataSource(Optional ByVal abln_RefreshStoredData As Boolean = False)
        If HttpContext.Current.User.Identity.IsAuthenticated Then ' when logged in
            Dim mlst_Accounts As List(Of Data.Entities.App.Std.Account) = GetAccountsDataSource()
            With CType(HeaderPane.FindControl("RadDropDownTree_Accounts"), RadDropDownTree)
                .DataSource = mlst_Accounts
                .DataBind()
                .ExpandAllDropDownNodes()
                .SelectedValue = Core.Session.AccountId.ToString
            End With
        End If
    End Sub

    Erik
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 19 Jun 2013 Link to this post

    Hi Erik,

    I am writing you to confirm that I replicated the issue at my side. The problem is logged in our tracking system and it is going to be fixed. In a way of gratitude I updated your telerik points.

    Regards,
    Peter Filipov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 21 Aug 2013 Link to this post

    --------------------------------------
    Issue's resolved on my side.
    --------------------------------------
  7. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 21 Aug 2013 Link to this post

    But... (there always is... :-) )

    Now, I have the tree, the selectedValue is working, but how can I make it so, that the selected sub item is visible? If it's parent is collapsed, you cannot see it is selected, except for the dropdownbox when you use full path. I tried to use the NodeDataBound event, you can use e.DropDownTreeNode.Expanded = True, but it does not do anything. Any parent objects are not in scope to expand them.

    So, any ideas about this? (expect ExpandAllNodes...)

    Erik
  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 26 Aug 2013 Link to this post

    Hi Erik,

    I have tested the described issue with the latest version of our controls and everything is working fine. Could check for a condition in your code in the NodeDataBound handler? You could access the embedded tree and manipulate the nodes directly.


    Regards,
    Peter Filipov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017