This is a migrated thread and some comments may be shown as answers.

two-way databind updates of objects inside formview wiith splitter

4 Answers 111 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Cres
Top achievements
Rank 1
Cres asked on 27 Mar 2008, 06:43 PM
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> 

4 Answers, 1 is accepted

Sort by
0
Cres
Top achievements
Rank 1
answered on 28 Mar 2008, 06:14 AM
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
0
Tsvetie
Telerik team
answered on 02 Apr 2008, 07:04 PM
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
0
Cres
Top achievements
Rank 1
answered on 03 Apr 2008, 10:14 AM
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
0
Accepted
Tsvetie
Telerik team
answered on 07 Apr 2008, 06:28 PM
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
Tags
Splitter
Asked by
Cres
Top achievements
Rank 1
Answers by
Cres
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or