Hello,
I want to edit my row cell in single line after clicking "edit".
Just like this online demo:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultvb.aspx?product=combobox
I tried, but my grid looks different.
If I click on "edit" it opens edit fields right under the row, not in the row itself.
Have i missed something?
Mfg noVo
I want to edit my row cell in single line after clicking "edit".
Just like this online demo:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultvb.aspx?product=combobox
I tried, but my grid looks different.
If I click on "edit" it opens edit fields right under the row, not in the row itself.
Have i missed something?
Mfg noVo
6 Answers, 1 is accepted
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Oct 2012, 11:08 AM
Hello,
Please set below property.
for in-line edit
To allow only one row in edit mode
Thanks,
Jayesh Goyani
Please set below property.
for in-line edit
<MasterTableView EditMode="InPlace">To allow only one row in edit mode
<telerik:RadGrid AllowMultiRowEdit="false">Thanks,
Jayesh Goyani
0
Shinu
Top achievements
Rank 2
answered on 11 Oct 2012, 11:08 AM
Hi Benjamin,
Please ake sure that you have set EditMode as InPlace.
aspx:
Thanks,
Shinu.
Please ake sure that you have set EditMode as InPlace.
aspx:
<MasterTableView EditMode="InPlace" >Thanks,
Shinu.
0
Benjamin
Top achievements
Rank 1
answered on 11 Oct 2012, 11:31 AM
aww that was fast, thank you!
0
Benjamin
Top achievements
Rank 1
answered on 11 Oct 2012, 12:02 PM
EDIT:
If I add EditMode="InPlace" then iI have problems with my integrated RadComboBox.
I have:
And i get the following error:
If I add EditMode="InPlace" then iI have problems with my integrated RadComboBox.
I have:
<EditFormSettings EditFormType="Template"> <FormTemplate> Category <telerik:RadComboBox ID="RadComboBox1" runat="server" DataTextField="CategoryName" DataValueField="CategoryID" EnableLoadOnDemand="true" OnItemsRequested="RadComboBox1_ItemsRequested"> </telerik:RadComboBox> [...] </FormTemplate></EditFormSettings>And i get the following error:
Dim combo As RadComboBox = DirectCast(item.FindControl("RadComboBox1"), RadComboBox) combo is nothing
So if i add EditMode="InPlace"
It doesn't find my control anymore.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Oct 2012, 12:33 PM
Hello,
For FormTemplate you have to use EditMode="EditForms".
..............
EditMode="InPlace" is worked for
Then also please try with below code.
Also check below link for more info.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx
Thanks,
Jayesh Goyani
For FormTemplate you have to use EditMode="EditForms".
..............
EditMode="InPlace" is worked for
<telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name"> </telerik:GridBoundColumn>//OR<telerik:GridTemplateColumn> <ItemTemplate> </ItemTemplate> <EditItemTemplate> </EditItemTemplate> </telerik:GridTemplateColumn>Then also please try with below code.
Dim item As GridEditFormItem = TryCast(e.Item, GridEditFormItem)Dim RadComboBox1 As RadComboBox = TryCast(item.FindControl("RadComboBox1"), RadComboBox)Also check below link for more info.
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx
Thanks,
Jayesh Goyani
0
Benjamin
Top achievements
Rank 1
answered on 11 Oct 2012, 01:05 PM
Thanks for your reply.
I had a bit different ASP Code, so your example wasn't working.
But I figured out what was the problem and it works now as i want.
Thanks.
I had a bit different ASP Code, so your example wasn't working.
But I figured out what was the problem and it works now as i want.
Thanks.