Skip to content

Replies

0
Maya Kirova
Maya Kirova answered on Nov 25, 2011 9:07 AM

Hello tctsaravanakumar ,

 

I’m not completely sure I’ve understood you exact scenario but here are some of the things that I’ve noticed that might be causing your issues.

 

1)Regarding your first issue. It seems to be caused by a conflict between the ajax call and the postback that trigger one after the other.

You’ve set the AutoPostback property for ValueChanged to on but at the same time since AutoFiletring is set to on server.What is happening when you change any value in the WebdropDown is that the drop down makes an ajax call to the server once( because of the AutoFiletring ) and then a fullpage postback again (because of the AutoPostback flag). Furthermore because of the full page postback and the fact that you’ve disabled the ViewState  when your page loads the DropDown will have lost the current selection, current value and other properties that are by default kept in the View state so it will not filter the items. So this is what’s causing  your first issue. Here are your options to resolve this depending on your scenario.

 

1.You could disable the Autopostback for ValueChanged. This way it will make ajax calls to retrieve the autofiltered data on each value change.

2.You could disable the AutoFiltering and keep the AutoPostback flag. With this option you’ll have make a manual filtering on the server side in the ValueChange event and then when you retrieve the filtered data ,clear the old data source for the drop down and databind to the new filtered one.

 

2) Regarding your second issue. If you  want the values for the text boxes to be changed during the ValueChanged event you’ll need to trigger a full page postback and not an ajax call. Otherwise the changes will not be reflected.

 

Let me know if you have any further questions or if I’ve misunderstood something from your scenario.

 

Best Regards,

Maya Kirova

Developer Support Engineer

Infragistics, Inc.

http://es.infragistics.com/support