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

RadPanelBar within Formview EditItemTemplate

1 Answer 28 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kalpana
Top achievements
Rank 1
Kalpana asked on 09 Aug 2012, 07:00 AM
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

1 Answer, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 10 Aug 2012, 02:17 PM
How exactly do you try to get the values from the controls in the PanelBar item template, and at which event?
Tags
PanelBar
Asked by
Kalpana
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Share this question
or