Hi,
I am using a WebDropDown with a custom table template.
I just want to add a new template item at cliet side using javascript or jQuery.
Please suggest.
My aspx page code given below :
="DropDown"
="true"
="false"
="OrderID">
>
="1"
='clsHeaderDate'>
="20%">
="0">
="25">
<%
)%>
="display: none">
="dllSelectionChange"/>
Hi Petar,
I tried your code using setTimeout() but that did not work for me.
Please advise,
Tasleem Arif
WFX
Hi wfx,
Thank you for the sample.
It appears that the new item's element is not initialized/created in time for you to be able to access it immediately after adding it to the dropdown. I would therefore suggest using the javascript setTimeout:
For instance:
Please feel free to contact me if you have any questions.
Please find attached my aspx file and let me know why I am getting undefined on below line-
combo.get_items().getItem(0).get_element().children[0].insertRow(0).insertCell(0).textContent = 'This is a new cell in a new row';
Hi Tasleem,
Thank you for your reply.
I have tested my sample with your version, however the event argument's value is still accessible and not null as expected. Any additional information such as whether the dropdown is nested in some other controls may help to isolate the matter. A small sample page would be greatly appreciated.
Thanks for your reply.
I am using the below Infragistics assembly :
<%@ Register Assembly="Infragistics35.Web.v9.1, Version=9.1.20091.2164, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"Namespace="Infragistics.Web.UI.ListControls" TagPrefix="ig" %>
Regards,
Tasleem Arif WFX