![]() |
#1 |
Участник
|
paruvella: Ax EP - AxBoundField - OnDataChange Event
Источник: http://paruvella.spaces.live.com/Blo...4DB0!552.entry
============== Here I want to achieve, if the AxBoundField have some value, need to enable/disable button accordingly. I had struggled little bit, to raise the event OnDataChanged for AxBoundField control when data changed for this bound control. Then, have used following markup code for Bound control. </span> While adding the bound fields to the AxForm, we won’t get this attribute AutoPostBack="true"to the AxBoundField. To raise the OnDataChanged event, explicitly need to add the above attribute to AxBoundField. Then I had added the following code to the event … protected void ProjId_OnDataChanged(object sender, AxBoundFieldDataChangedEventArgs e) { string expProjId = ((System.Web.UI.WebControls.TextBox)(e.BoundControl)).Text.ToString(); if (expProjId != "") { ButtonOK.Enabled = true; } else { ButtonOK.Enabled = false; } } ![]() ![]() Источник: http://paruvella.spaces.live.com/Blo...4DB0!552.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|