I have a RadGrid using the standard command, "Add New Record". Clicking on this does post back (InitInsert) and places the first row (I'm using InPlace editing) into edit mode as well as performing the validations for fields in the row (using standrd Required Field Validators), but clicking on the Insert link does nothing, no postback at all!
The Edit/Update/Cancel (through an EditCommand column) works fine for all of these functions and I'm trying to capture the Insert (i.e. PerformInsert or InsertCommand) event as it bubbles to the InsertCommand event handler so I can pull values from the form and update the data repository.
Here's the grid definition (I've omitted the column definitions for brevity):
When I hover over the Insert link, the href for it is set to, "javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("StaffBreakout$RadGrid_StaffBreakout$ctl00$ctl02$ctl03$PerformInsertButton", "", true, "", "", false, true))". I tried searching in the source of the page for this ID and didn't find it, but I'm not sure how to get this to be inserted into the page (or how I managed to omitted this).
I tried setting breakpoints in both PageLoad and InsertCommand event handlers, but neither gets called after the form is initially set up (i.e. InitInsert) - no PeformInsert/InsertCommand is ever being called.
All help appreciated!
Jon
The Edit/Update/Cancel (through an EditCommand column) works fine for all of these functions and I'm trying to capture the Insert (i.e. PerformInsert or InsertCommand) event as it bubbles to the InsertCommand event handler so I can pull values from the form and update the data repository.
Here's the grid definition (I've omitted the column definitions for brevity):
<telerik:radgrid id="RadGrid_StaffBreakout" runat="server" autogeneratecolumns="False" allowsorting="True" gridlines="None" insertitempageindexaction="ShowItemOnFirstPage" width="400px" allowpaging="True" skin="Windows7" horizontalalign="Center"> <ItemStyle HorizontalAlign="Center" BorderWidth="0px" /> <MasterTableView HorizontalAlign="Center" GridLines="None" EditMode="InPlace" CommandItemDisplay="TopAndBottom"> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Middle" /> <AlternatingItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Middle" /> <EditItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Middle" /> <PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="True" /> <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" Wrap="True" VerticalAlign="Bottom" /> </MasterTableView> <HeaderStyle BorderStyle="None" /> </telerik:RadGrid> When I hover over the Insert link, the href for it is set to, "javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("StaffBreakout$RadGrid_StaffBreakout$ctl00$ctl02$ctl03$PerformInsertButton", "", true, "", "", false, true))". I tried searching in the source of the page for this ID and didn't find it, but I'm not sure how to get this to be inserted into the page (or how I managed to omitted this).
I tried setting breakpoints in both PageLoad and InsertCommand event handlers, but neither gets called after the form is initially set up (i.e. InitInsert) - no PeformInsert/InsertCommand is ever being called.
All help appreciated!
Jon