Hello,
This is the first time I am using Infragistics controls, I have searched this forum and the net but have not found a solution to my problem.
I have a search form on my .Net page, on pressing a submit I bind the UltraWebGrid(from code behind) and make the asp Panel contianing the UWG visible. One of the Columns of the UWG is a templated column containing an ASP linkbutton. OnClick of the link button is wired on the page. There is no paging on the grid.
So far so good. I get an error when I press the Link button; object reference not set...... The error points to one of the controls on the templated columns. It seems some sort of rebinding is required...something to do with viewstate.
Can some help me in figuring out what could be wrong, perhaps pointing to some code sample that does what I have described above.
Thanks
I am facing the same issue after upgradin to infragistics build 10.3.20103.2171.
Asp.net Linkbuttons (inside template columns) inside ultrawebgrid doesn't trigger OnClick event.
We are adding templated column in teplatedcolumnrestored event
protected
void uwg_TemplatedColumnRestored(object sender, ColumnEventArgs e){ if (((TemplatedColumn)e.Column).CellTemplate == null) { ((TemplatedColumn)e.Column).CellTemplate = new PlaceHolderTemplate(); }}In UWG_InitializeRow, we are attaching eventhandler to these links inside templatedcolumn.link.Click += new EventHandler(LinkButtonHandler);
FYI: We have updated dll references, changed Register tag in aspx to point to 10.3.20103.2171, Are we missing anything in upgrading to new build?
Hello.
Are you creating the template columns in code or through the designer? If you are creating them through code then you will need to handle the grids server side TemplatedColumnRestored event and use a class that implements the ITemplate interface to create the controls. How exactly are you creating your template columns?