Full edit WebGrid control lrcgrid (6) - control presence

xiaoxiao2021-03-06  42

Full edit WebGrid control lrcgrid (6) - control presence

Create sub-control

Rewote the createChildControls () process, call the method of creating a child control Rebuild ()

Whenever the ASP.NET page framework needs to create a control tree, the CreateChildControls () method is called, and the method call is not limited to a specific phase of the life cycle of the control. For example, you can call CreateChildControls during the binding data during the loading page or during the rendering process.

Protected Override Void CreateChildControls ()

{

THIS.REBUILD ();

}

Rewriting the onprender (Eventargs E) process, registering the client script block, this script allows the user to enter the focus jump, and the part of the comment is the method of using the resource file.

Protected Override Void OnPrender (Eventargs E)

{

Base.onprender (e);

IF (this._istabchg)

{

IF (! page.isclientscriptblockregistered ("LRC_CHGTAB")))

{

String str_chgtab = @ "