Is it possible to assign a specific custom editor control to a specific cell?
Example:
row 1
column 2 set to datetimechooser
row 2
column 2 set to textbox
row 3 column 2 set to dropdown combo..
is this possible? If it isn't, then is there another asp.net grid that can be done like this?
radoslav,
Thanks for all your input. I finally gave up on dynamic controls, it became too much of a PITA.
Instead I went with the notion of adding all teh editor controls I would use to the template control and setting up the ones I want in the server side code. It's now working just fine. Sorry for being a bit rough on you, frustration is a terrible thing.
Hi Daryl,
darylleger said:The issue I am having is, on submit, how to get the value of the templated control, since once it returns from postback the template controls no longer exist.
Please see the following link how to get the values of template columns per cell in loop.
http://forums.infragistics.com/forums/t/41359.aspx
you can handle the Page_int event to re-create the templates for each different cell but you also will need to implement the selection for your own means that you will need to use for example the Session object to persist the selection in array or any other kind of data structure over postbacks if it's needed.
Finally got the example to work...
had to create a new project and add the stuff myself..
Interestingly your sample shows how to create a template column, which I already knew from other sources.
The issue I am having is, on submit, how to get the value of the templated control, since once it returns from postback the template controls no longer exist.
still getting an error
Look in your webconfig file..
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Infragistics2.Web.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/> <add assembly="Infragistics35.WebUI.Shared.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/> <add assembly="Infragistics35.WebUI.UltraWebGrid.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/></assemblies>
I replaced these with the net 2.0 version but now get "UltraWebGrid1 is not declared"
thanks, give me a couple of days to chew on it.
THanks again.