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

[Solved] Unable to Suppress Border on Edited Item

5 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 19 Dec 2009, 06:23 PM

I am using Telerik 2009 Q2 release.
I have a WinGrid where a put all records in Edit Mode. The only editable item on a row is a checkbox. I only want the user to be able to check the checkbox as nessary. Because all rows are in edit mode a line is displayed underneath each row. I do not want this line displayed. I believe I should be able to suppress the line by the following code - but is is not working. The EditItemStyle-BorderStyle="None" should suppress the line.

<

 

MasterTableView DataKeyNames="WorkCategorySubTypeDamageExtentID"  

CommandItemDisplay="None"   

EditMode="InPlace" GroupHeaderItemStyle-HorizontalAlign="Left"   

AllowSorting ="True" DataSourceID="ManageDamageExtentSelect" ShowHeader="True" ShowFooter="True"
EditItemStyle-BorderStyle="None" >

Thanks for any help.

Chris

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Dec 2009, 06:50 PM
Hello Christopher,

Please try the following way:
<style type="text/css">
    .RadGrid_Default .rgEditRow
    {
        background: none;
    }
    .RadGrid_Default .rgMasterTable .rgEditRow td
    {
        border: none 0;
    }
</style>

Replace "Default" with your Skin name. For example: .RadGrid_Vista .rgEditRow

Kind regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Christopher
Top achievements
Rank 1
answered on 20 Dec 2009, 11:39 AM
Daniel,

Your suggestion worked for Firefox 3.5. Unfortunately it did not work for IE7. Any other ideas? Thanks.

Chris
0
Daniel
Telerik team
answered on 23 Dec 2009, 09:12 PM
Hello Christopher,

I missed the rgMasterTable class in the first part of the code-snippet.
<style type="text/css">
    .RadGrid_Default .rgMasterTable .rgEditRow
    {
        background: none;
    }
    .RadGrid_Default .rgMasterTable .rgEditRow td
    {
        border: none 0;
    }
</style>

Let me know whether this works as expected.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Christopher
Top achievements
Rank 1
answered on 26 Dec 2009, 11:23 AM
Daniel,

I found another approach that worked and was simplier to implement. I used an GridTemplateColumn with an ItemTemplate with an embedded CheckBox. This provided the user experience I that I was trying to achieve without having to put all the rows in edit mode.
             
<rad:GridTemplateColumn UniqueName="IsEnabled"  
  HeaderStyle-HorizontalAlign="Center" 
   HeaderText="Is Enabled" 
   SortExpression="IsEnabled">  
  <ItemTemplate> 
    <asp:CheckBox ID="cbxIsEnabled" AutoPostBack="true" OnCheckedChanged="cbxIsEnabled_CheckedChanged" 
      runat="server" Checked='<%# Bind("IsEnabled") %>' /> 
  </ItemTemplate> 
</rad:GridTemplateColumn>       

I have recently upgraded to IE8. I tried your suggestion with IE8 before changing my approach. It still did not seem to work. It may be due to the fact that the grid is in a dymically loaded user control.
Thanks for your help.

Chris
0
Daniel
Telerik team
answered on 28 Dec 2009, 12:48 PM
Hello Christopher,

Sorry to hear that my suggestion didn't help. Could you please let me know the version of RadControls used in your project? In the meantime you can test the demo project attached to this forum post.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Christopher
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or