I'm trying to hide a column (via a css class with only "display:none" in it), that is working more or less (the remaining visible columns are a bit shifted to the right somehow). But when I enable the activation behaviour, I receive this Javascript error: "htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus".
Is there any way to be able to use hidden columns and activation without Javascript errors?
Since we've updated the system used on our blogs, the URL in one of Craig's earlier posts referring to his blog no longer works. Here's the updated URL to the blog post:
http://blogs.infragistics.com/blogs/craig_shoemaker/archive/2008/11/06/building-an-ajax-master-detail-page-with-the-webdatagrid.aspx
Pieter:
Okay looks what you need to do is reset the index variable back to zero each time the grid is paged:
protected void wdg_PageIndexChanged(object sender, Infragistics.Web.UI.GridControls.PagingEventArgs e){ this.index = 0;}
Let me know if this works for you...
Craig
Craig,
I'm setting the datasource property to a LLBLGen collection, and then call the Databind method.
I will work on a sample to try and figure this out for you... how are you databinding? Are you using a data source control or just setting the datasource property and then calling databind?
I stand corrected: paging and the solution Craig presented, doesn't work at all.
When you have 2 pages, everything is working fine on the first page and the second page. When you however go back from page 2 to 1, the javascript code can't find the span tag at all. I have tried to disable the AJAX functionality of the grid and took a look at the span id's being generated, these aren't correct. In my case I had a page size of 15, the first time I took a look at the generated span id's they were correct, but after switching to page #2 and back to #1, the first span id starts with 5...
Any idea's?