I am developing an extensive web application with many datagrids and am wanting to use the popup editor to make coding simpler.
But I need to do some extra data validation and manipulation on server-side. Is it possible to access the inputs from the modal pop up editor on the radgrid insert_command event?
This is how I build my grid asp-side:
And this is how I want to bind my table server-side:
But I need to do some extra data validation and manipulation on server-side. Is it possible to access the inputs from the modal pop up editor on the radgrid insert_command event?
This is how I build my grid asp-side:
| <telerik:RadGrid ID="gvFTE2009" runat="server" Width="550px"> |
| <MasterTableView EditMode="PopUp" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add another category" |
| ShowHeadersWhenNoRecords="true" ShowHeader="false" NoMasterRecordsText="No Other Categories exist. Click 'Add another category' to add a new category"> |
| <EditFormSettings InsertCaption="Add another category" CaptionDataField="" PopUpSettings-Modal="true"/> |
| <Columns> |
| <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="columnDelete" ItemStyle-Width="55px"> |
| </telerik:GridButtonColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
And this is how I want to bind my table server-side:
| sqlString = "Select .... " |
| ds = SqlHelper.ExecuteDataset(Conn, Data.CommandType.Text, sqlString, sqlparam) |
| If ds.Tables(0).Rows.Count > 0 Then |
| gvFTE2009.DataSource = ds.Tables(0) |
| gvFTE2009.DataBind() |
| End If |