DevExpress ASPxGridLookup forgets Value if Active Tab changes in ASPxPageControl

I have an ASP.Net web form with an ASPxPageControl with one TabPage containing an ASPxGridLookup control.

I noticed that as the active tab changes by setting ActiveTabIndex or ActiveTabPage during post-back, the ASPxGridLookup control forgets its selected values and clears the .Text and .Value properties (empty string and null, respectively).

My work-around was to store the value of the page control’s .Text property in either a TextBox control set to Visible=false, or in a HiddenField, and retrieve this value in Page_Load() if IsPostBack==true. (Another possibility would be a ViewState key/value pair).

A similar bug has been reported on, and acknowledged by devexpress.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: