devexpress

ASPxGridView PerformCallback() does full page postback

核能气质少年 提交于 2019-12-12 04:29:06
问题 I have a checkbox that when clicked, calls a javascript program that calls grid.PerformCallback(), where grid is the client instance name of my ASPxGridView gridview. This gridview also has a custom callback method which databinds the table. However when i click my checkbox, instead of only performing callback on the gridview, my page does a full postback, which posts the form. How do i make it so that it only updates the gridview? function toggle() { productGrid.PerformCallback(); }//end

Total of GroupSummary to TotalSummary in DevExpress

社会主义新天地 提交于 2019-12-12 04:15:47
问题 In my ASPxGridView , I getting total simply IPOTEK column in footer with this code; <TotalSummary> <dx:ASPxSummaryItem FieldName="IPOTEK" SummaryType="SUM" ShowInGroupFooterColumn="IPOTEK" DisplayFormat="n0" /> </TotalSummary> And i getting average value of IPOTEK column when i grouping in Group's footer. <GroupSummary> <dx:ASPxSummaryItem FieldName="IPOTEK" SummaryType="AVERAGE" ShowInGroupFooterColumn="IPOTEK" DisplayFormat="n0" /> </GroupSummary> Everything is OK. For example when i

Hyperlink Reference to another column DevExpress Gridview ASP.Net Webform

孤人 提交于 2019-12-12 03:38:25
问题 I'm using a for loop to add columns to the DevExpress ASP.Net WebForms GridView using VB.Net. I was able to get a hyperlink to reference the same column value: Dim newColumn As New DevExpress.Web.GridViewDataHyperLinkColumn newColumn.PropertiesHyperLinkEdit.NavigateUrlFormatString = "TrendView.aspx?CurrentID={0}" I need to programmatically set the hyperlink to another column's value... i.e. column three needs to have a hyperlink that references the column 1 value in the same row. How do you

ASPxPivotGrid remove custom sort/order

拈花ヽ惹草 提交于 2019-12-12 03:08:38
问题 I created columns in code, 3 to Row Area, rest in column area, and all those in row area are grouped by name, and I don't want any of grouping/sorting, because I sorted and grouped it as I want in stored procedure. Any idea how to disable automatic grouping/sorting? Thanks 回答1: Ref: Can I disable sort? it's impossible to disable sorting. The PivotGridControl groups data by identical values to calculate summaries. This operation requires data to be sorted. Also, each row or column in the

DevExpress WPF grid bound to List<String> using MVVM

和自甴很熟 提交于 2019-12-12 03:08:03
问题 I am trying to do something that should be simple, but think I am just not seeing the answer. I have a List with several strings. I would like to bind it to a DevExpress DXGrid. It appears that the grid is showing the correct number of row, but not displaying my text. I am using the MVVm patern and have seperated my ViewModel and View. Thanks for the help. Here is the XAML code: <dxg:GridControl Grid.Row="0" DataSource="{Binding Path=ErrorLog}" > <dxg:GridControl.Columns> <dxg:GridColumn

disable arrow key on scheduler control

泪湿孤枕 提交于 2019-12-12 03:04:38
问题 is there a way to disable arrow key right and left ? because i dont want user to see a date before 10 october and date after 16 october i have try this code private void schedulerControl1_KeyDown(object sender, KeyEventArgs e) { if(e.KeyCode == Keys.Right) { e.Handled = true; } } it still can click arrow key, and i have check that schedulercontrol properties got no keypreview . or maybe set disable for user cant click or focus on cell n.b : iam using devexpress with component scheduler 回答1:

devexpress GridLookUpEdit into RepositoryItemGridLookUpEdit, or GridLookUpEdit into column cell

随声附和 提交于 2019-12-12 02:59:38
问题 I know I can set //RepositoryItemGridLookUpEdit riglue eePozycje.gvView.Columns[KolNazwa].ColumnEdit = riglue; but all I have is GridLookUpEdit. How can I set GridLookUpEdit into column cel, or transform GridLookUpEdit into RepositoryItemGridLookUpEdit ? //DONE I found it in GridLookUpEdit.Properties. 回答1: Refer the documentation The RepositoryItemLookUpEdit class contains settings specific to the GridLookUpEdit control. You can access these settings via the editor's GridLookUpEdit.Properties

DevExpress TreeList not displaying child nodes and displaying as root nodes instead

主宰稳场 提交于 2019-12-12 02:48:38
问题 I have a TreeList reading from a List(Of LedgerAccountEntry)() . Public Class LedgerAccountEntry Public Property LedgerAccountSys() As Integer Public ParentLedgerAccountSys As Integer ' ' ' ETC End Class In form load: tlLedgerAccounts.ParentFieldName = "ParentLedgerAccountSys" tlLedgerAccounts.KeyFieldName = "LedgerAccountSys" tlLedgerAccounts.RootValue = -1 Later on: While bla entry.LedgerAccountSys = rstAccounts("LedgerAccountSys").Value entry.ParentLedgerAccountSys = IIf(rstAccounts(

Load values via junctions table

空扰寡人 提交于 2019-12-12 02:46:05
问题 I need to load all the rows from the ItemToGroup table into one field separated with a comma, I can't use String.Join since I'm using server mode from DevExpress, it loads the data dynamically from the database on demand. And String.Join only works on generic lists. I tried this LINQ Statement: e.QueryableSource = From c In sqlData.ItemStores Select c.Price, c.Status, ItemGroupNames = c.ItemToGroups.Select(Function(g) g.ItemGroup.ItemGroupName) Problem is that in the grid column it shows:

Problem with data binding to DevExpress XtraGrid

两盒软妹~` 提交于 2019-12-12 02:35:15
问题 I have a XtraGrid dropped on to a Winform. I have created 3 unbound columns named ID, StartTime and EndTime and set their unbound types as Int, DateTime and DateTime respectively. I have created a class: public class Data { public Data(int id, DateTime startTime, DateTime endTime) { this.id = id; this.startTime = startTime; this.endTime = endTime; } private int id; private DateTime startTime; private DateTime endTime; public int ID { get { return id; } set { id = value; } } public DateTime