hi
I have 2 registered main form
RegisterAppFormClass(TMainForm1);
RegisterAppFormClass(TMainForm2);
I want to switch between theme.
where I can apply this code?
UniMainModule.MainForm:=MainForm1;
or
UniMainModule.MainForm:=MainForm2;
and is this the right way to do that?
tnx
hi
I have this problem with Unidac only.firedac is ok
when set listonlymode=lmFollowSource
set combo.ListSource=nil in design time and in run time set combo.ListSource=Query after the query is openned
hi .
it is usefull post.thanks
I use vk_down and Tab
I'm use tab key to fill columns data.
I want to append a new record when tab key reach Last Column of last row
and user press Tab again to append new record
Best regards.
function cellkeydown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
{
if (e.getKey() == 40)
{
if (rowIndex==Last Row) <---- problem
{
e.stopEvent ();
ajaxRequest(sender, 'AppendRow', [] );
}
}
}
this is my code.
tnx
hi
use this code procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniDBGrid); var DBGridJSName: string; begin DBGridJSName := (Sender as TUniDBGrid).JSName; UniSession.AddJS('Ext.defer(function(){' + DBGridJSName + '.getSelectionModel().deselectAll(); ' + DBGridJSName + '.view.refresh()}, 20); ' ); end; from Delphi Developerhttp://forums.unigui.com/index.php?/topic/7022-issue-with-gridselected/ but your DBGrid will be refreshed twice we need a DBGrid property to avoid this action