Hi,
I have the below as my Group Header
groupHeaderTemplate: "Items: #=count# +
"<button class='floatRightWithMargin' type='button' onclick='approveAll(#=value#)'>Approve</button>" +
"<button class='floatRightWithMargin' type='button' onclick='rejectAll(#=value#)'>Reject</button>"
Whatever style I give in the CSS class, I'm not able to get the buttons aligned to the right side of the header. I have tried float right and left, and margins.
Also, the call doesn't happen on click of the button. I keep getting a script error saying that a closing bracket is required. How do we make a function call on click of the button?
Can you please give an example of the buttons aligned to the right and a call to a function working on click.
I have the below as my Group Header
groupHeaderTemplate: "Items: #=count# +
"<button class='floatRightWithMargin' type='button' onclick='approveAll(#=value#)'>Approve</button>" +
"<button class='floatRightWithMargin' type='button' onclick='rejectAll(#=value#)'>Reject</button>"
Whatever style I give in the CSS class, I'm not able to get the buttons aligned to the right side of the header. I have tried float right and left, and margins.
Also, the call doesn't happen on click of the button. I keep getting a script error saying that a closing bracket is required. How do we make a function call on click of the button?
Can you please give an example of the buttons aligned to the right and a call to a function working on click.