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

Dynamic RadDock do not Refresh UserControls inside it on Server Events

3 Answers 116 Views
Dock
This is a migrated thread and some comments may be shown as answers.
SM
Top achievements
Rank 1
SM asked on 11 Sep 2008, 10:33 AM
Hi Telerik,

I am using the Trial RadDock for ASP.NET 2.0. I coded the same as Dynamic RadDock in Examples of Telerik and also integrated to inside the RadDock  the Dynamic Loading of the Web User Control that may contain as simple as a button with a lable.

My issue is, though the server evnt of the Button inside the User Control hosted in a Dynamic RadDock, is fired, but the RadDock itself do not get refershed with the message in the Lable.

Though in reality I would be placing the RadGrid inside the User Control that is added in the runtime to the dynamic RadDock.

Please help. My client will buy the product, if am I am able to show the demo of this successfully.

Thanks,
Sandeep Kumar Mittal

3 Answers, 1 is accepted

Sort by
0
SM
Top achievements
Rank 1
answered on 11 Sep 2008, 11:37 AM
Hi Telerik,

I got the solution to my simple issue. It was due to the UpdatePanel was not encapsulating the lable with button, but my serious issue still exists with RadGrid, the click on pager control only fires for the first time and moves me to next page but do not fire for second time in this scenerio and also for all subsequent click to pager control of the Grid no not respond.

Thanks,
Sandeep Kumar Mittal
0
SM
Top achievements
Rank 1
answered on 11 Sep 2008, 12:41 PM
Hi Telerick,

Below is the link to my project:

http://www.yousendit.com/download/bVlDNU1DOC9oMlYzZUE9PQ

As I could not find the option to attach my project, the above link will suffice for the same.

In this project on executing the default.aspx, click on Grid's first Row's "Select" button that creates the Dynamic Dock and the RadGrid embeded in the User Control.

Try to page through this RadGrid, the issue will be evident.

Please help ASAP.

Regards,
Sandeep Kumar Mittal
0
Sophy
Telerik team
answered on 15 Sep 2008, 01:43 PM
Hi,

We reviewed the test project you have sent us and were able to reproduce the issue on our side. Reviewing your code we noticed that you are binding the RadDocks in two places in the code behind of the Default page which is not needed. This is the reason for experiencing the problem you mention. To resolve it you should remove the following lines from the Default.aspx.vb file:
dock.DataBind()                                                              in Page_Init
RadDockLayout1.RegisteredDocks.Item(i).DataBind()     in RadDockLayout1_LoadDockLayout
If you need further assistance, do contact us again.

Best wishes,
Sophy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
SM
Top achievements
Rank 1
Answers by
SM
Top achievements
Rank 1
Sophy
Telerik team
Share this question
or