I had a grid setup to display some data. When an insert occurred, I wanted to display a message so I subscribed to the OnCommand client event. This worked well and was fired when the insert command item was clicked.
I needed to customise the command item so set up a CommandItemTemplate as follows
This displayed as I wanted it to, however the insert and refresh buttons don't fire the client event, they only fire the server event. Is there a way that these can conform to the standard process and call the OnCommand event or is this a bug.
I am running the the latest version of RadControls.
Thanks
Stephen
I needed to customise the command item so set up a CommandItemTemplate as follows
| <CommandItemTemplate> |
| <table width="100%" style="margin: 5px"> |
| <td align="left"> |
| <span class="GridTitle">Accounts</span> |
| </td> |
| <td align="right"> |
| <asp:LinkButton runat="server" class="GridCommandButtonText" CommandName="InitInsert"> |
| <img style="border:0px;vertical-align:middle;" alt="Insert" src='<%= ToAbsoluteURL("~/Images/Add_24.png") %>' /> Add new account |
| </asp:LinkButton> |
| <asp:LinkButton runat="server" class="GridCommandButtonText" CommandName="RebindGrid"> |
| <img style="border:0px;vertical-align:middle;" alt="Refresh" src='<%= ToAbsoluteURL("~/Images/Refresh_24.png") %>' /> Refresh account list |
| </asp:LinkButton> |
| </td> |
| </table> |
| </CommandItemTemplate> |
This displayed as I wanted it to, however the insert and refresh buttons don't fire the client event, they only fire the server event. Is there a way that these can conform to the standard process and call the OnCommand event or is this a bug.
I am running the the latest version of RadControls.
Thanks
Stephen