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

[Solved] Popup editor

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 2
Drew asked on 16 Nov 2009, 04:03 PM
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:

<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 


1 Answer, 1 is accepted

Sort by
0
Drew
Top achievements
Rank 2
answered on 16 Nov 2009, 04:53 PM
Tags
Grid
Asked by
Drew
Top achievements
Rank 2
Answers by
Drew
Top achievements
Rank 2
Share this question
or