| <NestedViewTemplate> | |
| SessionID: <asp:Label ID="lblSessionID" runat="server" Text='<%# Eval("SessionID") %>' /><br /> | |
| Race Day ID:<asp:Label ID="lblRaceDayID" runat="server" Text='<%# Eval("RaceDayID") %>' /><br /> | |
| <telerik:RadGrid | |
| ID="rgLaps" | |
| runat="server" | |
| Skin="Default"> | |
| <MasterTableView | |
| DataKeyNames="SessionLapID" | |
| CommandItemDisplay="Top" | |
| EditMode="InPlace"> | |
| <CommandItemSettings AddNewRecordText="Add New Lap" RefreshText="Refresh" /> | |
| <Columns> | |
| <telerik:GridButtonColumn | |
| UniqueName="LapsDeleteColumn" | |
| Text="Delete" | |
| CommandName="Delete" /> | |
| <telerik:GridBoundColumn | |
| UniqueName="LapNumber" | |
| DataField="Number" | |
| HeaderText="Lap Number" /> | |
| <telerik:GridBoundColumn | |
| UniqueName="LapTime" | |
| DataField="Time" | |
| HeaderText="Lap Time" /> | |
| <telerik:GridBoundColumn | |
| UniqueName="LapIgnore" | |
| DataField="Ignore" | |
| HeaderText="Ignore Lap" /> | |
| <telerik:GridEditCommandColumn | |
| UniqueName="LapsEditCommandColumn" | |
| CancelText="Cancel" | |
| EditText="Edit" | |
| InsertText="Insert" | |
| UpdateText="Update" /> | |
| </Columns> | |
| <EditFormSettings | |
| CaptionFormatString="Edit details for lap with ID {0}" | |
| CaptionDataField="SessionLapID"> | |
| <FormTableItemStyle Width="100%" Height="29px" /> | |
| <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2" /> | |
| <FormStyle Width="100%" BackColor="#eef2ea" /> | |
| <EditColumn ButtonType="ImageButton" /> | |
| </EditFormSettings> | |
| </MasterTableView> | |
| </telerik:RadGrid> | |
| </NestedViewTemplate> |
| protected void rgRaceDaySessions_ItemCreated(object sender, GridItemEventArgs e) { | |
| if (e.Item.ItemType == GridItemType.NestedView) { | |
| // Bind grid that shows Laps. | |
| RadGrid gridLaps = (RadGrid)e.Item.FindControl("rgLaps"); | |
| Label lbl = (Label)e.Item.FindControl("lblSessionID"); | |
| Label lblRace = (Label)e.Item.FindControl("lblRaceDayID"); | |
| int sessionID = Utils.GetInteger(lbl.Text); | |
| int raceID = Utils.GetInteger(lblRace.Text); | |
| if (sessionID > 0) { | |
| // Bind grid in nested view to data for SessionID being bound in Main View. | |
| } | |
| } | |
| } |
Hi, I get the following errors when I attempt to do the following... (using hotfix build 2010.2.817.40)
1. Create a new RadControls Web Application (accepting all default values)
2. Add a Scheduler Senario using based on 'Custom Edit Templates' (accepting all default values)
3. some unhandled exception errors appear on the 'RadSchedulerWebForm' (for RadScriptManager1 & RadScheduler1)
4. build project build and close the form (this clears those messages)
4. opening the 'RadSchedulerWebForm' again shows the following error messages ...
Error Creating control - RadScriptManager1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.Error Creating Control -
RadAjaxManager1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.Error Creating Control -
RadScheduler1 - Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the application configuration.
<PagerStyle Mode="NextPrevNumericAndAdvanced" />