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

Radgrid loading takes too long - Ajaxifying Radgrid

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Agm
Top achievements
Rank 1
Agm asked on 15 Apr 2014, 04:01 PM
Hi,

I am having Radgrid in a div (div1) and other controls in another div (div2) on toggle (hide/show) based structure.

I want to show the div2 initially. problem is page is rendering after completion of Radgrid databind only.

I want to load the data to Radgrid without taking too long. may be ajaxifying the load.

Is it possible to show the controls in div2 before completing data loading of Radgrid??

Thanking you,

AGM RAJA

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Apr 2014, 06:35 AM
Hello,

You can achieve this thing either by using client side or by using server side data binding.

Client side

http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/programmatic/defaultcs.aspx

Bind one grid in page load event.
For second grid binding
    1. you can either use settimeout()
     2. On success/complete/prerender event of first grid. (Please check client events of RadGrid for more information)

Server side

1. If you use RadAjaxManager then inside function call the Ajaxmanager's Ajaxrequest() (for binding the second grid). (If needed then set queuesize="50" in RadAjaxManager).
2. if you use UpdatePanel then inside function call the __dopostback() of any/dummy button and set this/dummy button's visibility/display false so it will not displayed in the UI. (Please add this/dummy button inside update panel).

When to call above JS function

1. By using page prerender event of web page. (to call client side function from C#, please use RegisterStartUpScript).
2. By using JS settimeout()

http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/clientsideapi/defaultcs.aspx

Let me know if any concern.

Thanks.
Jayesh Goyani
0
Judson
Top achievements
Rank 1
answered on 15 Sep 2017, 02:21 PM
Could you please provide the sample project of server side approach? I have exactly same problem. I am using 2015.2.826 version.
Tags
Grid
Asked by
Agm
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Judson
Top achievements
Rank 1
Share this question
or