Hi Yu Gene Loh,
For your convenience I prepared a sample project which illustrates how to display context menu for RadListView items. Note that the example will be used as basis for a new demo under the Application Scenarios
section of RadListView's online demos (which will go live with Q3 2009 SP1).
To associate the context menu with the listview instance, intercept the oncontextmenu
client event of the listview items wrapper (fieldset in this case), get reference to the context menu object client-side and invoke its show
method (passing the browser's event argument as parameter).You also need to save the index of the right-clicked listview item on the client, pass it at a later stage inside the OnClientItemClicked
event of the context menu, determine the item chosen by the end user and use the methods from RadListView's client API to perform edit, init insert or delete operation.
the Telerik team