In a very basic sample I have a RadListView nested inside a FormView. Data binding occurs at the FormView level which the ListView picks up through the DataSource property. The problem I have is that a user needs to click twice on any of the command links twice to get them to work. Not sure what is happening, but I suspect it has to do with the data binding model. I am researching and thought I would post here in case someone is aware of something while I dig further into the issue:
| <telerik:RadScriptManager ID="ScriptManager" runat="server" /> |
| <telerik:RadAjaxManager ID="AjaxManager" runat="server" /> |
| <asp:FormView ID="Inspection" runat="server" DataSourceID="InspectionDataSource" |
| DefaultMode="Edit"> |
| <EditItemTemplate> |
| <%# Eval("Name") %> |
| <telerik:RadListView ID="Items" runat="server" DataSource='<%# Bind("Items") %>'> |
| <LayoutTemplate> |
| <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> |
| </LayoutTemplate> |
| <EditItemTemplate> |
| Edit mode |
| <asp:LinkButton ID="Update" runat="server" CommandName="Update" Text="Update" ValidationGroup="Item" /> |
| <asp:LinkButton ID="Cancel" runat="server" CausesValidation="false" CommandName="Cancel" |
| Text="Cancel" /> |
| </EditItemTemplate> |
| <ItemTemplate> |
| Read mode |
| <asp:LinkButton ID="Edit" runat="server" CausesValidation="false" CommandName="Edit" |
| Text="Edit" /> |
| </ItemTemplate> |
| </telerik:RadListView> |
| </EditItemTemplate> |
| </asp:FormView> |
| <asp:ObjectDataSource ID="InspectionDataSource" runat="server" DataObjectTypeName="Foo.Inspection" |
| TypeName="Foo.DataSource" SelectMethod="RetrieveInspection" /> |