I can't add a new item in client side...
Load the webdropDown..
var cboFormat = $find("<%= WebDropDown_Checkbox.ClientID %>"); var comboItem = new ???
Please, help..
Hi,
Did you ever wrote addRange() functionality. I am using 12.1.
Batch add/remove/update , data binding and rebinding on the client-side without postbacks is part of our plans for the 11.1 release. it shouldn't be considered as a bug. In the meantime i suggest that you contact development support and they will consider your scenario and provide you with a sample with some custom javascript code about how this could be done entirely on the client side.
Thanks,
Angel
How is this functionality progressing? When i try adding several items in a loop, the dropdown stops working properly. Can i add items in some other way to get around this bug?
Right now i'm adding them in the same way as in the code sample you mentioned.
Did you ever add this "add range" method. I would like to be able to refresh the datasource on the client side without posting back. As you have stated it is currently not practical.
If i'm using the WebDropDown in a simple context where I'm asking the user to choose a key value pair, I'm not wanting the contents of the WebDropDown updated and persisited to the server for I know that another event has already triggered that update. What I want is to tell the WebDropDown to get some refreshed data. I can call a asynchronous method to collect the new data, but I can't persuade the WebDropDown to use it.
This is possible, but with the current implementation an AJAX request is made after every item is added through the add() function on the client. This is because we need to syncronize the server-side collection of items, so that it is consistent with the client-side.
So if you do several calls to add() in a loop, most probably the rest will fail, because the browser can normally handle only 2 ajax requests at the same time.
The solution is for us to add a new function called addRange() which will allow you to add more than one item at the same time, and only have 1 ajax request triggered for this operation.
The same for delete.
We will consider adding this API functionality as soon as possible. I will keep you updated.
Thanks for the feedback,