I have two date IG WebDatePickers for arrival and departure dates. Currently they postback when the value is changed. I’d like to not postback but instead make an AJAX call when the value is changed. I would need to add several parameters to the AJAX call that would return the list of available dates based on those parameters. Is there any IG built-in support for making custom AJAX calls that I should be leveraging versus creating my own client side event and making the AJAX call and setting the available dates myself?
Hello Steve,
Thank you for contacting Infragistics!
By default the WebDatePicker doesn’t postback automatically when you select a value so I believe you have an AutoPostbackFlag set for ValueChanged. If you want to turn this off you can do so like following:
<ig:WebDatePicker ID="WebDatePicker1" runat="server"> <AutoPostBackFlags ValueChanged="Off" /> </ig:WebDatePicker>
Note that the AutoPostBackFlags can be se to “Off”, “On”, or “Async”.
The Infragistics controls don’t have a built in method of making a custom postback/ajax call to pass more information to the server. Is there a reason this information needs to be sent in this fashion? What are these parameters you wish to pass?
I'm using the async flag for a set of four IG controls: arrival date, departure date, hotel dd, and room dd. The dates affect the content of the hotel dd and the hotel dd decides the content of the room dd. I am using the technique shown in the cascading dd demo using load_item but I get a null reference exception in WebDropDown.SaveControlState.
Thank you for the update. What is the full error message you get? Can you attach your code or a running sample that demonstrates this behavior so I can look further into this matter to see what may be causing this?