Ok, one possible solution:
UniScrollBox ->
function afterrender(sender, eOpts)
{
var me=sender.el;
me.setStyle('border-color', 'green');
me.setStyle('border-width', '1px');
me.setStyle('border-style', 'solid');
}
Hi,
Can you try this approach ?!:
1.
type
TExUniDateTimePicker = class(TUniDateTimePicker)
end;
2.
procedure TMainForm.UniButton1Click(Sender: TObject);
var
dt: TUniDateTimePicker;
begin
dt := UniDateTimePicker1;
with dt do
begin
DateFormat:='MM/yyyy';
JSInterface.JSAssign('format', [TExUniDateTimePicker(dt).GetJSFormat(DateFormat)]);
JSInterface.JSCode(#1'.setValue('#1'.value);');
end;
end;
Hi,
Can you try with "Ext.defer" ?!:
UnimScrollBox1.JSInterface.JSCode('var me='#1'; Ext.defer(function(){me.scrollableBehavior.scrollView.getScroller().maxPosition.y = '+ IntToStr(_top) +'}, 500);');
Best regards,
Hello,
One possible solution, try this:
Enable:
UniDBGrid1.JSInterface.JSCode('var item='#1'.query("[itemId=_Edit]")[0]; if (item){item.setDisabled(false)};');
Disable:
UniDBGrid1.JSInterface.JSCode('var item='#1'.query("[itemId=_Edit]")[0]; if (item){item.setDisabled(true)};');
In your case, can you try to use this approach ?!:
var
i : Integer;
top: Integer;
txt: string;
_top: Integer; // <-----
for i := 0 to Length(aMemo) - 1 do
begin
...
end;
_top := top - UnimScrollBox1.Height + UnimScrollBox1.Top; // <-----
UnimScrollBox1.JSInterface.JSCode('var me='#1'; me.scrollableBehavior.scrollView.getScroller().maxPosition.y = '+ IntToStr(_top) +';'); // <-----
Hi,
Can you try to use this approach for now ?!:
//TV2.ShowMask('Loading');
TV2.JSInterface.JSCall('showMask', ['Loading', TV2.JSControl]);
Best regards,