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

Annoying auto generated code!

3 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ekc ekc
Top achievements
Rank 1
ekc ekc asked on 31 Jan 2013, 04:19 AM
Hi Telerik team,

I've been living through the annoying auto generated code in RadGrid for like 2-3 years. Today I find that enough is enough, so now I gonna report this to you guys and see if there's any solution. Please see code below: 

<telerik:RadGrid ID="grdTest" runat="server" Skin="custom" EnableEmbeddedSkins="false" EnableTheming="false"
                                                AllowPaging="false" AllowSorting="false" BorderStyle="None" ShowHeader="true" Width="680px">
                                                <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true">
                                                    <Selecting AllowRowSelect="true" />
                                                <Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" />
<Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" />
<Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" /><Selecting AllowRowSelect="true" />

</ClientSettings>

Please take note on the BOLD part, all this code will be auto generated whenever i save the aspx file and only happen if EnablePostBackOnRowClick="true". The code will double up for every save, meaning from 1 line of <Selecting AllowRowSelect="true" /> will become 2 lines, then 4 lines, then 8 lines, and eventually crash my VS2010. Then I'll have to edit the aspx file manually to remove all the duplicate lines in order to run my VS2010 again.

By the way, I'm using Telerik WebUI VSExtensions 2010.03.1109.0.

3 Answers, 1 is accepted

Sort by
0
ekc ekc
Top achievements
Rank 1
answered on 01 Feb 2013, 03:21 AM
Any idea?
0
ekc ekc
Top achievements
Rank 1
answered on 04 Feb 2013, 07:43 AM
No response eh?
0
Angel Petrov
Telerik team
answered on 04 Feb 2013, 04:04 PM
Hello,

I am sorry to say but this is an unknown issue to us. Could you please try installing the latest extensions and tell us if the problem still replicates. You can download the extensions from here. I tried reproducing the problem in a sample project but to no avail. Could you please try to reproduce the issue in the project attached?

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