two-way databind updates of objects inside formview wiith splitter

5 posts, 1 answers
  1. Cres
    Cres avatar
    13 posts
    Member since:
    Feb 2008

    Posted 27 Mar 2008 Link to this post

    hi,

    i am test-migrating our application to your controls when i noticed that all objects's value in the splitter-radpane are not passed on update command inside a formview. when i place all of those objects outside the splitter, everything works ok.  please help.

     
     <EditItemTemplate> 
            <div class="css_pager">  
                <div style="float: left; margin-left: 5px">  
                    <asp:DropDownList ID="NOTEMODE_dd" runat="server" AutoPostBack="true" Font-Size="x-Small" 
                        OnSelectedIndexChanged="EDITVIEW_OnChanged" SelectedValue='<%# Bind("SRESPFLG")%>'>  
                        <asp:ListItem Value="" Text="View as HTML" /> 
                        <asp:ListItem Value="E" Text="Edit as HTML" /> 
                        <asp:ListItem Value="V" Text="View as Text" /> 
                        <asp:ListItem Value="T" Text="Edit as Text" /> 
                        <asp:ListItem Value="H" Text="Hide" /> 
                    </asp:DropDownList> 
                </div> 
                <div style="float: right; margin-right: 10px">  
                    <asp:Label ID="TOPMSG_lbl" runat="server" Font-Size="x-Small" Text="<%# GetDateInfo() %>"></asp:Label> 
                </div> 
            </div> 
            <telerik:RadComboBox ID="COMPANY_cmb" runat="server" SelectedValue='<%# Bind("CO_ID") >' Height="180px" 
                ShowDropDownOnTextboxClick="false" DataTextField="NAME" DataValueField="ID" AllowCustomText="True" 
                HighlightTemplatedItems="true" MarkFirstMatch="true" EnableLoadOnDemand="True" 
                EnableVirtualScrolling="true" OnSelectedIndexChanged="COMPANY_IndexChanged" OnItemsRequested="COMPANY_ItemsRequested" 
                AutoPostBack="true">  
            </telerik:RadComboBox> 
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="330" Width="100%">  
                <telerik:RadPane ID="MiddlePane" runat="server">  
                    middle pane  
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar2" runat="server"></telerik:RadSplitBar> 
                <telerik:RadPane ID="EndPane" runat="server" Width="22" Scrolling="None">  
                <!-- selection will fetch the right values of binded objects --> 
                <!-- updates fail when combobox COMPANY_cmb is here or any binded objects --> 
                <!-- will return null as the value of the binded fields -->   
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </EditItemTemplate> 
  2. Cres
    Cres avatar
    13 posts
    Member since:
    Feb 2008

    Posted 28 Mar 2008 Link to this post

    hi again,

    i downloaded and tried Q1 2008 futures and tested on other panel-type containers (e.g., radpanelbar, and have the same bug.  binded objects value are not returned.) when updates are called inside formview's edititemtemplate.  any workarounds or even confirmation?

    -cris
  3. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 02 Apr 2008 Link to this post

    Hello Cris,
    I was able to reproduce the problem you describe. However, the problem is not connected to our controls - please check the following topics that are about the AjaxToolkit TabContainer control, which when placed inside the EditItemTemplate of a FormView leads to the same result:

    1. http://forums.asp.net/p/1073244/1580131.aspx 
    2. http://www.codeplex.com/WorkItem/View.aspx?ProjectName=AtlasControlToolkit&WorkItemId=8049 

    You can find information on similar topics, not only about the AjaxToolkit TabContainer control, but about the UpdatePanel control as well.

    Regards,

    Tsvetie
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  4. Cres
    Cres avatar
    13 posts
    Member since:
    Feb 2008

    Posted 03 Apr 2008 Link to this post

    Hi Tsvetie,

    thank you for your reply.  i am not using any ajax control toolkit at all, just pure telerik components.  

    but reading through the threads you provided, should i assume that only telerik rendering objects can be placed inside edit templates and perform data-binding without workarounds, since somehow container components of telerik contains some sort of an updatepanel to house these?

    thanks and hoping for your immediate confirmation.

    -cris
  5. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 07 Apr 2008 Link to this post

    Hi Cris,
    What I meant to point out, providing these links, was that the problem is not in the code of our controls, but rather in the way "how ASP.NET does it's databinding". As you can see, the problem can be reproduced even without our controls. Unfortunately, as the problem is not in our code, there is not much that we can do about it.

    As the problem is only with container controls, you should not have problems using our controls in the EditTemplate, that are not container controls.

    Kind regards,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top