rule jqvorvRequired with Placeholder<>''

Probably simple questions:
#1
Rule jqvorvRequired works only if property Placeholder is empty. How can I assign a required rule if I have:
PlaceHolder := '-- please select --'
#2
I though I can check which items is selected with SelectedIndex. But it doesn't work for me
See video:
I am using this code:
My settings for DropDown:
DataLink.DataSource := IWUserSession.dsStranke; //datasource for table Customers
DataLink.FieldName := 'Drzava'; //field from table Customers
DataLink.ListDataSource := IWUserSession.dsDrzave; //--> datasource for table Countries
DataLink.ListFetchCount := 120;
DataLink.ListFieldNames := Ime_drzave; //field from table Countries
DataLink.ListLookupResultFieldName := Ime_drzave; //field from table Countries
DataLink.ListSelectFieldName := Ime_drzave; //field from table Countries
Thanks.
#1
Rule jqvorvRequired works only if property Placeholder is empty. How can I assign a required rule if I have:
PlaceHolder := '-- please select --'
#2
I though I can check which items is selected with SelectedIndex. But it doesn't work for me


I am using this code:
- Code: Select all
procedure TKreirajRacunFrame.IWCGJQButton1JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
begin
WebApplication.ShowMessage('SelectedIndex is '+DropDownDRZAVE.SelectedIndex.ToString);
end;
My settings for DropDown:
DataLink.DataSource := IWUserSession.dsStranke; //datasource for table Customers
DataLink.FieldName := 'Drzava'; //field from table Customers
DataLink.ListDataSource := IWUserSession.dsDrzave; //--> datasource for table Countries
DataLink.ListFetchCount := 120;
DataLink.ListFieldNames := Ime_drzave; //field from table Countries
DataLink.ListLookupResultFieldName := Ime_drzave; //field from table Countries
DataLink.ListSelectFieldName := Ime_drzave; //field from table Countries
Thanks.