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

Programatically setting RadResizeStopLookup and RadShowStopLookup

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 08 Jun 2012, 10:51 AM
Hello all

We're using a fairly oldish release (2010.3.1317.40) on Windows 7 using IE9.  I am fairly new to the code base I'm looking at as I'm looking it as an outsider for a sister company to try and sort out some issues.

We're having a problem with performance when resizing a window as a RadGrid with a 1000 rows.  It takes a good number of seconds to resize.  Searching through the forums I found that setting RadResizeStopLookup="true" RadShowStopLookup="true" in the <div> following the RadGrid definition may ease these problems.

However, our RadGrid is being created in C# and being placed on the page dynamically (not sure of the exact mechanism -- this software generates forms from data in the database) and so there is not aspx file holding the grid.  Is there a way of setting these attributes from within C# on the RadGrid object itself?

Thanks in advance for any ideas anyone has.

1 Answer, 1 is accepted

Sort by
0
Ian
Top achievements
Rank 1
answered on 08 Jun 2012, 01:08 PM
Ah, found it.  Just in case anyone else is as confused as me, you can add arbitary attributes with the following, where Grid is your RadGrid object:
Grid.Attributes.Add("RadResizeStopLookup", "true");
Grid.Attributes.Add("RadShowStopLookup", "true");
Tags
Grid
Asked by
Ian
Top achievements
Rank 1
Answers by
Ian
Top achievements
Rank 1
Share this question
or