5 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 09 Mar 2011, 06:26 AM
Hello Vijay,
You can achieve this by setting the ReadOnly property to true.
Thanks,
Shinu.
You can achieve this by setting the ReadOnly property to true.
<
Telerik:GridBoundColumn
DataField
=
"EmployeeID"
ReadOnly
=
"true"
HeaderText
=
"EmployeeID"
UniqueName
=
"EmployeeID"
>
</
Telerik:GridBoundColumn
>
Thanks,
Shinu.
0
Vijayaraj
Top achievements
Rank 1
answered on 14 Mar 2011, 01:58 PM
Thank you shinu,
I know that we can make them read only.
My problem here is to display the particular field as editable when the grid is displayed and it should have a save button to perform the save operation on the updation on that column.
I have attached a sample image.
Regards,
Vijay
I know that we can make them read only.
My problem here is to display the particular field as editable when the grid is displayed and it should have a save button to perform the save operation on the updation on that column.
I have attached a sample image.
Regards,
Vijay
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 Mar 2011, 10:18 AM
Hello Vijayraj,
One option is you can use GridTemplateColumn with TextBox(for entering data) and Button(for updating)in ItemTemplate.
ASPX:
Thanks,
Princy.
One option is you can use GridTemplateColumn with TextBox(for entering data) and Button(for updating)in ItemTemplate.
ASPX:
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"EmployeeID"
UniqueName
=
"EmployeeID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
></
asp:TextBox
>
<
asp:Button
ID
=
"Button2"
runat
=
"server"
Text
=
"Save"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
Thanks,
Princy.
0
Hi Vijayaraj,
You can set all rows in edit mode. Attach this handler to grid's PreRender event:
Then set all columns except the last one to ReadOnly.
Kind regards,
Vasil
the Telerik team
You can set all rows in edit mode. Attach this handler to grid's PreRender event:
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
foreach
(GridEditableItem row
in
RadGrid1.Items)
{
row.Edit =
true
;
}
RadGrid1.Rebind();
}
Kind regards,
Vasil
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Vijayaraj
Top achievements
Rank 1
answered on 16 Mar 2011, 05:00 PM
Thank you so much. I hope this would solve my problem.
Regards,
Vijayaraj
Regards,
Vijayaraj