Wednesday, 22 August 2012
To Get a DataItemIndex in an ASPxGridView I suggest you add an unbound column to your ASPxGridView that will contain the row datasource index. Handle the server-side ASPxGridView.CustomUnboundColumnData event to provide data to this column. Use the ASPxGridViewColumnDataEventArgs.ListSourceRowIndex property to get the processed row's datasource index. Then, you can get data from this unbound column by using the server-side ASPxGridView.GetRowValues method. You can use this code to implement this task: After that, use this code to get the row's datasource index by its visible index:
Monday, 20 August 2012
Tuesday, 14 August 2012
Just had this issue again, this time without using tab pages. it looks like there are issues redirecting from an ASPxGridView row command. The only hack Devxpress can provide so far is re-registering the controls when they are unloaded. this obviously relies on microsoft never changing their code. To sort, all update panels need to reregister when unloaded! I added a method to my base page as follows: then this can be called on ALL updatepanel unloads
Wednesday, 8 August 2012
It appears you can hide controls using the ReadOnly/Visible properties of the edit controls in an ASPxGridView with inline edit mode. Instead you have to change the EditItem template for the column to contain some blank text or a
Tuesday, 7 August 2012
Hi Just a quick not to say about issues with intellisense not working in Visual Studio. I had controls registered in the web.config but intellisense was not picking them up. After a bit of searching I found some duplicate entries in the web.config. removing these duplicates sorted the issue. It seems if there are any problems in the web.config file then intellisense wont work.
Friday, 3 August 2012
I recently had a problem when using the Devexpress Page control wiht update panels in the pages. I have code to hide/show tabs based on certain settings, but the error: Cannot unregister UpdatePanel with ID 'upLoginActivityGrid' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel was shown by the .net runtime. after a little investigation this can easily be solved by hiding the tabs client side rather than server side. so changing the code from this: to this: solves the problem
Thursday, 2 August 2012
If you are using devexpress comboboxs and the datasource is null after postback. this may be becuase the combobox is set up to use multiple columns. If this is the case then multi column comboboxes need to be rebound on each postback to ensure the items still exist.
Wednesday, 1 August 2012
Controls in a Dev Express round panel are renamed due to being in an INamingContainer. This means that the Ajax update panel cannot find the controls. to work around this issue, triggers can be added when the update panel is initialised. If this does not work then you can register the control for postback directly with the current Script Manager