English 中文(简体)
Telerik RadDock - ViewStateById
原标题:Telerik RadDock - ViewStateById

我正在开发一个有几台雷达台的网页的网站,用户可以选择他们想要展示的具体控制,并能够安排这种控制。

我在增加/移动/移动(改变控制树)时,看到了许多观点错误,唯一的解决办法似乎是为某些电离层连续器(RadDock、RadDockLayout、RadDockZone等)和适用[国家ModeById]的特性设置了包装班。

[ViewStateModeById]
public class RadDockById : RadDock

Has anyone used RadDock in conjunction with ViewStateModeById? Is it likely to cause any trouble down the line?

最佳回答

The ViewState related problems that you have encountered are most probably caused by the following two things:

  1. The dynamically created RadDock s are not added to the same control. Once they are added to the RadDockZone s and other times to RadDockLayout. This causes the incorrect ViewState to be loaded for some of the docks which is causing the problem.
  2. The closed docks are disposed and removed from the page. This again changes the Controls tree of the Page, which is essential when loading and saving the ViewState.

你在解决这个问题方面有以下选择:

  • Disabling the ViewState for the RadDockLayout or entire page. This way you can add or remove controls, but if the properties are changed dynamically there might be some problems.
  • Creating a new class that inherits from the RadDock control and marking it to use ViewStateModeById, as you have guessed. In this forum thread you can find more information about this approach.
  • At all times creating all docks and adding them to the RadDockLayout. The closed RadDocks should always have their Visible property set to false.
问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签