RadPanelBar within Formview EditItemTemplate

2 posts, 0 answers
  1. Kalpana
    Kalpana avatar
    2 posts
    Member since:
    Aug 2012

    Posted 09 Aug 2012 Link to this post

    I managed to databind using below technique.And using the objectDataSource updateMethod for updating these values.
    But when updating the new values showing null. what should I do?

     

     

    <asp:FormView ID="SingleUser" runat="server" DataKeyNames="UserId"

     DataSourceID="ObjectDataSource1" Width="750px">

     <EditItemTemplate>

     <telerik:RadPanelBar runat="server" ID="RulePanelBar" ExpandMode="MultipleExpandedItems"

     Width="740px" Skin="Metro">

     <Items>

     <telerik:RadPanelItem Expanded="True" Text="Step 1: Basic Information" runat="server"

     Selected="true">

     <ItemTemplate>

     <table cellpadding="0" cellspacing="0" border="0" width="100%">

     <tr>

     <td>

     <asp:Label ID="FirstNameLabel" runat="server" AssociatedControlID="txtFirstName" >First Name:</asp:Label>

     <asp:TextBox ID="txtUserID" runat="server" Text='<%#DataBinder.Eval(SingleUser.DataItem,"UserId")%>'

     Width="2px" Visible="False"></asp:TextBox>

     <asp:TextBox CssClass="textEntry" ID="txtFirstName" title="Enter First Name Here"

     runat="server" Text='<%#DataBinder.Eval(SingleUser.DataItem,"FirstName")%>'></asp:TextBox>

      </td>

     <td>

     <asp:Label ID="MiddleNameLabel" runat="server" AssociatedControlID="txtMiddleName" >Middle Name:</asp:Label><br />

     <asp:TextBox CssClass="textEntry" ID="txtMiddleName" title="Enter Middle Name Here"

     runat="server" Text='<%# DataBinder.Eval(SingleUser.DataItem,"MiddleName") %>'></asp:TextBox>

     </td>

     <td>

     <asp:Label ID="LastNameLabel" runat="server" AssociatedControlID="txtLastName" >Last Name:</asp:Label>

     <asp:TextBox CssClass="textEntry" ID="txtLastName" title="Enter Last Name Here" runat="server"

     Text='<%# DataBinder.Eval(SingleUser.DataItem,"LastName") %>'></asp:TextBox>

      </td>

     <td>

     </td>

     </tr>

     </table>
    </ItemTemplate>

     </telerik:RadPanelItem>

     </Items>

     <CollapseAnimation Duration="100" Type="None" />

     <ExpandAnimation Duration="100" Type="None" />

     <ExpandAnimation Duration="100" Type="None" />

     <CollapseAnimation Duration="100" Type="None" />

     </telerik:RadPanelBar>

     


    -kalpana

  2. Cat Cheshire
    Cat Cheshire avatar
    128 posts
    Member since:
    Jun 2010

    Posted 10 Aug 2012 Link to this post

    How exactly do you try to get the values from the controls in the PanelBar item template, and at which event?
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top