hi
the tab close icone not load , but when i press F5 , the close icon apears , i am using 3.0.0.99 .
i will send a sample project , please check it , thank you
Alexander Bulei wrote:Hi,
The property CloseIcon doesn't support ajax change.
Please use the AjaxReRender.
Best Regards.
var //open Frame in New Tab
itab :TIWCGJQTab ;
Region : TIWCGJQRegion;
begin //open Frame in New Tab
iTab := MainTab.AddNewTab ;
iTab.Caption := 'حساب هاي گروه' ;
iTab.CloseIcon := True ;
iTab.AjaxLoad := True ; // Required
iTab.AjaxLoadAlways := True ; // Optional
iTab.AjaxReRender(True,False);
Region := TIWCGJQRegion.Create(Self);
Region.Name := CGFindUniqueComponentName(Self,'IWCGJQREGION');
Region.Parent := iTab ;
Region.Align := alClient ;
//Client
MainTab.JQTabOptions.AjaxAddTab(iTab.Caption,iTab.TabUrl,iTab.TabIndex);
MainTab.ActiveTab := iTab ;
with TFr_Financ_Group.Create(Region)do
begin
Parent := Region ;
Align := alClient ;
end;
Region.ForceAlign;
MainTab.Refresh;
end;
var //close opened Tab
itab :TIWCGJQTab ;
Index:Integer ;
begin //close opened Tab
if TryStrToInt(AParams.Values['$Arg_Index'],Index)then
begin
iTab := MainTab.Tabs[index];
MainTab.DeleteTab(Itab);
MainTab.AjaxReRender(True,False);
iTab.AjaxReRender(True,False);
end;
end;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | procedure TMain_Form . IWCGPanelList1IWCGPanelListItems1Click(Sender: TObject;AParams: TStringList); var itab :TIWCGJQTab ; Region : TIWCGJQRegion; RenderAsync: Boolean ; Frm: TIWCGJQFrame; begin RenderAsync:= CGIsCallBackProcessing; if RenderAsync then CGCallBackDisableAjaxResponse; try iTab := MainTab . AddNewTab; iTab . Caption := 'Test Caption' ; iTab . CloseIcon := True ; iTab . AjaxLoad := True ; iTab . AjaxLoadAlways := False ; Frm:= TFr_Financ_Group . Create(Region); Frm . Name:= CGFindUniqueComponentName(Self, 'FinancGroupFrame' ); Frm . Parent:= iTab; Frm . Align:= alClient; finally if RenderAsync then begin CGCallBackEnableAjaxResponse; MainTab . AjaxReRender( True , False ); end ; end ; end ; |