How can I make a column as DropDownList using DropDownProvider in RowEditingTemplate? The sample shows the DropDownList in edit mode within the cell https://ko.infragistics.com/samples/aspnet/data-grid/dropdown-editors
Hi Mike,
getValue() and setValue() methods are not available on the ASP.Net DropDownList control. I get an error saying "Microsoft JScript runtime error: Object doesn't support this property or method". Please advise.
Thanks
Hello Ram,For the ASP.Net DropDownList control, you would need to pass in the javascript using the getValue() and setValue().
Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
Thanks Mike for providing the code to find a WebDropDown control from code-behind.
What would be the client bindings - GetValueJavaScript and SetValueJavaScript for a regular ASP.Net DropDownList control when used in a <RowEditingTemplate>?
Hello Ram,
The following code demonstrates how to retrieve the embedded WebDropDown by its ID in the WebDataGrid RowEditTemplate using the FindControl method in the server-side WebDataGrid DataBound event:
protected void dg_DataBound(object sender, EventArgs e){ var ram = dg.Behaviors.EditingCore.Behaviors.RowEditTemplate.TemplateContainer.FindControl("WebDropDown ID");}Please let me know if this helps.Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
Thanks Mike, I could fix the flickering by copying the images.
I would re-phrase my question about the WebDropDown. How can I access/find the WebDropDown control added in the <RowEditingTemplate> from code-behind? If I can find the WebDropDown then I know how to bind it with a DataSet/DataTable.
Please let me know if you need more information. Thanks