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

customize GridHTMLEditorColumnEditor content

2 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jc mag
Top achievements
Rank 1
jc mag asked on 11 Jun 2011, 12:16 PM
I'd like to customize the text displayed by the GridHTMLEditorColumnEditor ; I tried that but the content remains empty (the resourceValue column is bound only in the ItemDataBound event):

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;
                GridHTMLEditorColumnEditor editor = (GridHTMLEditorColumnEditor)editedItem.EditManager.GetColumnEditor("resourceValue");
                 editor.Editor.Content = "my custom text";             
            }
        }

2 Answers, 1 is accepted

Sort by
0
Genti
Telerik team
answered on 15 Jun 2011, 10:25 AM
Hi jc mag,

Thank you for contacting us.

In your case the editor does not get updated with the custom text that you provided as it gets bound later to the another value.
So, the solution would be to supply the custom text in the ItemDataBound handler.

Hope this helps.

Kind regards,
Genti
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
jc mag
Top achievements
Rank 1
answered on 15 Jun 2011, 12:51 PM
It works, thank you very much!
Tags
Grid
Asked by
jc mag
Top achievements
Rank 1
Answers by
Genti
Telerik team
jc mag
Top achievements
Rank 1
Share this question
or