Hi,
In our project, we are migrating ultrawebgrid to Netadvantage webdatagrid.
In one of our page, we have below javascript code to dynamically load the dropdown items by using the cell property ValueList.
var BONUS_vlist = new Array(7);
BONUS_vlist[0]= new Array(""," ");
BONUS_vlist[1] = new Array("e301041b-8f13-48cf-806b-070a8f6fb2e0","Bonus Actual Prorated Amount");
BONUS_vlist[2] = new Array("81db936b-57d3-417d-b688-88671020b60e","Bonus Actual Prorated Amount (1)");
BONUS_vlist[3] = new Array("66427fab-de87-456d-9b54-8dcb8d168c59","Bonus Actual Prorated Amount (2)");
BONUS_vlist[4] = new Array("bdd02c28-9001-4347-b38a-c74c02874885","Bonus Annualized Amount");
BONUS_vlist[5] = new Array("da8fffe3-e7c6-4fe0-b939-03f5ad2e1515","Bonus Annualized Amount (1)");
BONUS_vlist[6] = new Array("f4643ebe-155e-4ac0-8c64-d630439998d5","Bonus Annualized Amount (2)");
BONUS_vlist[7] = new Array("c73e38ff-4aff-4b04-8a9c-7ec940570c1f","Bonus Annualized Budget Eligible ");
var col = igtbl_getColumnById(cellId);
col.ValueList = BONUS_vlist;
The client side property ‘ValueList’ is used to load the dropdown item dynamically in ultrawebgrid. But we are not able to find an equivalent client side property to dynamically load the dropdown items in the Webdatagrid.
Please help us to reslove this situation.
Thanks in advance.
La solucion del Equipo de Infragistics, es no responder nada.. Que porquerias
Have you resolved your issue? I'm facing the same thing.
Thanks,
Sherif
I have a WebDataGrid with a DropDownEditorProvider inside. The EditorControl is actually bound by the same datatable the grid is...this would ultimately allow the same list to be available in the dropdown as is in the grid BUT when I add a new record to the grid I also need this new record added to my dropdown but it does not appear. I can see the rebind occurring and the record is there but the interface does not display it. Any suggestions?
Hi ktgopinath,
Please feel free to contact me if you have any further questions regarding this matter.
Thank you for posting in the community.
WebDataGrid does not feature a ValueList for its columns. Instead, a DropDown provider can be used for editing specific columns. More information on using editor providers with WebDataGrid can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=WebDataGrid_Using_Editor_Providers.html
Please note that WebDropDown (and respectively the DropDown provider) do not support batch item addition as each item makes a postback in order to ensure that the control's item list is synced. Clientside binding is available, however, through jQuery templates:
http://samples.infragistics.com/aspnet/Samples/WebDropDown/Data/jQueryClientTemplates/Default.aspx?cn=drop-down&sid=1cd0d5b4-a6c5-45c2-835b-1d8b230dfb18
Attached is a small sample demonstrating a WebDataGrid with a dropdown provider bound clientside to some json data.
Please let me know if this helps.