Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to conditionally disable the UpdateButton in client code

$
0
0

This functionality can be achieved using templates. To be able to mimic the command columns behavior, I used ASPxHyperlinks in the column's DataItemTemplate and EditItemTemplate Containers. The HtmlRoewCreated event is used to set the Edit button's NavigateUrl property so that it can start editing a proper row. Also, in this event handler I set the ClientInstanceName property of the Updatebutton. This is done to be able to access the UpdateButton in client code and disable/enable it. This code is implemented in the CellEditorInitialize event handler.

See also
How to enable/disable command buttons on the client side
How to create a custom command button with the appearance and action depending on a row state
How to customize command buttons in individual rows
How to show/hide ASPxGridView custom command buttons using HTML elements


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>