I have a RadGrid with a CommandItemTemplate.In the InstantiateIn I define a toolbar and add two buttons.
After clicking the button I do a Rebind of the grid in the ItemCommand-event of the grid and I change the text of the clicked button. This fires also the InstantiateIn event of the CommandItemTemplate, so the text of the button is reset.
If I store the text in a property and want to acces this one I get the error:
Cannot access non-static field in static context
I have a kind of sollution with going to the parent of the container like ( container.Parent.Parent.Parent ect) to approach the property. But is there a better approach to change the text of the buttons after clicking them. And I cannot do this client side.