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

edit link does not work in the client-side binding

2 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lynn
Top achievements
Rank 1
Lynn asked on 29 Nov 2011, 07:52 AM
Hi,

I have a question: the Radgrid is bound to wcf data service in the client-side. The data is displayed correctly. But when hit the Edit link, there is no response. I have set the EditMode to InPlace. My aspx code is as following:
<telerik:RadGrid ID="RadGrid1" runat="server" Width="700px" AllowSorting="true"   AllowPaging="true"
                 pagesize= "10"  AutoGenerateColumns="false"  OnItemCreated="g_ItemCreated"> 
    <MasterTableView   AllowNaturalSort="true" DataKeyNames="parm_id" AllowAutomaticUpdates="false" EditMode="InPlace" >
        <Columns>
             <telerik:GridBoundColumn DataField="id" UniqueName="ID" HeaderText="ID"
                ItemStyle-Width="200px" AllowSorting="true" ShowSortIcon="true" SortExpression="ID asc" ReadOnly="true" Display = "false"/>
            <telerik:GridBoundColumn DataField="name" UniqueName="Name" HeaderText="Name"
                ItemStyle-Width="200px" AllowSorting="true" ShowSortIcon="true" SortExpression="Name asc" ReadOnly="true"  />
             <telerik:GridNumericColumn                                      DataField="Score"                                      DataType="System.Int32"                                      HeaderText="Score"                                                                              UniqueName="Score"
                                   >                                               </telerik:GridNumericColumn>             <telerik:GridCheckBoxColumn UniqueName="ActiveFlag" HeaderText="Is Active" DataField = "active_flag" />             <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="">             </telerik:GridEditCommandColumn>         </Columns>     </MasterTableView>   <ClientSettings >         <ClientEvents OnDataBinding="OnDataBinding" OnRowDataBound="OnRowDataBound"   />         <DataBinding Location="WcfDataService1.svc"  >         <DataService TableName="Student"  />         </DataBinding>  </ClientSettings> </telerik:RadGrid>

Someone could help me? Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 30 Nov 2011, 04:26 PM
Hello Lynn,

When the grid is bound on the client, no subsequent trips are made to the server and the default editors cannot be rendered, and shown, which is the standard behavior, when the grid is bound on the server. The most straightforward option to work-around this is to use an external edit form, which is demonstrated in the following example.
Please examine this topic for additional information.

I hope this helps.

All the best,
Mira
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Lynn
Top achievements
Rank 1
answered on 02 Dec 2011, 07:01 AM
Thanks, Mira.
Tags
Grid
Asked by
Lynn
Top achievements
Rank 1
Answers by
Mira
Telerik team
Lynn
Top achievements
Rank 1
Share this question
or