Thursday, 2 August 2012
Devexpress combobox datasource lost after postback
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.
Labels:
ASPxComboBox,
DevExpress
Wednesday, 1 August 2012
ASPxButton in RoundPanel used as an Update Panel trigger
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
Labels:
ASP,
ASPxButton,
DevExpress,
UpdatePanel
Friday, 20 July 2012
DevExpress ASPxGridView find row index in Row Deleting Event
To find the row index of the row being deleted in a devexpress grid view you can use the code below:
note: the KeyValue field must be set on the grid for this to work, if there is no id on the datasource, I just returned a unique GUID to differentiate between records.
Labels:
ASP,
ASPxGridView,
DevExpress
How to populate DevExpress GridView combobox header filter
You need to subscribe to the AutoFilterCellEditorInitialize event.
Check the column name, and cast the control to set the datasource.
Labels:
ASP,
ASPxComboBox,
ASPxGridView,
DevExpress
DevExpress GridView restore selected items after page changing
If you have a dev express grid with paging enabled the selected items get lost after the page is changed.
Note: Its important to call PerformCallback() on the gridview when the header checkbox is checked, otherwise the server does not know about the selected items to restore after the grid is rebound.
To fix this issue use the code below:
Code Behind:
Labels:
ASP,
ASPxGridView,
DevExpress
How to select all items on a page in a DevExpress gridview
If you want to add a checkbox to a DevExpress Grid view to select all items on a page it can be achecived with the following:
Note: in order for the CheckBox script to be able to access the gridview, the ClientInstanceName property must be set. Also, if you want the server side selection changed event to be fired, you will need to call PerformCallback on the grid to update the server.
Note: in order for the CheckBox script to be able to access the gridview, the ClientInstanceName property must be set. Also, if you want the server side selection changed event to be fired, you will need to call PerformCallback on the grid to update the server.
Labels:
ASP,
ASPxGridView,
DevExpress
Thursday, 12 July 2012
How to use the DevExpress combo box with large datasources
ASPX
ASPX Code Behind
NOTE: there are +1's on the begin and end indexes, without this, scrolling does not work when filtered.
Nominal account class (with paging)
Labels:
ASP,
c#,
DevExpress,
SQL
Subscribe to:
Posts (Atom)