Hi,
I am trying to implement inplace edit in one of the grids that we use, but its turning out to be too complex to understand.
The demo that I am trying to mimic is: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
It should have been a cake walk but apparently there is a lot that I need to learn.
So I have a radgrid like below:
<telerik:RadGrid ID="rgLineItems" runat="server"
AutoGenerateColumns="False" AllowAutomaticUpdates="True" OnItemUpdated="rgLineItems_ItemUpdated">
I am just showing the code thats important so as to improve the signal to noise ratio. Besides, I like to know exactly what every attribute does before I use it....
Now within the grid I have this edit column:
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
<ItemStyle CssClass="EditRowImageButton" Width="10%"/>
</telerik:GridEditCommandColumn>
This is cool that it adds the edit button for each row automatically.
Now I have the actual data column like below:
<telerik:GridBoundColumn HeaderText="Line" DataField="Line" UniqueName="Line"
Visible ="true" ColumnEditorID="LineNumberColumnEditor">
<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
</telerik:GridBoundColumn>
The inplace editor is declared like this:
<telerik:GridTextBoxColumnEditor ID="LineNumberColumnEditor" runat="server" TextBoxStyle-Width="20px" />
Now I have no idea what to do next.
On clicking the pencil image (the edit command button), there is a postback to my page .... but in your example, the in place editor was showing up.... How do I achieve that?
Thanks,
Sunil