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

Cant able to change edited row backcolor

4 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aswin S
Top achievements
Rank 1
Aswin S asked on 12 Oct 2010, 08:31 AM
Hi,

I want to change the row back color of the currently edited row.
I tried changing the editeditemstyle backcolor property. but it was applied partially. (pls refer attachment)
i want it to apply it to the whole row. Any help.

Here is my code.
<telerik:RadGrid Skin=Vista ShowGroupPanel="True" AllowFilteringByColumn="true"
    AutoGenerateColumns="false" AllowPaging="true" PageSize="20" AllowSorting="true" ID="grid1" runat="server" ClientSettings-Resizing-AllowColumnResize="true" OnDeleteCommand="RadGrid1_DeleteCommand">
    <GroupingSettings CaseSensitive="false" />
    <EditItemStyle BackColor=Green />
    <MasterTableView GroupLoadMode="Server" DataKeyNames="service_provider_id" ClientDataKeyNames="service_provider_id,sp_email_og,sp_org_name">
        <Columns>
.
.
.
.
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="EditProfileDetail.ascx">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Oct 2010, 09:44 AM
Hi Aswin,


I am not sure about the issue since the code worked fine for me. I am using RadControls version 2010, 1, 519, 35. Probably upgrading the RadControls to latest version will help you in this.
Updating RadControls for ASP.NET to another version or license


Another option is applying the style for editrow. Add teh  following style on page.
CSS:
<style type="text/css">
    .rgEditRow
    {
        background-color: Green !important;
    }
</style>



-Shinu.
0
Aswin S
Top achievements
Rank 1
answered on 12 Oct 2010, 11:34 AM
If i remove the Skin=Vista property. The color was applied fully to that whole row.

Any clue
0
Accepted
Tsvetina
Telerik team
answered on 15 Oct 2010, 09:02 AM
Hi Aswin,

The top portion of the selected rows has a background image, while the bottom one has a background color. You can remove the background image completely for edited rows and set the desired background color:
<style type="text/css">
 .rgEditRow 
 {
     background-color:Blue;
     background-image:none !important;
 }
 </style>


Kind regards,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Aswin S
Top achievements
Rank 1
answered on 20 Oct 2010, 07:32 AM
That worked. Thanks a lot Tsvetina
Tags
Grid
Asked by
Aswin S
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Aswin S
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or