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

Grid in inline edit mode

4 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Nov 2012, 07:02 PM
Hi,

i am using the grid and have written a function that allow me to set all the viable rows to be edited using the inline edit method. 

the grid is initially populated with 1000 rows by being bound to a data table, the grid has paging set at 25 lines per page and the user can edit all 25 items in one go,  when they click update my code loops through the viable items and adds them to a new data table and this is returned to an update function. 

the data table that is sent back only contain 25 rows but seems to be over a meg in size and this really kill the performance of the page when using it over a Normal ADSL connection.

can anyone tell me why the data table is so big as the data contained with in it should be a few K and i do not seem to have the same issue when the data is retrieved on load of the page.



4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Nov 2012, 06:15 PM
Hi,

You can, refer to our section on general tips and tricks to optimize RadGrid's performance, starting with the following article:

Client/server grid performance optimizations

The most recommended approach for your case would be to simply reduce the number of items initialized on every postback or use custom paging. Thus you will be able to fetch only the records from the current page and perform operations over this specified set of data.

All the best,

Pavlina
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.
0
Mark
Top achievements
Rank 1
answered on 26 Nov 2012, 05:51 PM

Hi, the problem is the size of the view state which seems to be 2.4 meg for 25 lines data, each row has 19 columns, problem is if I turn off the view state I lose ability to track changes made in the grid, or am I missing something?

if I interrogate the grid on post back it is empty when the view state is turned off?

0
Mark
Top achievements
Rank 1
answered on 27 Nov 2012, 02:05 PM
after some additional work i found the problem, there is a drop down in the gird that contains 1005 rows of data, the data is replicated 25 times 1 for each row of the grid. this is increasing the view state from 100K to 2.5 Meg. 

is there a ways to stop all that data appearing in the view state but still track what the user has selected in the dropdown?
0
Pavlina
Telerik team
answered on 29 Nov 2012, 02:52 PM
Hello,

Are you using asp:DropDownList or Telerik RadComboBox in the grid? If you use RadComboBox you have two options to increase the performance. The first one is to load the items of these template comboboxes on demand. This should increase the performances upon initial load since the markup for the items won't be rendered on the page. The second approach would be to use the Simple rendering of the RadComboBox. Please note that some of the functionalities are not available when this rendering is being used. Here is a help article on this matter.

Greetings,
Pavlina
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
Mark
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mark
Top achievements
Rank 1
Share this question
or