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

Using EditMode="Batch" does not work with Skin=""

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 01 Nov 2013, 07:21 PM

I am trying to create a RadGrid which uses the batch edit mode feature but does not use any skin. When I change the Skin property from "Default" to "" the click to edit functionality stops working. I have been able to recreate the issue with a very basic example. Is this a known issue? Is there some sort of Skin="None" that I could use instead of an empty string?

Here is my ASPX

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="" AutoGenerateColumns="False">
    <MasterTableView CommandItemDisplay="TopAndBottom" EditMode="Batch" AutoGenerateColumns="False">
        <BatchEditingSettings EditType="Cell" />
        <Columns>
            <telerik:GridBoundColumn DataField="Item1"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Item2"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>


Here is my C#

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        List<Tuple<string, string>> source = new List<Tuple<string, string>>();
        source.Add(new Tuple<string, string>("First Item", "Value1"));
        source.Add(new Tuple<string, string>("Second Item", "Value 2"));
        source.Add(new Tuple<string, string>("Third Item", "Value 3"));
 
        RadGrid1.DataSource = source;
        RadGrid1.DataBind();
    }
}

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 06 Nov 2013, 02:01 PM
Hi Steve,

I have to say that the behavior experienced is expected. When a cell is opened for edit RadGrid checks where the click has occurred. For that purpose it uses the rgRow and rgAltRow CSS classes which are used in our skins. If the click has occurred inside a grid row the respective cell/row is being opened for edit. Note that these classes are mandatory and are used to style and distinguish the tr elements of the grid. That said I would recommend using a skins when enabling the edit mode.

Regards,
Angel Petrov
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or