sanjayanthan
Top achievements
Rank 1
sanjayanthan
asked on 11 Aug 2012, 10:00 AM
Hi
we are purchased q2 2012 .when we use the gird like inline add/edit as attached in the image file.
When i click Add new record .i have show 2 options one is insert and cancel.
Here i want to change the text insert into submit .
how can i achive it.i have attached the image for your reference
need your help
Thanks in advance
sanjay
we are purchased q2 2012 .when we use the gird like inline add/edit as attached in the image file.
When i click Add new record .i have show 2 options one is insert and cancel.
Here i want to change the text insert into submit .
how can i achive it.i have attached the image for your reference
need your help
Thanks in advance
sanjay
5 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 12 Aug 2012, 04:11 PM
Hello,
Thanks,
Jayesh Goyani
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item.IsInEditMode && e.Item
is
GridEditableItem)
{
if
(e.Item
is
GridDataInsertItem)
{
GridEditableItem editItem = (GridEditableItem)e.Item;
LinkButton InsertButton = (LinkButton)editItem.FindControl(
"PerformInsertButton"
);
InsertButton.Text =
"Your insert text"
;
LinkButton CancelButton = (LinkButton)editItem.FindControl(
"CancelButton"
);
CancelButton.Text =
"Your insert cancel text"
;
}
else
{
GridEditableItem editItem = (GridEditableItem)e.Item;
LinkButton updateButton = (LinkButton)editItem.FindControl(
"UpdateButton"
);
updateButton.Text =
"Your Update text"
;
LinkButton CancelUpdateButton = (LinkButton)editItem.FindControl(
"CancelButton"
);
CancelUpdateButton.Text =
"Your update cancel text"
;
}
}
}
Thanks,
Jayesh Goyani
0
Steve
Top achievements
Rank 2
answered on 02 Apr 2013, 08:19 PM
Can I change the default values of "Insert" and "Cancel" via the grid's properties (in the .aspx file) instead of the code file?
0
Shinu
Top achievements
Rank 2
answered on 03 Apr 2013, 05:00 AM
Hi,
Try the following.
aspx:
Thanks,
Shinu
Try the following.
aspx:
<
EditFormSettings
>
<
EditColumn
InsertText
=
"add"
CancelText
=
"cancel edit"
></
EditColumn
>
</
EditFormSettings
>
Thanks,
Shinu
0
Steve
Top achievements
Rank 2
answered on 03 Apr 2013, 02:43 PM
I tried this from the Properties window for the control...did not work. I'll use the code behind solution posted above. Thanks.
0
Hi Steve,
Thank you for your feedback.
I have updated your Telerik points by 500 for bringing this issue to our attention. I have forwarded it to our developers who will fix it for the future releases.
Sorry for any inconvenience caused.
Regards,
Eyup
the Telerik team
Thank you for your feedback.
I have updated your Telerik points by 500 for bringing this issue to our attention. I have forwarded it to our developers who will fix it for the future releases.
Sorry for any inconvenience caused.
Regards,
Eyup
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.