I need to make a column as FileUpload column in ultrawebgrid (so that user can browse through and set a path for example).
I am doing :
getPath.ID = "fileLoad";
Grid1.Bands[0].Columns[columnIndex].EditorControlID = "fileLoad";
But it is not working. I am using Infragistics 7.1 on .Net 2.0.
I would really appreciate if you could respond asap.
Thanks,
Hello,
Yes, indeed - this is the expected behaviour. The EditorControlID functionality is only supported by controls that implement specific interface which is internal for Infragistics products like the "editor" controls we ship - masked editor, numeric, etc. FileUpload is a stock ASP.NET built-in control and does not implement this specific interface.
In this case I believe the only option is to use templated columns and embed the FileUpload inside the CellTemplate.
Hope this helps.
Can you please give me an example. I am generating all the columns through c# and not through aspx code.
Yes, programmatic templated columns are a bit tricky, they require some custom code and implementing a custom class and the ITemplate interface. I believe there is a relatively good example here:
http://forums.infragistics.com/forums/p/1464/12706.aspx#12706