Hi,
I'm currently evaluating Net Advantage for our site. I'm trying to get the WebDateChooser to display in a date column on a grid. I've used the sample code of the site, but to no avail. I'm fairly sure I'm doing eveything that needs to be done. I'm binding the data to a dataset in the Page Load event and setting the column properties as required. When the grid is displayed, the WebDateChooser is not being displayed when I edit the cell. I have the WebCombo displaying no problem, just can't get the WebDateChooser to work.
Support in Infragistics sent me a sample page, and I got this to work, but when I try this code with my grid, it doesn't. All code executes without any errors.
Any help at all would be greatly appreciated.
Cheers
P.S.
Should I post some code ?
Hi Guys,
Thanks very much for both the replies. I just re-read my post, I mistakenly said I was binding to a DataSet, this is not the case. I'm actually binding to a collection of an object (I'm so used to binding to dataset, I just automatically typed this in). Now, on reviewing my code, I noticed that the "type" of my "Date" property in the object class is a "string", this maybe causing the problem, I just have to re-write a couple of things to handle this type change.
I read a couple of posts and got some information from Infragistics support, that said the column type in the DataSet should be DateTime, I'm sure the same must be said for the type on the property in the class.
I'm going to do a quick test. I'll let you know how I get on.
Tom
Hello Tom,
Sure please do paste some code - you can even attach your ASPX and Code-behind files zipped here (in the options tab above the example there is attach file tool) so we can take a look. You can also search the forums - there are literally hundreds of posts I've seen with WebDateChooser in grid that have some suggestions and tips, for example this one:
http://forums.infragistics.com/forums/t/11650.aspx
HTH,
Without looking at your code, I can't tell you what the problem is, but...
WebGrids are different from .Net controls in that they bind sometimes before Page.Load, and sometimes after.
Instead of doing a .DataBind in Page.Load, try handling the InitializeDataSource event. Set up your data source without doing a .DataBind. And if you need to do data-dependant formatting, handle .DataBound and/or .InitializeRow.
TomKelly50392 said:Should I post some code ?
Yes! Post your markup, and your code, and make it clear what code is executed from within what event handler. After years of using Infragistics controls, I've found that these forums are the most valuable resource for tech support.
Salutations ;-)