May I suggest you please try the sample code below which works fine for me. Tweak the code with the data table instead of page block table which should probably do the trick for you.
Apex Controller:
public class MyController {
Wrapper[] wrappers;
// return list of wrappers containing the account records
public Wrapper[] getWrappers(){
if (wrappers == null)
{
wrappers = new Wrapper[]}{};
Account[] record = [SELECT AccountID__c,Name,(SELECT PerformDate__c FROM AssService__r) FROM ResService__c];
for (Account record:records)
{
wrappers.add(new Wrapper(record));
}
}
return wrappers;
}
// wrap account and service records
public class Wrapper {
public Account account {get;set;}
public AssService__c service {get;set;}
public Wrapper(Account record){
this.account = record;
// use existing service or init a new one
this.service = record.AssService__r.length() > 0 ? record.AssService__r : new AssService__c()
}
}
}
Hi Mukesh, Please try the following code as it may be helpful in solving your problem:
add below code after these div tag <div class="slds-modal__footer"> <div class="slds-x-small-buttons--horizontal"> <button class="slds-button slds-button--neutral">Create Contact</button>
</div> </div>
add these <table> <th class= "slds-space"> <tr> </tr> </th> </table>
and in css .THIS .slds-space{ border: 5px; background: blue; height: 10px; margin: 5px; }
colour which is blue indicates as blank space, you can increase height and colour.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
May I suggest you please try the sample code below which works fine for me. Tweak the code with the data table instead of page block table which should probably do the trick for you.
Apex Controller: Visualforce Page:
Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Please try the following code as it may be helpful in solving your problem:
add below code after these div tag
<div class="slds-modal__footer">
<div class="slds-x-small-buttons--horizontal">
<button class="slds-button slds-button--neutral">Create Contact</button>
</div>
</div>
add these
<table>
<th class= "slds-space">
<tr>
</tr>
</th>
</table>
and in css
.THIS .slds-space{
border: 5px;
background: blue;
height: 10px;
margin: 5px;
}
colour which is blue indicates as blank space, you can increase height and colour.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha